This thread is resolved. Here is a description of the problem and solution.
Problem: The client manually installed a new WPML update because it wasn't showing in the WordPress updates section or in plugins, which resulted in a critical error on the website. Solution: We logged into the site and attempted to update the WPML plugins via the Plugins -> Add New -> Commercial page. However, the site was still pointing to localhost, which we identified from the WPML -> Support page notice indicating the site was detected at localhost. This could interfere with updating plugins from a publicly mapped address.
To resolve this, we deactivated all plugins, switched to the standard WP theme 2025, updated the WPML plugins (WPML, String Translation, and WCML), and then reactivated these along with WooCommerce. After these steps, the fatal error was no longer present.
We recommend the client to try reproducing the issue with the current setup and report the steps if the error reoccurs. Additionally, we advised using PHP 8.2 until newer versions are fully supported, as PHP 8.4 is still in beta support by WordPress. For more details on PHP compatibility, visit WordPress PHP Compatibility.
If this solution does not resolve your issue or seems outdated, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening 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.
also, I was able to deploy duplicator and it works fine, no errors.
It could be that there is something wrong with your local server configuration / files or similar. Is it possible to set this website somewhere online so we can check and see if the issue still happens?
Thank you for the updates. I'm back and looking into the matter.
At first I saw an error being thrown for WCML on login page, so I connected via SFTP and deactivated the WPML by renaming the plugin's folder (appended xxx to the folder name). Then I retried to access /wp-admin but it keeps redirecting towards hidden link, which is of-course not reachable because it is pointing to my local server.
Please watch my screen recording: hidden link
I've also checked .htaccess and wp-config.php, which look fine however.
I'll recommend deactivating all WPML plugins and provide a working access so we can then investigate accordingly.
I've set your next reply as private again, in case you want to provide new access details, as well as, any related information safely.
Thank you for the updates, I was able to login to the site.
I tried to update WPML plugins from Plugins -> Add New -> hidden link">Commercial page. But looks like your site is somewhere still pointing to localhost (see attached). So I updated manually by uploading latest versions and can see a notice about site copy/move in WPML -> hidden link">Support page.
This notice says that site is now at hidden link. This can be a problem about updating plugins from the publicly mapped address, while site is still being detected at localhost.
However, besides that, I deactivated all plugins, switched to standard WP theme 2025, then updated WPML plugins (WPML, String Translation and WCML) and activated these one by one, along with WooCommerce.
So far I'm not seeing that fatal error, as you mentioned earlier.
Can you please try to reproduce that issue again, in current scenario and note down the steps for us to reproduce again?