Hello, we've tried updating our server to PHP 8 and on doing so we get a PHP fatal error message...
PHP Fatal error: Uncaught ValueError: Missing format specifier at end of string in .../plugins/types/vendor/toolset/types/embedded/includes/custom-types.php:200
I've had a look at this code and seems to be related to labels for Custom Post Types and dealing with singular/plural names.
Since some of our Custom Post Types have the same Singular and Plural name as that's what makes sense grammatically, would that be causing the fatal error here?
Apologies I'm not able to share a backup or access to the website currently but hopefully the above will be sufficient info to provide some guidance.
Hello. Thank you for contacting the Toolset support.
You must be using the PHP 8.1.x version or greater.
Can you please edit all your custom post types one by one you created from: Toolset => Post types
And make sure that the label should be for the following items under the "labels" section on your post type edit screen:
- "Parent Description %s" instead of "Parent Description"
- "All Items %s" instead of "All Items"
To edit it you should update your PHP version to PHP 7.4.x and later once you made the changes you should update the PHP version to your desired PHP version.
The problem seems to resolved itself so I will close this ticket and open a new one if the error reappears, I think it must have been a server/caching issue.