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 1 reply, has 1 voice.

Last updated by Luigi 1 year, 7 months ago.

Author Posts
October 25, 2018 at 1:43 am


I am trying to: click on the

Link to a page where the issue can be seen:

I expected to see:

Instead, I got:

I can't access
Somehow it gets redirected to (fr page)

I even deleted the (it's in the trash at the moment)

I saw in my php logs this error coming from the string translation. For this reason, I downgraded the package to the previous version.

I mention that I have this problem only for this Contact-us page. The rest of them are fine. For this page translation, I duplicated the page and manually link it to the french page.
Before yesterday when I did the last upgrade of WPML, everything was ok.

Please advise.

17:16 PM 24 Oct PHP Fatal error: Uncaught Error: Call to a member function get_language_codes() on boolean in /wp-content/plugins/wpml-string-translation/classes/slug-translation/class-wpml-slug-translation-records.php:229

Stack trace:

#0 /home/5b7bd582f911c806c817f938/public_html/wp-content/plugins/wpml-string-translation/classes/slug-translation/class-wpml-slug-translation.php(213): WPML_Slug_Translation_Records->get_all_slug_translations(Array)

#1 /home/5b7bd582f911c806c817f938/public_html/wp-content/plugins/wpml-string-translation/classes/slug-translation/class-wpml-slug-translation.php(256): WPML_Slug_Translation->get_all_post_slug_translations()

#2 /home/5b7bd582f911c806c817f938/public_html/wp-includes/class-wp-hook.php(286): WPML_Slug_Translation->filter_pre_get_posts(Object(WP_Query))

#3 /home/5b7bd582f911c806c817f938/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)

#4 /home/5b7bd582f911c806c817f938/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(A in /home/5b7bd582f911c806c817f938/public_html/wp-content/plugins/wpml-string-translation/classes/slug-translation/class-wpml-slug-translation-records.php on line 229

October 25, 2018 at 2:38 pm #2850152


My issue is resolved now. Thank you!