Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Error on image-urls after upgrading to 0.9.30

Started by Muut Archive 11 years ago · 5 replies · 311 views
11 years ago

I have implemented lazysizes on my site for the images (via page.media.url) which have been working nice until upgrading to 0.9.30 today. Now I am getting empty images with ressources not found. After investigating the source code there is now a difference in comparision from 0.9.29 to 0.9.30 in the source/data-source url-pattern: /themename/user/pages/01.home/_teaser/image.png?c1419a8a has changed to /user/pages/01.home/_teaser/image.png.

Are there any changes concerncing page.media.url now?

11 years ago

@joville, can you give me the before and after in code blocks (see the questionmark in the forum text input box). I'm trying out work out if the URL is actually changed or if its a bad 'paste'.

There was a change/fix for media timestamps, but it was always on before, and now it's defaulted to off. You should be able to override with:

YAML
media:
  enable_media_timestamp: true

in your /user/config/system.yaml

There shouldn't of been any change to the URL method though.

11 years ago

@rhukster well, now it's working again!

before upgrade:

TXT
<img src="/joville/user/pages/01.home/_teaser/joville1x.png?c1419a8a 1x, /joville/user/pages/01.home/_teaser/joville2x.png?c1419a8a 2x" data-src="/joville/user/pages/01.home/_teaser/joville1x.png?c1419a8a 1x, /joville/user/pages/01.home/_teaser/joville2x.png?c1419a8a 2x" class=" img-responsive lazyloaded">

after upgrade:

TXT
<img src="/user/pages/01.startseite/_teaser/joville1x.png 1x, /user/pages/01.startseite/_teaser/joville2x.png 2x" data-src="/user/pages/01.startseite/_teaser/joville1x.png 1x, /user/pages/01.startseite/_teaser/joville2x.png 2x" class=" img-responsive lazyloaded">

now with your input in system.yaml:

TXT

<img src="/user/pages/01.startseite/_teaser/joville1x.png?c0bd50fa 1x, /user/pages/01.startseite/_teaser/joville2x.png?c0bd50fa 2x" data-src="/user/pages/01.startseite/_teaser/joville1x.png?c0bd50fa 1x, /user/pages/01.startseite/_teaser/joville2x.png?c0bd50fa 2x" class=" img-responsive lazyloaded">
11 years ago

The first codeblock is from livesite. I have changed the slug on local but it is the same.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1332 9 years ago
Archive · by Muut Archive, 9 years ago
2 923 9 years ago
Archive · by Muut Archive, 9 years ago
2 4053 9 years ago
Archive · by Muut Archive, 9 years ago
1 2931 9 years ago
Archive · by Muut Archive, 9 years ago
3 1109 9 years ago