ArgumentCountError : Error on CKeditor plugin settings

Created on 23 May 2025, 10 days ago

Problem/Motivation

When we install the smartlinker_ai module and set up in CKEditor to enable plugin, then throws an error on the content format:

The website encountered an unexpected error. Try again later.

ArgumentCountError: Too few arguments to function Drupal\ai_ckeditor\AiCKEditorPluginBase::__construct(), 8 passed in /var/www/html/web/modules/contrib/smartlinker_ai/src/Plugin/AiCKEditor/SmartLinkerAI.php on line 86 and exactly 9 expected in Drupal\ai_ckeditor\AiCKEditorPluginBase->__construct() (line 77 of modules/contrib/ai_test/modules/ai_ckeditor/src/AiCKEditorPluginBase.php).

Steps to reproduce

1. Install required modules:
- AI Core
- AI CKEditor
2. Enable the 'smartlinker_ai' module
3. Go to '/admin/config/content/formats'
3. Click and configure 'Basic HTML' or 'Full HTML'
4. Throws an ArgumentCountError on that page

Please follow the screenshot for reference:

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India Ishani Patel

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024