A client of ours has a website which we are updating for performance issues. We've rearranged the order in which scripts are loaded and are upgrading the php version from 7.4 to 8.1.
W've set up a identical /staging environment to make the changes which all seem to work well. When we apply the changes to the site .com and change the php version to 8.1 we get a fatal error (only in the french language). This error showed itself earlier only in polish, but this somehow changed.
I don't understand why this is only showing itself on the live environment which is functionally identical after the updates are applied.
I am assigned this ticket and 'll try my best to further assist you on the matter.
I understand that the said issue is happening only when you switch to PHP 8.1 in the live/production site, while this issue doesn't happen on the identical staging site.
I see currently the live site is running on PHP 7.4.
To escalate the matter to our 2nd tier, I'll need some permissions and information from you, please consider followings:
1) Can you please write some steps that when exactly this error is thrown? Like doing some particular operation (i.e. updating a post or product or etc). Or it happens as soon as you switch to PHP 8.1?
2) Can you provide a duplicator package of the site? So we can try this in another environment with the said PHP version(s). Please see https://wpml.org/faq/provide-supporters-copy-site/ for more details.
3) If #2 isn't possible or perhaps doesn't help in another environment, is this OK to access the site and database in your live environment and try our fixes there? For this, we 'll also need to install a plugin to access and check the database (like mentioned in the chat).
IMPORTANT: For any of the above, please make sure to have a full backup of site and database beforehand!!
I've set your next reply as private to share this information safely.
Regards.
The topic ‘[Closed] Uncaught TypeError: Illegal offset type in isset or empty in’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.