Guest
29 Jan 2013 11:45

I've used Cobalt 7 in the past and am excited to use Cobalt 8 on a new Joomla 3 site. So far I am liking it, however I have an issue with the image field.

I have a problem displaying images using the 'Resize' option. When the page renders the src for the images becomes something like this...

<img class="img-polaroid" vspace="0" hspace="0" title="Clippard, Lee" alt="Clippard, Lee" src="/cache/cobalt_thumbs/image/0/9caa1074657e9382d199ea3732752fde.png">

This url seem valid but I cannot get an image to display. I have tried permissions settings with no luck. In Cobalt 7 I had no issues, but it looks like images are now located in the cache instead of the images folder.

I have tried switching the way users insert the image and the result is always the same.

Can someone help point me in the right direction?

Last Modified: 02 Mar 2014


Sergey
Total posts: 13,748
01 Feb 2013 00:45

Do you have your site in subfolder? Perhaps this can be the reason.


Guest
04 Feb 2013 14:25

Sorry for the late reply, I was out of the office for several days.

Yes my site is in a subfolder under the web root, the structure is...

Web Root

Joomla Install 1

Joomla Install 2

Joomla Install 3

Joomla Install 4


Sergey
Total posts: 13,748
05 Feb 2013 05:26

What i mean by site in subfolder does URL have subfolder. Like http://site/jooomla1/

If this is the case, then I know the problem. Problem is the local installation with XAMP. And image URL have to be

/joomla1/cache/cobalt_thumbs/image/0/9caa1074657e9382d199ea3732752fde.png

instead of

/cache/cobalt_thumbs/image/0/9caa1074657e9382d199ea3732752fde.png


Guest
05 Feb 2013 13:27

In that case no, I don't have it in a subfolder.

I am trying to set up the image field. I want users use the Upload image feature to upload their picture. I also want to use the resize feature in the List view and Full view. The picture uploads correctly but then doesn't display. I can see using Firebug that the source for the image is coming from /cache but it can't load the url.

My initial directory is images(by default) and I have tried setting this to cache but that doesn't do anything either.


Sergey
Total posts: 13,748
05 Feb 2013 21:45

Then check if cache folder is writable. And check if file in HTML source really exists.


Guest
07 Feb 2013 11:33

I'm checking on my end, the files exists in the directory but cannot be access by entering the url in a browser.


Sergey
Total posts: 13,748
07 Feb 2013 22:43

Then it may be htaccess protection from any file be accesses in cache folder. Check .htaccess and add

<Filesmatch ".(png|gif|jpe?g)$">

order allow,deny

allow from all

</Filesmatch>

Guest
08 Feb 2013 10:55

Nice! :)

It was an htaccess issue, I needed to let the cache folder display the images. Thanks for the tip, I really appreciate the customer service you guys provide.


dlbass93 VIP
Total posts: 44
13 Apr 2013 09:22

I have this exact problem, I think.

I put the htaccess edit in my root .htaccess file, but it didn't appear to do anything.

I looked at permissions on the cache dir, it has 755, the cobalt_thumbs is 777, image is 777, the article number is 777, and the image itself is 644.

Thanks,

Powered by Cobalt