Passer la navigation

[Résolu] PHP 8.2 Errors

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 support ticket is created Il y a 3 years, 1 month. There's a good chance that you are reading advice that it now obsolete.

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.

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par Cory Il y a 3 years, 1 month.

Assisté par: Christopher Amirian.

Auteur
Publications
#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

Les langues: Anglais (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