Skip Navigation

[Resolved] PHP 8.1 Errors

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

Problem:

PHP warnings when using PHP 8.2

Solution:

Toolset is not fully compatible with PHP 8.1+ yet.

Please consider that the items that you gave the screenshot are not breaking errors. Those are deprecation notices.

That means it works now but it will not in the future PHP versions such as PHP 8.2+.

So for now you can just hide the notices as everything seems to be working ok.

Add the command below to wp-config.php file of your WordPress installation:

define( 'WP_DEBUG', false );

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 1 reply, has 2 voices.

Last updated by Christopher Amirian 1 year, 9 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2661289
Screenshot 2023-11-06 at 5.49.28 PM.png
Screenshot 2023-11-06 at 1.24.36 PM.png
Screenshot 2023-11-06 at 1.23.37 PM.png

I am trying to:
Upgrade my WordPress site to php version 8.1 or 8.2. For the upcoming core update:
https://wordpress.org/news/2023/10/wordpress-6-4s-php-compatibility/

Link to a page where the issue can be seen:

I have also taken screenshots of the errors they are attached.

hidden link
hidden link
hidden link

I expected to see:

No php 8 errors, notices or warnings.

Instead, I got:

Deprecated: ctype_digit(): Argument of type WP_Post will be interpreted as string in the future in /code/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/autoloaded/field/group/factory.php on line 134

Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /code/wp-content/plugins/cred-frontend-editor/vendor/toolset/common-es/server/Rest/Route/ShortcodeRender/WithMeta.php on line 55 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /code/wp-includes/formatting.php on line 1604 Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /code/wp-includes/formatting.php on line 2270 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /code/wp-content/plugins/cred-frontend-editor/vendor/toolset/common-es/server/Rest/Route/ShortcodeRender/WithMeta.php on line 55 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /code/wp-includes/formatting.php on line 1604 Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /code/wp-includes/formatting.php on line 2270 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /code/wp-content/plugins/cred-frontend-editor/vendor/toolset/common-es/server/Rest/Route/ShortcodeRender/WithMeta.php on line 55 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /code/wp-includes/formatting.php on line 1604 Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /code/wp-includes/formatting.php on line 2270 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /code/wp-content/plugins/cred-frontend-editor/vendor/toolset/common-es/server/Rest/Route/ShortcodeRender/WithMeta.php on line 55 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /code/wp-includes/formatting.php on line 1604 Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /code/wp-includes/formatting.php on line 2270 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /code/wp-content/plugins/cred-frontend-editor/vendor/toolset/common-es/server/Rest/Route/ShortcodeRender/WithMeta.php on line 55 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /code/wp-includes/formatting.php on line 1604 Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /code/wp-includes/formatting.php on line 2270 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /code/wp-content/plugins/cred-frontend-editor/vendor/toolset/common-es/server/Rest/Route/ShortcodeRender/WithMeta.php on line 55

Deprecated: ctype_digit(): Argument of type WP_Post will be interpreted as string in the future in /code/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/autoloaded/field/group/factory.php on line 134

I have upgraded the plugin so it is using the latest version that I can find on the downloads page: Toolset Forms v 2.6.17.

#2661559

Christopher Amirian
Supporter

Languages: English (English )

Hi there.

Toolset is not fully compatible with PHP 8.1+ yet.

Please consider that the items that you gave the screenshot are not breaking errors. Those are deprecation notices.

That means it works now but it will not in the future PHP versions such as PHP 8.2+.

So for now you can just hide the notices as everything seems to be working ok.

Would you please access your website files and edit the "wp-config.php" file on the root folder of your WordPress installation and add the code below into the file:

define( 'WP_DEBUG', false );

Please add the code above the line below:

/* That's all, stop editing! Happy blogging. */

That will turn off the logging you have mentioned and you can continue using your website.

Thanks.