This thread is resolved. Here is a description of the problem and solution.
I get the following error message in the backend:
PHP Fatal error: Uncaught exception 'InvalidArgumentException' with message 'element_id and type do not match for element_id:116789 the database contains post_post while this function was called with post_tribe_events' in /wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php:28
Please do the following:
1. Go to WPML->Support.
2. Scroll down to the bottom and click the "troubleshooting" link.
3. In the "Clean up" section find the "Fix post type assignment for translations" button. Click it.
4. Find the "Clear the cache in WPML" button. Click it.
5. Find the "Remove ghost entries from the translation tables" button. Click it.
6. Find the "Fix element_type collation" button. Click it.
If that doesn't help, please report the issue on the support forum. Before creating the new ticket, please enable error logging. You can find more info on how to do it and example code for debugging at https://codex.wordpress.org/Debugging_in_WordPress#Example_wp-config.php_for_Debugging
1. Log into your FTP.
2. Edit the wp-config.php file.
3. Add the following code:
// Enable WP_DEBUG mode define( 'WP_DEBUG', true ); // Enable Debug logging to the /wp-content/debug.log file define( 'WP_DEBUG_LOG', true ); // Disable displaying errors and warnings define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 ); // Use dev versions of core JS and CSS files (only needed if you are modifying these core files) define( 'SCRIPT_DEBUG', true );
4. Save the file.
5. Repeat the actions that lead to the 500 error.
6. Go back to your FTP.
7. In the wp-content folder, you should find the debug.log file where all errors should be added.
Paste the contents of the debug.log file in the forum ticket if there are any errors listed.
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.