Tagged: logoslider, wpml
-
AuthorPosts
-
June 25, 2018 at 9:17 pm #977652
Hi support team,
I am using Enfold (child theme) and WPML (using the Translation Editor)
After updating the theme and all the plugins to the latest version I have a problem regarding the logoslider not displaying the images in the second language (EN) and showing a debug message:Notice: Undefined variable: img in […]/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/logoslider/logoslider.php on line 639
See : https://www.haas-energy.com/en/energy-consultant-winfried-haas/
(If you click on the german flag you can see how the page with logoslider should look like.)And I don’t know if they should, but the images of the logoslider (or the meta information of the logos) also don’t show up in the WPML Translation Editor.
I already tried standard steps you may ask for:
-
installed enfold via FTP (after deleting old folder)
changed to parent Theme and reseted all settings
deactivated all plugins (except wpml)
deleted cache + deactivate w3 super cache + delete remaining cache entries in .htaccessYet nothing helped.
I also tried once to save the english translation page directly via WP-Editor (not via ‘WPML Translation Editor’) but this only resulted in a white screen showing more messages/warnings:
Notice: Undefined variable: img in […]/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/logoslider/logoslider.php on line 639 Warning: Cannot modify header information - headers already sent by (output started at […]/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/logoslider/logoslider.php:639) in […]/wp-admin/post.php on line 198 Warning: Cannot modify header information - headers already sent by (output started at […]/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/logoslider/logoslider.php:639) in […]/wp-includes/pluggable.php on line 1216
So I don’t know what else I could try to find the problem.
I hope you can help me!(I activated everything again except the Enfold Performace settings and the cache plugin.)
Best regards,
zarlekinJune 26, 2018 at 1:20 am #977725Hey zarlekin,
Thank you for using Enfold.
You have to re-select the images manually because it’s still using the thumbnails from the first language.
Best regards,
IsmaelJune 26, 2018 at 1:11 pm #977932Hi Ismael,
thank you or you replay, but reselecting the logos in the original language (DE) and update the english translation in the WPML Translation Editor, doesn’t solve the problem.
And reselecting the images in the translated page via Avia Builder, also doesn’t solve the problem. Because the moment the client makes some text changes in the original page, updates the english texts via WPML Translation Editor and saves the translation, the logoslider will break again.For you to see the problem more clearly I created two test pages and translated them vie WPML Translation editor.
(DE = original language | EN = translation)1 Page with different media elements (single image, gallery grid, horizontal gallery)
DE: https://www.haas-energy.com/medien-ohne-logoslider/
EN: https://www.haas-energy.com/en/media-without-logoslider/You can see, that the translation (EN) works fine. It shows all the images.
2. Same page + LOGOSLIDER
DE: https://www.haas-energy.com/medien-mit-logoslider/
EN: https://www.haas-energy.com/en/media-with-logoslider/Here you can see, that the moment I insert a logoslider into the page the translated page breaks. Not only the images of the logoslider won’t show up, also the images of the other media elements won’t show up.
Another thing that you can observe is that if you are on the original language (DE) the link in the language switcher (english flag) goes to https://www.haas-energy.com/en/?page_id=6216 and not to https://www.haas-energy.com/en/media-with-logoslider/
It looks like the WPML Translation Editor can’t even save the translation properly if a logoslider is used on a page.As far as I can see there is something really wrong with the logoslider that has to be fixed. Because all the other elements I tested work fine.
Could you please look deeper into this issue?Thank you and best regards,
zarlekinJuly 2, 2018 at 1:02 pm #980073Hello Ismael,
it’s been 5 days without a reply :(In the meantime WPML released new versions (July 2, 2018)
-
I updated all the WPML plugins
I cleared the WMPL cache and other options shown in WPML/Support/Troubleshooting
I reselected the images of the logoslider on the DE page, saved the page and also the translation (via WPML Translation Editor)Yet nothing changed/improved regarding this ticket.
Please, please help me here!
zarlekinJuly 5, 2018 at 2:34 pm #981616Hi,
Thank you for using Enfold and reporting this – and sorry for the late reply.
I could locate and reproduce the problem with the missing images.
It is a WPML problem that breaks the query for the images. We are working on it to find a solution. We will come back as soon we find a solution.
Best regards,
GünterJuly 6, 2018 at 12:14 pm #982009Hi,
I could fix the problem with the logoslider.
Please update file config-templatebuilder\avia-shortcodes\logoslider\logoslider.php
with https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_4_1/logoslider.php
Do not forget to make a backup of the original file for a fallback and that you have updated to Enfold 4.4.1.
Make sure, that you have translated all images with WPML Media Translation you are using in the logoslider (see link in private content).
Concerning language flags – this must be caused by a plugin – or a WPML problem. Our theme uses standard WPML functions to output the flags:
config-wpml\config.php line 257 function avia_wpml_language_switch().
Try to deactivate all non WPML plugins, all caching plugins and check. Then reactivate one plugin after the other.
Best regards,
GünterJuly 9, 2018 at 11:10 am #983004Hi Günter,
thank you for looking into it and for your reply!At first glance it looks like the problem is fixed, as the logoslider now shows up in the translation of the website page
See: https://www.haas-energy.com/en/energy-consultant-winfried-haas/Yet if you take a look at the test pages the situation got worse :(
Because now all the avia builder images that are NOT in a logoslider don’t show up.1 Page with different media elements (single image, gallery grid, horizontal gallery)
DE: https://www.haas-energy.com/medien-ohne-logoslider/
EN: https://www.haas-energy.com/en/media-without-logoslider/Before the fix: The translation (EN) works fine. It shows all the images.
After the fix: There are no images in the translation.Even if I create a page with only a single image, the image won’t show up in the translation.
DE: https://www.haas-energy.com/nur-bild/
EN: https://www.haas-energy.com/en/single-image-only/2. Same page + LOGOSLIDER
DE: https://www.haas-energy.com/medien-mit-logoslider/
EN: https://www.haas-energy.com/en/media-with-logoslider/Before the fix: There are no images in the EN translation.
After the fix: The images of the logoslider show up in EN but nothing else.
(And as this is the ONLY page where the link in the language switcher links to the ID (https://www.haas-energy.com/en/?page_id=6216) let’s first see if this behaviour remains if the problem with the images is fixed, before trying something else.)Another observation:
After inserting the new logoslider.php file, automatically, without touching anything, the images on the test pages I created on June 26. didn’t show up anymore. Yet in older pages the images are still there. It’s like the images only disappear on pages created or saved with the new WPML/Enfold.Best regards,
zarlekinJuly 10, 2018 at 4:25 pm #983725Hi,
The problem with translated images also occur in the following files that need to be updated:
config-templatebuilder\avia-shortcodes\catalogue\catalogue.php with
https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_4_1/catalogue.phpconfig-templatebuilder\avia-shortcodes\image\image.php with
https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_4_1/image.phpconfig-templatebuilder\avia-shortcodes\image_hotspots\image_hotspots.php with
https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_4_1/image_hotspots.phpconfig-templatebuilder\avia-shortcodes\section.php with
https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_4_1/section.phpconfig-templatebuilder\avia-shortcodes\timeline\timeline.php
https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_4_1/timeline.phpPlease update these files and clear all server and browser cache.
Best regards,
GünterJuly 11, 2018 at 3:07 pm #984245Hello Günter,
I replaced all the files mentioned above but nothing changed on the test pages.
(I don’t have any cache plugin activated but cleared WPML cache and browser cache.)Maybe all the avia shortcodes where you can insert images have to be updated?
(On the test pages for example I also use a grid gallery and a horizontal gallery.)Best regards,
zarlekinJuly 11, 2018 at 3:34 pm #984265Hi,
Thanks for the feedback – you are absolutly right.
Can you confirm that the problems also appeard together with a WPML update? It seems that WPML changed a lot with translating images and this breaks our logic.
We are also having other users with similar problems – I’m working on it to fix it.
Best regards,
GünterJuly 11, 2018 at 3:40 pm #984268I saw this problem after updating both WPML and Enfold to the latest versions.
Best regards,
zarlekinJuly 11, 2018 at 6:09 pm #984320Hi,
As far as I coud figure out you need to translate all images that you use in Enfold Layout builder elements – you can run a WPML update routine (see link in private content):
Goto Dashboard -> WPML -> Settings and “Media Translation” at the bottom.
There you find “Media Translation Documentation” and a button “Start”. Leave all checkboxes checked.Or you translate every image manully on Goto Dashboard -> WPML -> Media Translation.
As far as I could test on my install this should fix the problem.
Best regards,
GünterJuly 12, 2018 at 2:32 pm #984778Hello Günter.
as far as I know the media was already translated, however I did it again following your steps. Yet nothing changed.Best regards,
zarlekinJuly 16, 2018 at 4:43 pm #985977July 18, 2018 at 12:29 pm #986927Hi,
There seems to be a core problem in WPML. I’ve been in touch with them and they say there should be a fix in the next update.
Could you please get in touch with the guy (see in private content) who is in charge of compatibility at WPML and report the problem to him and give him access to your site so he can check everything.
Maybe he can check the fix ?
Thank you for your cooperation.
Best regards,
GünterJuly 19, 2018 at 7:31 pm #987594Hello Günter,
thank you for the information.
I will do this and see if the WPML update will fix the problem.Best regards,
zarlekinJuly 27, 2018 at 12:55 pm #990665Hello Günter,
I just wanted to let you know, that the WPML update didn’t solve the problem.
However Ahmed Mohammed solved it by making changes to the wpml-config.xml file.
See WPML support ticket: https://wpml.org/forums/topic/translated-images-not-showing-after-updating-wpml/Thank you for your support!
zarlekin- This reply was modified 6 years, 4 months ago by zarlekin.
July 30, 2018 at 12:46 am #991336 -
AuthorPosts
- You must be logged in to reply to this topic.