I am trying to:
Edit a Tutor LMS Course Page with Elementor, but the Editor Crashes with below error message probably related to PHP Version 8.1
PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /var/www/thefilleracademy.com/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Elementor/Hooks/GutenbergCleanup.php:72
just to verify -- you were first getting this error:
Fatal error: Uncaught TypeError: json_decode(): Argument #1 ($json) must be of type string, array given in …/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Elementor/DataConvert.php:22
for which you used our errata workaround resolving it but after applying the solution you started getting this new error?
Are the pages you get this error random or related in any way? Are they all Tutor LMS related possibly?
Don't know if the error happens on other pages as well, but my guess it's related to the same stuff that the errata addresses. It has something to do with elementor pages where content is added before first opening it with elementor. As reverting to PHP 7.4, opening and saving the page in Elementor once, switching back to PHP 8.1 elementor works again on the same page with PHP 8.1. Older Course Pages from Tutor work fine as well to be edited with Elementor, only newly created ones that haven't been edited with elementor yet cause this problem.
Thank you for confirming, if possible update WPML from 4.5.14 to 4.6 and let me know your results -- the latest version had depreciations with PHP 8 addressed.
Let me know your results, please.
If the issue still persists with 4.6.0 I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)
**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **
I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.
NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.