Skip Navigation

[Resolved] Deprecated Notice on PHP 8.1 and latest Views & Types

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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by Minesh 4 months, 3 weeks ago.

Assisted by: Minesh.

Author
Posts
#2688922

I saw on https://toolset.com/toolset-requirements/ that Toolset is tested up to PHP 8.1, so I updated one of my sites to 8.1.

Now I’m getting this frequent deprecated notice?

`Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home/sitename/public_html/wp-content/plugins/wp-views/vendor/toolset/common-es/server/Rest/Route/ShortcodeRender/WithMeta.php on line 55`

I found a support ticket from February that addressed this exact notice and said it was fixed in the latest release. https://toolset.com/forums/topic/legacy-plugin-support-for-php-8-1/

I believe I am on the latest releases: Types 3.5.3 and Views 3.6.14

Any thoughts on how to fix this notice? I am switching back to 8.0 for now.

Thanks,

Sarah

#2688962

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

We have internal ticket and the deprecated notice you shared is been esclated:

Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home/sitename/public_html/wp-content/plugins/wp-views/vendor/toolset/common-es/server/Rest/Route/ShortcodeRender/WithMeta.php on line 55

I will get in touch with you as soon as we add official fix for this deprecated notice.

#2707115

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Just to let you know that the fix for this issue is already published with the latest Toolset plugins.

We publish hotfix version for many Toolset plugins:
- https://toolset.com/2024/07/toolset-1-6-16-essential-updates-for-wordpress-6-6-and-better-workflow/

*** Please make a FULL BACKUP of your database and website.***
Cam you please update ALL Toolset plugins to it's latest official release version and check if that help you to fix the issue.

More info:
- https://toolset.com/faq/how-to-install-and-register-toolset/#automatic-update-requires-registratio

OR

You can download the latest Toolset plugins from your account's page:
- https://toolset.com/account/downloads/

#2707308

I have tested the latest versions on all my sites and updated to PHP 8.1, and the constant notices in the error logs are no longer occurring. Thanks!