cck 6.x-2.9

filefield 6.x-3.9

Ok I add the imagefield into my node creation fields. The image gets stored in all the right places... but no preview image displays and no image displays in the node content or teaser or anywhere else.

In the page source it becomes clear what the problem is: :The path to the image in the source is this:
src="http://www.mysite.com/sites/default/files/imagefield_thumbs/images/mypic..."

So presumably it is that .jpg?1298578509 that is the problem... A different random number seems to be generated for every upload.

The same source code problem occurs on any page which an uploaded image should be disaplyed whether preview or teaser or node display.

Comments

Anonymous’s picture

Title: imagefield/fielfield not disaplying uploaded images » imagefield/fielfield not displaying uploaded images
quicksketch’s picture

The ?0123456789 number is the timestamp of when the image was uploaded. This prevents any caching problems (both in the browser and by reverse-proxy caches). If you view the image URL directly, can you access the file?

Anonymous’s picture

Ok,

Bizarrely the image doesn;t show when i put the url in specifically... even though all the files and the path seem to be in the right places...

I get a Server 500 error

"Either the server is overloaded or there was an error in a CGI script. "

quicksketch’s picture

In which case it sounds like an issue with your server configuration. If the file exists on disk (visible via FTP), then you should contact your host as to why you can't access it through a web browser.

Anonymous’s picture

Thanks I will do... - will report back here.

Anonymous’s picture

The problem turned out to be in my .htaccess file - that had also been causing me other problems without me knowing. The support guy at my hosting service fixed it very quickly.

I should do a plug for them actually - they are excellent. chameleonwebhosting.

And thank you to you too quicksketch.

Anonymous’s picture

Status: Active » Closed (fixed)