This thread is resolved. Here is a description of the problem and solution.
Problem:
The client's website displayed a blank page and became unusable when WPML was activated alongside Elementor. An error message indicated: 'target should be an object with map method or an array'. Further investigation revealed issues with saving changes due to a database error stating 'Argument ID must be numeric and greater than 0'.
Solution:
We identified that the issue was related to the database's _posts table missing an auto increment setting for the ID column. We recommended the client to:
1. Perform a full site backup.
2. Run the following SQL query using a tool like PHPMyAdmin:
ALTER TABLE `wp_posts` CHANGE `ID` `ID` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, add PRIMARY KEY (`ID`);
3. Check if the issue persists after applying the fix.
Additionally, we suggested checking out these articles for further database repair:
- https://www.wpbeginner.com/beginners-guide/how-to-repair-wordpress-database/
- https://blogvault.net/repair-wordpress-database/
If this solution does not resolve the issue or seems irrelevant due to updates or different circumstances, we recommend opening a new support ticket. We also highly suggest 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. For further assistance, please visit our support forum at https://wpml.org/forums/forum/english-support/.
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.
This topic contains 20 replies, has 2 voices.
Last updated by 8 months, 2 weeks ago.
Assisted by: Bigul.