[Resolved] id="error page" when using WPML (or string translation)
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing an 'Internal Server Error' on their website pages when activating WPML or reviewing translated pages. The error log indicates a PHP Fatal error with the message 'Uncaught InvalidArgumentException: Argument ID must be numeric and greater than 0.' This issue is related to the WPML plugin and Elementor page builder. Solution: 1. We recommend activating the WordPress debug mode by following the steps described in this guide. 2. After enabling debug mode, reproduce the error to generate a new entry in the debug.log file. 3. Review the debug.log file for the latest fatal error message. 4. Apply the workaround provided on the WPML errata page, which can be found here: WPML Errata. 5. Ensure to create a full backup of the site before applying the workaround.
Please note that the solution provided might be outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket with us.
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.
I regularly experience that a page (most or all pages of the website) turns into an error page (inspection says id="error page"), sometimes as soon as I activate WPML (sometimes the string translation plugin), and sometimes when I start reviewing my translated pages.
Console says "Get ... / 500 (Internal server error)".
WP and PHP versions are up to date, as are all plugins. Have tried deactivating all other plugins (sofar except Elementor and theme Astra), but that changes nothing.
WP memory limit set at 512, PHP input vars at 10000.
It could be a serever related issue. Since there is an internal server error, I would ask you to retrieve the server error log (you can ask your hosting support if you don't know where to find it) and report us the exact error.
Hello,
My name is Carlos and I will continue working on this ticket
I kindly ask you to follow these steps in order to provide the information about the error:
- Activate the WordPress debug mode by following the steps described in this guide: https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/
- Reproduce the error on the site
- Share the last fatal error that appears in the debug.log file located within the wp-content folder