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.
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.