This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

qrikko35406
qrikko35406

I am sure this is a fault on my side but I would like to see if anyone have any idea how to find the error.

I am using my own theme, based on some other theme.

When I upload files in the media manager in october cms it seem to be working just fine but when I try to get the path, example: (I am not sure if it is the theme-name perhaps it is the root folder name I seem to share the name in both places)

<img src="{{ 'myimg.png' | media }}"/>

it returns the path:

http://my.domain.com/theme-name/theme-name/storage/app/media/myimg.png

When the file is actually located at:

http://my.domain.com/theme-name/storage/app/media/myimg.png

This is also true in the manager, thumbs are shown but if I klick the url-link it will resolve the URL with the extra path element)

it looks to me like the theme-name is inserted twice, but I can't seem to find anything wrong in the configurations or anything.

I also have some problems adding images to a richeditor field in a repeatable list. Not sure if it is related or not but thought I'd mention it.

So hopefully that is enough information to work with, I will be happy to fill in any missing information but I don't know what more is needed.

Last updated

qrikko35406
qrikko35406

Ops, I posted in the wrong forum sorry! I can't find a way to move the post though.

qrikko35406
qrikko35406

Not sure why, but I works if I give an absolute media path in the CMS.php config-file.

So that is good enough for me for now.

Briddle
Briddle

Thank you @qrikko35406,

I had the exact same problem when using October CMS from a subfolder.

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.