Conversation
supportHello when adding the Google API key, I get a critical error on my site (several attempts give an erro everytime). The key is correct and curl & allow_url_fopen are active. I deactivated all other plugins to exclude anu plugin conflict. The logs point to an error with AI Provider for Google (see extract below). Version WP: 7.0 Everytime I upload the plugin AI Provider for Google (plugins directory), I get this critical error. What can cause this error and how can this be fixed? [Mon Jun 22 11:58:07.152066 2026] [error] [pid 640175] mod_proxy_fcgi.c(887): [client 213.118.141.214:0] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Class “WordPress\\AiClient\\Providers\\ApiBasedImplementation\\ListModelsApiBasedProviderAvailability” not found in /data/sites/web/lirowebbe/www/wp-content/plugins/ai-provider-for-google/src/Provider/GoogleProvider.php:112\nStack trace:\n#0 /data/sites/web/lirowebbe/www/wp-includes/php-ai-client/src/Providers/AbstractProvider.php(69): WordPress\\GoogleAiProvider\\Provider\\GoogleProvider::createProviderAvailability()\n#1 /data/sites/web/lirowebbe/www/wp-includes/php-ai-client/src/Providers/ProviderRegistry.php(359): WordPress\\AiClient\\Providers\\AbstractProvider::availability()\n#2 /data/sites/web/lirowebbe/www/wp-includes/php-ai-client/src/Providers/ProviderRegistry.php(94): WordPress\\AiClient\\Providers\\ProviderRegistry->setHttpTransporterForProvider(‘WordPress\\\\Googl…’, Object(WordPress\\AiClient\\Providers\\Http\\HttpTransporter))\n#3 /data/sites/web/lirowebbe/www/wp-content/plugins/ai-provider-for-google/plugin.php(51): WordPress\\AiClient\\Providers\\ProviderRegistry->re…’
Note that a potential fix for this is being tracked in https://github.com/WordPress/ai-provider-for-google/pull/28 .
Ok thx, I missed that. So a fix will be provided in one of the future updates? Is there an estimation of timing for the fix?
@rinusderuelle you didn’t miss it, I just opened that PR after your support posting here. We’ll look to confirm the issue and a fix in an upcoming release, but no ETA as of yet for that.
Note that a potential fix for this is being tracked in https://github.com/WordPress/ai-provider-for-google/pull/28 .
Ok thx, I missed that. So a fix will be provided in one of the future updates? Is there an estimation of timing for the fix?
@rinusderuelle you didn’t miss it, I just opened that PR after your support posting here. We’ll look to confirm the issue and a fix in an upcoming release, but no ETA as of yet for that.