-
AuthorPosts
-
August 10, 2018 at 4:46 pm #996064
I am using the Partner logo element in a few pages of a bilingual site, and it works properly on English but not on French pages.
Basically, I have a carousel with 8 logos. On the English pages it displays properly but on the French pages the forth logo loops over and over.
I created two identical pages in both languages with no other elements, just to show you the problem:
OK: https://pijaccanada.com/0-test/
Problem: https://pijaccanada.com/0-test-fr/?lang=frAny ideas on how to resolve this?
August 13, 2018 at 1:33 am #996512Hey GabrielSenn,
When I look at your site there is a 404 error for a image that may be from the carousel.
Perhaps this is causing the loop.
I seems that the error is in the url for the image, please check.Best regards,
MikeAugust 13, 2018 at 3:33 pm #996729Hello Mike,
That does not seem to be the problem. Any other idea?
PS. I am not sure how that code got there but I fixed the 404 just in case it was the culprit. Unfortunately it did not help.
August 14, 2018 at 6:26 pm #997208Hi,
Please create us an admin account – we’ll check the configuration on the editor page.
Best regards,
DudeAugust 14, 2018 at 7:26 pm #997251Hello Dude,
Credentials as admin attached as part of private message. Please note this is a live site and people use it a lot, so if at all possible please do not make changes!
Thank you in advance!
August 17, 2018 at 4:30 pm #998499Sorry to bump, but have not heard anything since creating an admin account for Dude a few days back. Did I miss something else you need from me?
August 18, 2018 at 1:06 pm #998701Hi,
I debugged the issue and I’m pretty sure it’s a WPML bug (see alo https://kriesi.at/support/topic/alb-elements-are-missing-in-translated-pages-wpml/ ).I’d recommend to report this issue to the WPML support team. If they want to debug the issue they just need to open up enfold/config-templatebuilder/avia-shortcodes/logoslider/logoslider.php
Around line 512 they just need to replace:
$this->slides = get_posts(array( 'include' => $ids, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'post__in') );
with
$this->slides = get_posts(array( 'include' => $ids, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'post__in') ); print_r($ids); print_r($this->slides);
and they’ll notice that the get_posts() function (a standard wordpress function) returns the wrong items if WPML is activated. It’s something we can’t fix on our end as far as I know.
Best regards,
DudeAugust 19, 2018 at 5:37 pm #998996This is fantastic Dude! Thank you so much. I will follow up with WPML and post results here for others to benefit from this, should anyone else have a similar problem.
Thanks again!
August 20, 2018 at 11:34 pm #999647Hello Dude,
I had a chance to go back to the site to review what you did, and find out you installed and turned on plugins. As I said, this is a live site and asked you to: “Please note this is a live site and people use it a lot, so if at all possible please do not make changes!”
Based on what I can see you have installed plugin “Theme Editor”; Updated translations for “WordPress” (fr_FR); Edited attachments; Created attachment “wpml-media-translation.2.3.5.zip”; Installed plugin “WPML Media”…
You also turned off plugins that are needed for the site to work and didn’t turn them back on! (I have since resolved this)
I am not sure if any of that was needed, or if it is needed now, and while the problem was not resolved, now I have a client who is freaking out because there is a window/field of code that appears on all editing pages!
I thought I could fix this by turning off the plugin Theme Editor, but sadly this made no difference.
Can you please resolve this ASAP, and, do I need to keep any of what you installed? or can it be safely removed?
Thank you in advance!
August 21, 2018 at 11:44 am #999768Hey!
The plugin devs said they already released an update for their plugin, you can download our developer build with the WPML fixes by using the url in the private content field. Make sure your WPML version is up to date, otherwise the fixed theme files won’t work.
I’d recommend to use ftp to install the theme update.
Best regards,
PeterAugust 21, 2018 at 12:14 pm #999787Hi,
The code window that your client saw is the Avia Layout Builder Debugger I tried to assist by removing it for you, since your client is “freaking out”
but for your other questions, Dude will know more about. Please reply back if the issue is not resolved so your thread remains visible on our end. Sorry for any inconvenience.Best regards,
MikeAugust 21, 2018 at 1:33 pm #999812Hi!
These changes were required to debug the theme and plugin code. Mike already deactivated the debug mode, I removed the plugin “Theme editor”. Personally I’d recommend to leave the media translation plugin activated, but you can try to deactivate/remove it if you think it’s not required for your purposes. The plugin I deactivated altered the default workflow how attachments are handled, thus I had to deactivate it to check what causes the wrong translations.
I’m sorry your clients “freaked out” but with your setup it’s impossible to help you without touching the code and plugins. Next time please set up a clone of your website where we can test/debug without affecting your client.
Cheers!
PeterAugust 21, 2018 at 2:56 pm #999846Thank you Mike, Dude, Peter.
-
AuthorPosts
- You must be logged in to reply to this topic.