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

WordPress Trac noreply at wordpress.org
Sun Mar 15 06:04:03 UTC 2026


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

Comment (by ShameemReza):

 I'm still able to replicate this fatal error on WordPress 7.0-beta5 (the
 latest beta at the time of writing):

 {{{
 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
 }}}

 **Environment:** WordPress 7.0-beta5, PHP 8.3.30, Plugin Check (PCP)
 1.8.0.

 The PCP team has already addressed this on their side
 (https://github.com/WordPress/plugin-check/issues/1192,
 https://github.com/WordPress/plugin-check/pull/1195) and the fix is
 expected in PCP 1.9.0. Until then, anyone running into this while beta-
 testing WordPress 7.0 with PCP active can work around it by either
 disabling Plugin Check or downgrading to a previous version of PCP.

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


More information about the wp-trac mailing list