Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When putting thumbs into a playlist, the path is created incorrectly. It uses a relative path and does not append the base_path() to the path it receives. This will cause images to not show up on anything that is not in the document root. The fix is simple.
On line 370 change:
'value' => $thumb,
To
'value' => base_path().$thumb,
Now when you view /node/1/xspf from a player that is located at something like /node/somewhere, the images will actually show up rather than be blank.
Comment | File | Size | Author |
---|---|---|---|
#3 | fix-image-patch.372622.3.patch | 863 bytes | aaron |
Comments
Comment #1
riyana56 CreditAttribution: riyana56 commentedPlease post which code to change in the 6.x version please.
Comment #2
riyana56 CreditAttribution: riyana56 commentedI have found the solution for this in 6.x.
In xspf_playlist\xspf_playlist_thumb\xspf_playlist_thumb.module go to line 162.
Change it from
to
In my scenario, merely adding the slash was enough to make the images no longer break.
Comment #3
aaron CreditAttribution: aaron commentedthat should really be
i'm not able to test atm though. but here's a patch if anyone wants:
Comment #4
crystaldawn CreditAttribution: crystaldawn commentedIs this issue still not fixed? Is the maintainer MIA?