I get the following PHP error when opening the page list in wp-admin (wp-admin/edit.php?post_type=page):
Fatal error: Uncaught InvalidArgumentException: No translation entry found for query: s:42:" element_id = %d AND element_type LIKE %s ";a:2:{i:0;i:1045;i:1;s:10:"post_page%";} in .../plugins/sitepress-multilingual-cms/classes/records/class-wpml-tm-icl-translations.php:193 Stack trace: #0 .../plugins/sitepress-multilingual-cms/classes/records/class-wpml-tm-icl-translations.php(59): WPML_TM_ICL_Translations->select_translation_id(' element_id = %...', Array) #1 .../plugins/sitepress-multilingual-cms/classes/records/class-wpml-tm-icl-translations.php(41): WPML_TM_ICL_Translations->build_from_element_id(Array) #2 .../plugins/sitepress-multilingual-cms/classes/records/class-wpml-tm-records.php(143): WPML_TM_ICL_Translations->__construct(Object(WPML_TM_Records), Array, 'id_type_prefix') #3 .../plugins/sitepress-multi in .../plugins/sitepress-multilingual-cms/classes/records/class-wpml-tm-icl-translations.php on line 193
Also, on the WPML translation management page (wp-admin/admin.php?page=tm%2Fmenu%2Fmain.php), there's also an error:
Fatal error: Method WPML_TM_Post_Edit_Link_Anchor::__toString() must not throw an exception, caught InvalidArgumentException: No translation entry found for query: s:42:" element_id = %d AND element_type LIKE %s ";a:2:{i:0;s:4:"1049";i:1;s:5:"post%";} in .../plugins/sitepress-multilingual-cms/classes/menu-elements/class-wpml-tm-post-link-factory.php on line 0
Welcome to WPML Support. I'll do my best to help you solve this issue.
The error message reports your database WPML tables are corrupted and probably missing some columns and indexed. It could be a bad migration that caused it or similar action. If you have a backup before this, I would recommend restoring it.
If not, please make sure WPML tables are correct and auto-increment is enabled as per the next image:
- hidden link
If you do not have many translations done, and it is possible, you can also Reset WPML and start over. That will re-create tables and the fatal error should be gone.
this is rather unfortunate, as we didn't change anything on the site apart from updating WPML to the latest version. Any other reason why this db corruption might have occured?
As sad I would not recommend WPML reset as you will lose your translation. Maybe you check further as recommended in my previous reply and next tickets and let me know how it goes: