Skip to content

Activating AI Experiments causes fatal error when Ollama AI Provider plugin is active (WP 7.0 Beta 3) #285

@raftaar1191

Description

@raftaar1191

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

Steps to Reproduce

  1. Install and activate AI Provider for Ollama plugin.
  2. Install the AI Experiments plugin.
  3. Activate AI Experiments.
  4. 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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions