Skip Navigation

[Resolved] PHP 8.1 crash with Types

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.

You can find the proposed solution in this case with the following reply:
- https://toolset.com/forums/topic/php-8-1-crash-with-types/#post-2676791

Relevant Documentation:

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, 5 months ago.

Assisted by: Minesh.

Author
Posts
#2676729

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.

Still running on PHP 7.4, hidden link

#2676778

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

As per the Server Requirement Doc:
- https://toolset.com/toolset-requirements/

We tested Toolset with PHP 8.1.x and we are still working on for PHP 8.2.x.

Can you please enable the error log and send me the error log for review:
- https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/#php-debugging

Do you see anything with your PHP error log?

#2676782
Bildschirmfoto 2024-01-01 um 11.49.01.png

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.

#2676787

Minesh
Supporter

Languages: English (English )

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

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.

#2676791

Minesh
Supporter

Languages: English (English )

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

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.

#2676799

thanks a lot (and sorry, all errors caused by me)