[wp-trac] [WordPress Trac] #64697: Getting fatal error on 7.0-beta.1

WordPress Trac noreply at wordpress.org
Mon Feb 23 13:40:29 UTC 2026


#64697: Getting fatal error on 7.0-beta.1
--------------------------+------------------------------
 Reporter:  gautammkgarg  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  AI            |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by siliconforks):

 I think a reliable way to reproduce the issue is to activate the Plugin
 Check plugin, and then run the following WP-CLI command:

 {{{
 $ wp plugin check nonexistent-plugin
 Error: Invalid plugin slug: Plugin with slug nonexistent-plugin is not
 installed.
 }}}

 Then run the same command again:

 {{{
 $ wp plugin check nonexistent-plugin
 PHP Fatal error:  Declaration of
 WP_AI_Client_HTTP_Client::sendRequestWithOptions(WordPress\AiClientDependencies\Psr\Http\Message\RequestInterface
 $request, WordPress\AiClient\Providers\Http\DTO\RequestOptions $options):
 WordPress\AiClientDependencies\Psr\Http\Message\ResponseInterface must be
 compatible with
 WordPress\AiClient\Providers\Http\Contracts\ClientWithOptionsInterface::sendRequestWithOptions(Psr\Http\Message\RequestInterface
 $request, WordPress\AiClient\Providers\Http\DTO\RequestOptions $options):
 Psr\Http\Message\ResponseInterface in .../wp-includes/ai-client/adapters
 /class-wp-ai-client-http-client.php on line 101
 Fatal error: Declaration of
 WP_AI_Client_HTTP_Client::sendRequestWithOptions(WordPress\AiClientDependencies\Psr\Http\Message\RequestInterface
 $request, WordPress\AiClient\Providers\Http\DTO\RequestOptions $options):
 WordPress\AiClientDependencies\Psr\Http\Message\ResponseInterface must be
 compatible with
 WordPress\AiClient\Providers\Http\Contracts\ClientWithOptionsInterface::sendRequestWithOptions(Psr\Http\Message\RequestInterface
 $request, WordPress\AiClient\Providers\Http\DTO\RequestOptions $options):
 Psr\Http\Message\ResponseInterface in .../wp-includes/ai-client/adapters
 /class-wp-ai-client-http-client.php on line 101
 Error: There has been a critical error on this website.Learn more about
 troubleshooting WordPress. There has been a critical error on this
 website.
 }}}

 (To fix this, simply delete the `wp-content/object-cache.php` file.)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64697#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list