• Hi!

    This notice is issued when using with almost any WP-CLI command In a Spanish language site WP 7.0-RC3 after your plugin is activated:

    Notice: La función _wp_connectors_resolve_ai_provider_logo_url ha sido llamada de forma incorrecta. La ruta del logo del proveedor debe estar dentro del directorio de plugins o de plugins imprescindibles. Por favor, ve depuración en WordPress para más información. (Este mensaje fue añadido en la versión 7.0.0). in ***/wp-includes/functions.php on line 6170

    Plugin version 1.1.0

    Thanks for your attention!

    • This topic was modified 1 week, 4 days ago by ABCdatos.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ABCdatos

    (@abcdatos)

    As a fast patch, I’m using this at /includes/Provider/OllamaProvider.php:

    diff OllamaProvider.php.bak OllamaProvider.php
    97c97
    < $provider_meta[] = __DIR__ . '/logo.svg';
    ---
    > $provider_meta[] = WP_PLUGIN_DIR . '/ai-provider-for-ollama/includes/Provider/logo.svg';
    Plugin Support Darin Kotter

    (@dkotter)

    @abcdatos Thanks for the report! I haven’t been able to reproduce myself but do have a PR open that attempts to fix this: https://github.com/Fueled/ai-provider-for-ollama/pull/61

    Note we want to try and support those that may be using this outside of a WordPress context (i.e. directly with the PHP AI Client) so makes it a bit trickier to ensure the logo path shows as being within the plugins directory only when used in WordPress.

    If you have some time to review and test that PR to see if that fixes your issue, that would be great. And if you have a GitHub username, would love to give you props on that PR. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.