This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hey,
today i updated OctoberCMS. After the succesful update, some Images are not showing anymore. The Image is not showing in the "Mediafinder". If i select the image, that is already uploaded, only the filename is displayed.
Code
{variable name="myImage" label="Choose Image" tab="Preview" type="mediafinder" mode="image"}{/variable}
Result in View
< img src="https://127.0.0.1/october/october/storage/app/media/uploaded-files/test.png" alt="Preview">
As you can see, the file path is wrong. "/october/october"
If i change it manually
< img src="https://127.0.0.1/october/storage/app/media/uploaded-files/test.png" alt="Preview">
it is working perfect. Jfyi: I'm using static pages.
Last updated
Okay i found a quick & dirty solution: In the files, where i work with the variable, i added the "replace" parameter. So i can easily replace the wrong path and set the right one.
{{ myImage|media|replace({'/october/october/': '/october/'}) }}
Now the images are displayed again. For the first time it is okay, but i need still a better solution or fix for the problem.
Last updated
1-4 of 4