- Issue created by @AditiVB
- 🇮🇳India kulpratap2002
I have tried the things below
1. Debugging Class Loading & Autoload Issues
- Verified Composer autoloading:
lando composer dump-autoload -o
- Checked CKEditor AI Agent’s namespace in composer.json
- Findings: No immediate resolution; issue persisted when OpenAI was enabled.
2. Checking Dependency Conflicts
- Checked module dependencies:
lando drush pm:list --status=enabled | grep openai
- Investigated if OpenAI modifies dependency injection.
- Findings:
OpenAI requires guzzlehttp/guzzle, which could affect service resolution.
No direct conflicts found, but OpenAI modifies service injection.
3. Testing OpenAI Event Subscriber & Dependency Injection Conflicts
- Disabled OpenAI’s Event Subscriber in openai.services.yml.
- Rebuilt cache and tested again (still Issue persisted).
- Debugged class resolution:
$resolver = \Drupal::service('class_resolver'); dpm($resolver->getInstanceFromDefinition('Drupal\ckeditor_ai_agent\Form\AiAgentSettingsForm'));
- Verified Composer autoloading: