Skip Navigation

[Resuelto] mixed content problem types image

This support ticket is created hace 6 años, 12 meses. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

Etiquetado: 

This topic contains 2 respuestas, has 2 mensajes.

Last updated by christerA hace 6 años, 12 meses.

Assisted by: Minesh.

Autor
Mensajes
#519786

Hi.

Strange problem.
I have an CPT image shown in a template, like:
[types field='my-image' alt='%%ALT%%' title='%%TITLE%%' size='full' align='none'][/types]

When i display it raw, like:
[types field='bild' size='full' url='true'][/types]
it shows:
hidden link......theimage.jpg

BUT, when i in Chrome right click and choose "Console" it says:
"Mixed Content: The page at 'hidden link...../' was loaded over HTTPS, but requested an insecure image 'hidden link...theimage.jpg'. This content should also be served over HTTPS."

And of course Chrome then shows in the URL field that the page is not secure.

Where does the http come from?

#519833

Minesh
Supporter

Languages: Inglés (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Types stores custom fields as standard WordPress post meta, which means in the standard wordpress postmeta table.

The key thing to be aware of is that the slugs are prepended with 'wpcf-' when stored in the database. So a Types custom field of "myname" would be stored with a key of 'wpcf-myname'.
=> https://toolset.com/documentation/customizing-sites-using-php/functions/

Did you moved site to another server - could you please check in the database how image links stored - using http or https? Are you using any cache plugin - if so, could you please try to remove cache.

Also,
With Types image field we offer attribute no_protocol using which you can dispaly image without http// or https:// protocol. If you want to display image without protocol:

Could you please try with "no_protocol " attribute - for example:

[types field='bild' size='full' url='true' no_protocol="true"][/types]

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

no_protocol:
"true" | "false" (default)
Display URL without protocol "http:// and <em><u>hidden link</u></em>.
#519877

Hi.

You were right, some links in the database were wrong. Even though i used Velvet blues when we moved the site.
Thanks for your help.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.