[wp-trac] [WordPress Trac] #64818: Fatal error with AI Connectors

WordPress Trac noreply at wordpress.org
Fri Mar 6 18:57:25 UTC 2026


#64818: Fatal error with AI Connectors
-------------------------------------+---------------------
 Reporter:  clifgriffin              |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  7.0
Component:  AI                       |     Version:  trunk
 Severity:  critical                 |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+---------------------
Changes (by maulikmakwana2008):

 * keywords:  has-patch => has-patch needs-testing


Comment:

 I was able to reproduce this issue on WordPress 7.0-beta3.

 The fatal error occurs in wp-includes/connectors.php when calling
 $provider_metadata->getAuthenticationMethod().

 However, the ProviderMetadata class used by several providers
 (Google/Gemini, OpenAI, Anthropic) does not implement this method,
 which results in a fatal error:

 Call to undefined method ProviderMetadata::getAuthenticationMethod().

 This patch adds a method_exists() check before calling the method
 to prevent the fatal error when the provider metadata does not
 implement getAuthenticationMethod().

 Tested locally with AI connectors enabled and confirmed that the
 fatal error no longer occurs.

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


More information about the wp-trac mailing list