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

WordPress Trac noreply at wordpress.org
Sun Mar 1 21:08:15 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:
--------------------------+--------------------------------
Changes (by flixos90):

 * status:  new => closed
 * resolution:   => reported-upstream
 * milestone:  7.0 =>


Comment:

 This should be fixed by [https://github.com/WordPress/wp-ai-
 client/releases/tag/0.4.0 WP AI Client release 0.4.0], but it requires
 changes in how that package is loaded. Please refer to the release notes.

 That being said, for running PHPUnit tests itself, this won't fix it: The
 problem is that PHPUnit will ''always'' load `vendor/autoload.php`, and
 there's no way around it we are aware of.

 For the time being, you may need to allow 7.0 tests to fail, or you will
 need to conditionally remove the WP AI Client and PHP AI Client
 dependencies when running in 7.0. The team acknowledges that this is a
 workaround that is not ideal, but we have been unable to find a better
 solution, given this aspect of PHPUnit does not appear to be configurable.

 **Keep in mind that, once WordPress 7.0 stable is out, the WP AI Client
 package will be discontinued. Plugins should no longer bundle it, and
 neither should they bundle the PHP AI Client package.**

 Plugins that currently bundle these packages are strongly encouraged to
 prepare for using the WordPress 7.0 implementation, and eventually require
 usage of WordPress 7.0. Doing this will also address several problems with
 the current approach of bundling the package, which will lead to
 challenges with providers from external plugins not being recognized.

 Please let us know if you continue to face unexpected challenges after
 having implemented the changes mentioned in the WP AI Client 0.4.0 release
 notes. Since technically this is an issue of the original packages, I'm
 going to close this as a non-Core issue, but please feel free to continue
 sharing related findings and/or ideas.

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


More information about the wp-trac mailing list