Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #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=fr

    Any ideas on how to resolve this?

    #996512

    Hey 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,
    Mike

    #996729

    Hello 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.

    #997208

    Hi,

    Please create us an admin account – we’ll check the configuration on the editor page.

    Best regards,
    Dude

    #997251

    Hello 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!

    #998499

    Sorry 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?

    #998701

    Hi,
    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,
    Dude

    #998996

    This 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!

    #999647

    Hello 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!

    what's this?

    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!

    #999768

    Hey!

    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,
    Peter

    #999787

    Hi,
    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,
    Mike

    #999812

    Hi!

    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!
    Peter

    #999846

    Thank you Mike, Dude, Peter.

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.