Skip Navigation

[Resolved] images not showing in mobile site after types update to 3.06

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the image field is giving the wrong url on the site.

Solution:

What you can do is to output the raw URL and wrap it in an image tag as a workaround.

<img src="[types field='image-2' output='raw' alt='%%ALT%%' title='%%TITLE%%' size='full' align='center'][/types]"/>
This support ticket is created 6 years, 4 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.

Our next available supporter will start replying to tickets in about 2.46 hours from now. Thank you for your understanding.

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

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 5 replies, has 2 voices.

Last updated by katieS 6 years, 4 months ago.

Assisted by: Shane.

Author
Posts
#996538

I am trying to: I have recently updated Toolset Types on 3 websites. I had to do this manually after advice from Shane that there is a possible problem with the v3 automatic updates.
This seems to have been successful but it has now been noticed that on one site the images have stopped displaying when the site is accessed on a mobile.
This site was updated from 2.2.23 whereas the other two were updated from 3.01 and I don't think they are showing any problems.
I have had to restore to 2.2.23 so that it is working for the client.
Is this a known problem?
Is there a way I can use the latest version? I have several sites that are getting further out of date because they are not accepting automatic updates.

Link to a page where the issue can be seen:

I expected to see:

Instead, I got:

#1010368

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Katie,

Thank you for contacting our support forum.

Is there a way you can setup one of the sites for me so that I can have a look with the updated plugin?

Thanks,
Shane

#1017663

hidden link

I have temporarily reinstalled Types 3.06 (after backup!)
This has now returned to the situation where it looks fine on laptop but images do not display when opened on a mobile.
I would be grateful if this could be looked at ASAP before the client panics.
Thank you

#1024253

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Katie,

The images are not even shown for me on the desktop site.

Also the image url leads me to a 404 page.
hidden link

The url looks correct but could I get access to this site? Inform the customer that our support is looking at it ?

Please let me know.
Thanks,
Shane

#1069324

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Katie,

It seems its an issue with the sub domain. Its trying to get the url from the main domain and not the dev domain.

However you can workaround the issue by doing this.

<img src="[types field='image-2' output='raw' alt='%%ALT%%' title='%%TITLE%%' size='full' align='center'][/types]"/>

This should render the image correctly.

Please let me know if this helps.
Thanks,
Shane

#1070215

Thank you very much for this. I have now replaced all the original
[types field='image-2' output='raw' alt='%%ALT%%' title='%%TITLE%%' size='full' align='center'][/types]
with
<img src="[types field='image-2' output='raw' alt='%%ALT%%' title='%%TITLE%%' size='full' align='center'][/types]"/>

and I believe it has solved the problem