This thread is resolved. Here is a description of the problem and solution.
Problem:
PHP 8.1 crash with Types
Solution:
If you see the fatal error with PHP 8.1.x then please make sure that for your custom taxonomy or post types the placeholder for labels should be added with required placeholder %s where applicable.
When trying to set PHP from 7.4 to 8.1, I am getting the message: "There has been a critical error on this website"
If the plugin Types 3.5.2 is deactivated (all other plugins active), PHP 8.1 runs fine.
If the plugin Types 3.5.2 is active, the will be the error message.
Hello. I am Sorry, I tried to enable error log (like shown on that link: PHP debugging) but it doesn't work. So I created the file myself, but I don't know how to make it writeable to Apache.
Is it possible for you to send me admin access details as well as FTP access details?
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
I see on this server you are still using PHP 7.4.x.
I need duplicator copy of your site to check with PHP version 8.1.x.
However - before you send me duplicator copy, I see one issue:
Here is the taxoxnomy edit page:
- hidden link
As you can see with above taxonomy edit page that seems the correctly configured that all the labels text you will see there is %s placeholder is there.
But following taxonomies label does not have %s placeholder for labels:
- Menüname - the value should be %s only
- hidden link
Following taxonomy is also missing correct placeholder %s at many labels:
- Parent element with colon - the value should be Übergeordnetes %s:
- Update item - the value should be %s aktualisieren
- Neues Element hinzufügen - the placeholder value should be %s
- Name des neuen Elements - the placeholder value should be %s
- Hinzufügen oder entfernen
- hidden link
following taxonomy label does not have %s placeholder for labels:
- Menüname - the value should be %s only
- hidden link
Can you please try to update the label values with correct placeholder %s with all the taxonomies and then save the taxonomy and then try to switch the PHP version to PHP 8.1 and check if that help you to resolve your issue.