-
Notifications
You must be signed in to change notification settings - Fork 68
Activating AI Experiments causes fatal error when Ollama AI Provider plugin is active (WP 7.0 Beta 3) #285
Copy link
Copy link
Closed
Description
Description
When testing with WordPress 7.0 Beta 3, activating the AI Experiments plugin results in a fatal error if the AI Provider for Ollama plugin is already active.
Fatal Error
Fatal error: Uncaught Error: Call to undefined method WordPress\AiClient\Providers\DTO\ProviderMetadata::getAuthenticationMethod()
in /wp-includes/connectors.php:164
Stack trace:
#0 /wp-includes/connectors.php(285): _wp_connectors_get_connector_settings()
#1 /wp-includes/class-wp-hook.php(341): _wp_register_default_connector_settings('')
#2 /wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)
#3 /wp-includes/plugin.php(522): WP_Hook->do_action(Array)
#4 /wp-settings.php(774): do_action('init')
#5 {main}
Environment
- WordPress: 7.0 Beta 3
- Plugin: AI Experiments
- Plugin: AI Provider for Ollama
https://github.com/Fueled/ai-provider-for-ollama
Steps to Reproduce
- Install and activate AI Provider for Ollama plugin.
- Install the AI Experiments plugin.
- Activate AI Experiments.
- A fatal error occurs during activation.
Error Video:
Recording.95.mp4
Expected Behavior
Both plugins should activate without errors
Actual Behavior
Activation of AI Experiments triggers a fatal error when the Ollama provider plugin is active.
Current Status
✅ Already Fixed in develop!
PR #275 removed the direct dependencies on wp-ai-client and php-ai-client, moving to use WordPress core's AI functionality instead. This completely resolves the conflict.
Commits:
- WP 7.0: Move away from directly using the
AI_Client#275: "WP 7.0: Move away from directly using theAI_Client" - WP 7.0: Remove dependencies and rely on what's in core #271: "Remove direct dependencies"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.