Skip Navigation

[Resolved] Update to PHP 8.2 has caused a critical error

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 4 replies, has 2 voices.

Last updated by Minesh 1 year, 4 months ago.

Assisted by: Minesh.

Author
Posts
#2625321

I am trying to: Upgrade to PHP 8.2

Link to a page where the issue can be seen: hidden link

I expected to see: Page loading, but page is not loading. Debug is turned on but without debug, will just show Critical error. All other errors are not causing site to crash.

Note: I have turned off Debug and downgraded to PHP 7.4 to continue testing site for go live.

I have granted WP access, but any changes to PHP version, please contact me and I will make the changes.

Instead, I got:

Fatal error: Uncaught ValueError: Missing format specifier at end of string in /home/decisis/public_html/wp-content/plugins/types/vendor/toolset/types/embedded/includes/custom-types.php:199 Stack trace: #0 /home/decisis/public_html/wp-content/plugins/types/vendor/toolset/types/embedded/includes/custom-types.php(199): sprintf() #1 /home/decisis/public_html/wp-content/plugins/types/vendor/toolset/types/embedded/includes/custom-types.php(104): wpcf_custom_types_register() #2 /home/decisis/public_html/wp-content/plugins/types/vendor/toolset/types/embedded/functions.php(117): wpcf_custom_types_init() #3 /home/decisis/public_html/wp-includes/class-wp-hook.php(308): wpcf_init_custom_types_taxonomies() #4 /home/decisis/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #5 /home/decisis/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #6 /home/decisis/public_html/wp-settings.php(623): do_action() #7 /home/decisis/public_html/wp-config.php(52): require_once('/home/decisis/p...') #8 /home/decisis/public_html/wp-load.php(50): require_once('/home/decisis/p...') #9 /home/decisis/public_html/wp-blog-header.php(13): require_once('/home/decisis/p...') #10 /home/decisis/public_html/index.php(17): require('/home/decisis/p...') #11 {main} thrown in /home/decisis/public_html/wp-content/plugins/types/vendor/toolset/types/embedded/includes/custom-types.php on line 199

#2625327

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

I see the issue is related to the string placeholder is not added to the post type label.

Can you please navigate to: Toolset => Post types and edit your post types one by one and make sure you added the %s for labels "Parent Description" and "All Items".

For instance, for the following post type:
- hidden link

The label should be:
- "Parent Description %s" instead of "Parent Description"
- "All Items %s" instead of "All Items"

And save your post type.

You have to check with your every post type and for every label where you will have to pass the %s.

#2625955
toolset.jpg

Hi,

I have followed your instructions, but the critical error still remains. Please see screenshot of current debug message.

#2625985

Minesh
Supporter

Languages: English (English )

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

Can you please send me duplicator copy of your site.
=> https://toolset.com/faq/provide-supporters-copy-site/

I have set the next reply to private which means only you and I have access to it.

#2626025
#2626735

Minesh
Supporter

Languages: English (English )

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

Finally, I was able to build a duplicator package.

Here are the changes you will have to made while running your site with PHP 7.4.x:

Edit post type "Signup" and "Testimonial " from Toolset => Post types and change the labels:
- from "Parent Description" to "Parent Description %s"
- from "All Items" to "All Items %s"

Edit the "Legislation" post type and I see all the labels have % sign only, so you will have to adjust with %s
- Legislation (all the labels are there with only % sign, you will have to change it to %s).

Can you please make all these changes and save your post type and then try to switch to PHP 8.2.x.