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 thread is resolved. Here is a description of the problem and solution.

Problem: Language switcher doesn't work with Avada fusion builder

Solution (include the steps to follow here): Update WPML to the latest version

This topic contains 6 replies, has 2 voices.

Last updated by Rainer 3 years, 9 months ago.

Assigned support staff: Mohammed.

Author Posts
December 10, 2015 at 3:03 pm #766033

Rainer

I am trying to: Change the language from German to English

URL of (my) website where problem appears: hidden link

I expected to see: the page to change text or something else

Instead, I got:it doesn´t work, the page builder doesn´t open
* I have Infos from the Avada Support*
Hi Rainer,

Okay, I see the problem. The issue is with the URL being used to load the admin-ajax.

On the German page - hidden link which is the correct URL.
On the English page - hidden link

Which is not a valid URL. For some reason WPML is adding - /en.dictator.de/wp-admin

Please contact WPML with the details above. This looks like a plugin issue.

As a temporary measure, also try switching from sub domains to - Languages as directories List ((hidden link - German, hidden link - English))
Based on the error I am seeing, changing to this will resolve the problem (until WPML look into cause).

Thanks

December 11, 2015 at 7:17 am #766565

Rainer

Today I have a problem on some pages
hidden link next example hidden link
I see at the top of the page following text:

WordPress-Datenbank-Fehler: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' CASE p.post_type WHEN 'page' THEN 2 WHEN 'post' THEN 1 ELSE 0 END DESC ' at line 10]
SELECT post_type, post_name FROM wp_posts p LEFT JOIN wp_icl_translations t ON t.element_id = p.ID AND CONCAT('post_', p.post_type) = t.element_type AND p.post_type IN ('post','page','attachment','slide','avada_portfolio','avada_faq','themefusion_elastic','tribe_events','tribe_venue','tribe_organizer' ) WHERE post_name = 'loesungen' AND post_type IN ('page') AND post_status = 'publish' , CASE p.post_type WHEN 'page' THEN 2 WHEN 'post' THEN 1 ELSE 0 END DESC LIMIT 1

December 11, 2015 at 7:21 am #766568

Rainer

Please find the problem quickly. It´s really urgent !!!
This is a company website in 4 languages. Online since yesterday.

Thank you

December 11, 2015 at 12:08 pm #766882

Mohammed
Supporter

Languages: English (English ) Arabic (العربية )

Hello Rainer,

Thank you for contacting WPML support.

I'm sorry to say that this is an issue with WPML . But the good news is that we've figured out the problem and already escalated this issue to our second tier support team.

The issue now is escalated to the development team.
We will do our best to solve this issue as soon as possible.

Please follow up with this thread and I inform you i any updates take place.

Thanks for understanding.

December 11, 2015 at 5:23 pm #767289

Mohammed
Supporter

Languages: English (English ) Arabic (العربية )

Hi Rainer,

This issue is resolved in the next WPML release.

We've launched a beta release that contains a fix to your issue. You can download it from here : https://wpml.org/account/downloads/ in the Betas section.

Please test it in a staging website because we don't recommend using Beta WPML version in a production website.

Thanks

December 21, 2015 at 1:59 pm #773777

Mohammed
Supporter

Languages: English (English ) Arabic (العربية )

Hi ,

WPML 3.3.4 is released . Please update it and test the issue.

❌Important❌ : Please make a complete backup of your website, before updating. The update should go without problems, but in case something goes wrong it is good to have a backup.

Thanks.

January 5, 2016 at 6:53 am #780769

Rainer

Thank you