Skip Navigation

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.

Our next available supporter will start replying to tickets in about 0.57 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 -

Supporter timezone: Europe/Zagreb (GMT+02:00)

This topic contains 3 replies, has 2 voices.

Last updated by Dražen Duvnjak 1 year, 11 months ago.

Assisted by: Dražen Duvnjak.

Author Posts
May 18, 2022 at 4:29 pm #11249509

montagmorgens

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
May 20, 2022 at 7:16 am #11262905

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello!

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.

Please let me know how it goes.

Kind regards,
Drazen

May 23, 2022 at 8:36 am #11277077

montagmorgens

Hi Drazen,

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?

How would we go about reseting WPML?

May 23, 2022 at 9:26 am #11277973

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for getting back.

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:

- https://wpml.org/forums/topic/critical-error-when-not-even-doing-anything-on-the-site/#post-8117663
- https://wpml.org/forums/topic/fatal-error-210/

Otherwise, you can check further info on WPML reset on the next link:

- https://wpml.org/faq/how-wpml-reset-works/

Kind regards,
Drazen

The topic ‘[Closed] Uncaught InvalidArgumentException: No translation entry found for query’ is closed to new replies.