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: When trying to translate my slider revolution, when I click the language flags nothing happens.

Solution: This issue was caused by some custom code in the child theme. Switching to the parent theme resolved the issue.

This topic contains 10 replies, has 2 voices.

Last updated by nikosG-3 1 year, 4 months ago.

Assigned support staff: Lauren.

Author Posts
May 15, 2018 at 8:51 am #2132120

nikosG-3

Hello,

I generally use WPML with slider revolution with no problems.
I use 2 languages in slider revolution that worked properly until yesterday.
I installed WP Fastest cache and suddently slider revolution language switcher in the backend stoped working. To be more specific, it displays only the Greek language of the slides and when I try to click the English slide nothing happens..

I removed the WP fastest cache. I don't know if Fastest cache is the problem.

Can you help me in order to fix the issue?

Thanks in advance.

May 16, 2018 at 12:32 pm #2156942

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Thank you for contacting WPML support. I'll be happy to help you with this.

Please test if this issue remains when you have only WPML and WP Fastest Cache activated, and all other plugins temporarily deactivated. If it is still happening, are you seeing any errors in your browser console when trying to change languages? Here is some information about how to view your browser console: hidden link

Lastly, Please enable the WordPress debug log. This will allow us to see if any PHP errors are being produced. More Info: https://codex.wordpress.org/Debugging_in_WordPress

1. Edit wp-config.php and insert the following lines:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

2. Browse to the page with the issue and/or reproduce the issue.

3. Locate the debug log in: /wp-content/debug.log

4. Paste the latest lines here. No need to paste the entire log file, just 50 lines or so will do. Please censor any sensitive information.

May 16, 2018 at 5:38 pm #2162051

nikosG-3

I completely deleted fastest cache plugin.

I attached an image with the browser Console errors.

debug.log
----------
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3760
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3762
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3764
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3760
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3762
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3764
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3760
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3762
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3764
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3760
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3762
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3764
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3760
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3762
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3764
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3760
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3762
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3764
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3760
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3762
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3764
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3760
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3762
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3764
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3760
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3762
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3764
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3760
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3762
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3764
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3760
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3762
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3764
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3895
[16-May-2018 17:31:28 UTC] PHP Notice: Trying to get property of non-object in /var/www/vhosts/_____/wp-includes/class-wp-query.php on line 3895

May 16, 2018 at 6:09 pm #2162248

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

To best troubleshoot the issue, please make a snapshot of your site using the Duplicator plugin: https://wordpress.org/plugins/duplicator/. This will allow me to try and duplicate the error so that I can run further tests without interrupting your live site.

Once the snapshot is complete, either upload the snapshot ZIP file and the installer.php file to a file sharing service such as Dropbox (and share the link in your reply) or right click the Duplicator links in your wp-admin and paste in your reply.

Please note: It is important to reduce the size of the package so please exclude some paths like /cache or /uploads and also exclude archives and media files.

I will also need the username and password of an account that was created BEFORE creating the duplicator package.

I will enable the next reply to be private so only you and I have access to it!

May 16, 2018 at 6:31 pm #2162663

nikosG-3

Will I have any issues on my live site with this procedure of packaging? Because it is an eshop. Please take a look at image attached you. Thanks.

May 17, 2018 at 12:08 pm #2174967

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

The package size is really large. Please filter out uploads, archives and also in the Size Check section, open this and select any files that are not necessary.

May 17, 2018 at 6:52 pm #2181066

nikosG-3

Ok the size of package is 850 MB. I will send you tommorow. Thanks

May 18, 2018 at 12:48 pm #2189066

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Thanks, I look forward to your reply. The next message is marked as private so that you can share information securely.

May 21, 2018 at 3:38 pm #2202476

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Thanks for sending the files. I was able to set up a copy of your site locally and reproduce the issue. I then installed a fresh copy of Slider Revolution on a clean install and I was not able to reproduce the issue. So I think this is isolated to your site and not a general compatibility issue.

I am discussing with our developers and I will report back here as soon as I have more information. Thanks for your continued patience.

May 22, 2018 at 12:49 pm #2208061

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Thanks for your patience while we continued to trouble shoot. Our developers have noted that this error is there even if WPML is deactivated. The language modal window not opening, but also all other modal windows are broken because of a javascript error.

It seems that the error is provoked by custom code in Betheme child theme:

betheme-child/functions.php:249
add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );

Remove that filter or add somewhere:
remove_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );

To further test, please update your Slider Revolution to the most recent release. Then, deactivate all other plugins. If the error still persists, change to the Betheme parent theme. If the error goes away, then we can confirm that the issue comes from your child theme. Please let me know the results. Thanks!

May 22, 2018 at 5:35 pm #2210847

nikosG-3

Hello, thanks for the quick reply. Finally I managed to fix the problem with your help. Thanks a lot. Have a nice day.