Skip Navigation

[Resolved] Images dissapear in translted views

This support ticket is created 4 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 20 replies, has 2 voices.

Last updated by Yannis Sintos 4 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#1404913

Hello,

After making the translation from Greek to English in a content template with WPML and using Views to present it, the image dissapears.
Here is the example of waht i am saying...
Original in Greek: hidden link
Translated with advanced translated editor: hidden link

You can see the image missing.

#1405045

Hello,
Thanks for the details, I can see the problem in your website:
hidden link
And I have checked the HTML source codes, the image is using below HTML codes:

<img src="" alt="%%tb-image-alt-text%%" class="%%tb-image-wp-image-class%%"/>

Please provide detail step to duplicate the same problem:
How do you setup and display the image field?
If it is a custom image field created with Toolset Types plugin, you can follow our document to display it with Types shortcode for example:
[types field="my-image" size="thumbnail"][/types]

More help:
https://toolset.com/documentation/customizing-sites-using-php/functions/#image

#1405145

The filed is created with an image block with no special formatting.
Should i delete it and recreate it your way ?

#1405167

I assume we are talking about WordPress built-in image block, I suggest you try to follow WordPress document to setup the image block again:
hidden link

And follow WPML document to translate it:
https://wpml.org/documentation/getting-started-guide/translating-content-created-using-gutenberg-editor/

#1405179

No, we are talking about Toolset Views Image Block.
Should i use the standard WordPress image block ?

#1405181

I am sorry, i forgot.
I want to use a dynamic image block and not a standard wordpress image block.
This page is a person's personal profile page, so i need a dynamic image block to present each person's image.

#1405183

Here is the code created from the Toolset image

[tb-dynamic-container provider='__current_post' source='toolset_custom_field|plirofories-didaskonton' field='fotografia-didaskontes']<div class="wp-block-image"><figure class="tb-image" data-toolset-blocks-image="ec6f5041-7157-4cda-8504-7027473248de"><img src="[tb-dynamic provider='__current_post' post='current' source='toolset_custom_field|plirofories-didaskonton' field='fotografia-didaskontes' force-string='first' ]" alt="%%tb-image-alt-text%%" class="%%tb-image-wp-image-class%%"/></figure></div>[/tb-dynamic-container]

#1405277

I assume we are talking about a custom image field "fotografia-didaskontes", I just tried it in my localhost with a fresh wordpress installation + the latest version of Toolset plugins + WPML plugins, it works fine.

How do you translate the post and and image?

Can you provide detail steps for duplicate the same problem?

Also check these:
1) You are using the latest version of Toolset plugins + WPML plugins in your website,
2) Then translate the post, and test again,

#1405281

Hello,

1) I use the latest verion of all plugins
2) I don't translate the image (since it is a person's photo it doesn't need translation). I use the WPML's Media translation plugin to keep the same image file.
Do you want me to provide you login credentials to see more details ?

Thank you

#1405359

Yes, I have tried it again with WPML's Media translation plugin, it works fine.

So the problem you mentioned above is abnormal, please check these:
1) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2019, deactivate all custom PHP/JS code snippets, and test again

2) Also check if there is any PHP/JS error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/

3) If the problem still persists, please provide database dump file(ZIP file) of your website, also point out the problem page URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1405465

I have tried the sql file in my locahost, it is not valid, I get a lots of mysql errors, and can not import the SQL files, please follow our document to provide the duplicator package, you can make the database only package by following their document:
hidden link
section "SETTINGS":
Database Build This is the mode that the database SQL file is created in.

Private message box enabled again.

#1405473

Couldn't i just provide you with login credentials?
I will get a backup of the website first.

#1405485

It is not recommended to debug in a live production website, and your website are using other plugins and theme, might be some unexpected compatibility issue in it, so the duplicator package will be better.

Private message box enabled again. thanks

#1406381

I tried and is seems like Duplicator is not working well, and i can't provide you with the propper file. I will continued trying it today, but it might not work.
If i provide you with a UpdraftPlus database backup, is it usable for you ?

thank you.

#1406431

OK, please provide UpdraftPlus database backup, Private message box enabled again.