Skip Navigation

[Resolved] PHP 8.2 Errors

This thread is resolved. Here is a description of the problem and solution.

Problem:

I have errors using Toolset on PHP 8.2

Solution:

Toolset and as a matter of fact WordPress are not compatible with PHP 8.2 yet.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 2 replies, has 2 voices.

Last updated by Cory 1 year, 9 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2596581

This is something that might need to be passed down to your development team. When running with DEBUG on in PHP 8.2.4 I receive the following message when calling:
toolset_get_related_posts
Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in\\wp-includes\formatting.php on line 1596 it shows dozens of times.

I can suppress the message with @toolset_get_related_posts but that isn't a proper process. I would assume if your development team is running proper unit tests this should show-up in the logs at some point, if not I thought they might want to know.

Anyways its not a critical error, but would be nice to clean up, to provide a more stable and better performant code base. To have true PHP 8 support deprecation errors should be analyzed and fixed.

Thanks

#2596961

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

Thank you for the message. We are in the process of cleaning up the deprecation messages and till now eliminated many instances.

Just to make sure we are on the same page, Is this happening on PHP 8.0.x?

As current testing is done on that version. Actually, WordPress itself does not claim to have compatibility with 8.2.x yet.

But this is for sure an ongoing refactoring that is going on in our codebase.

Thanks.

#2597043

Ok thanks! Yeah I'm on 8.2... Looking forward to it becoming compliant!

Thanks