[Resolved] PHP Fatal error when updated WPML to 4.8.6
This thread is resolved. Here is a description of the problem and solution.
Problem: The client experienced a site crash when updating the WPML String Translation to version 3.4.1 on PHP version 8.3.29. The error indicated a missing class 'WPML\Infrastructure\WordPress\Port\Persistence\DatabaseWrite'. Solution: We recommended removing the current WPML installation and reinstalling it. A fresh installation of WPML resolved the issue. It is crucial to make a full site backup of files and database before proceeding with these steps. For further details on privacy and security when providing debug information for support, please visit: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket at WPML support forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Please try my suggestion to reinstall WPML and see if it solves the problem.
If you need further help with this, please share the access details to your site with me. And if needed, please allow me to take a copy of your site. For this, I must install a plugin like Duplicator or All-in-One Migration. Please let me know if you agree. I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ **IMPORTANT**
- - Please back up the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--