Site logo

Archived topic

Sections - 'Add Media' Wrong URLS?

5 replies · Started by Chris on December 11, 2018

Viewing posts 1–6 of 6

Hey all,

So since the 5.0 update something strange has been going on with my 'Add Media' when using Sections. All seems fine until you preview/publish and the images added throw up a 404 error. It looks like it creates the wrong URL. For example,

All images just show up as the blue question mark icon because the url created is http://www.website.url/our-projects/wp-content/uploads/2018/12/LotteryLogo-e1543850248906.jpg

When the actual URL image is

src="../wp-content/uploads/2018/12/LotteryLogo-e1543850248906.jpg".

So it looks like 'our-projects' is being added when it shouldn't be.

Any idea how to change this? When handing over to the charity I'm building it for, the ability to use 'Add Media' rather than html/css is important. It all seems to work fine on the new Gutenberg editor, only in sections.

Any help would be appreciated, not ruling out me having messed up some setting somewhere.

Cheers!

Hi there,

Definitely a bug - been working on it all day.

It seems TinyMCE is using relative URLs. Will have it fixed in the next GPP version.

For now, you can:

a) Go into the text and add your URL instead of ../
b) Insert your image while in the "Text" tab.

Thanks for reporting this!

Thanks Tom - great theme and great support!

GP Premium 1.7.6 has been released with a fix for this.

Note that it only affects images on upload, so you'll need to manually add the URL to existing images that were affected.

All new images inserted should have the full URL.

Let me know :)

Hi Tom,

Looks all good to me! Magician.

Cheers!

Great! Thanks again for reporting the issue :)

This archived topic is closed to new replies.