2 users online. Create an account or sign in to join them.Users
JIT creates images but doesn't retrieve them
This is an open discussion with 6 replies, filed under Troubleshooting.
Search
Looks like maybe you’re getting a PHP error. Could you add this to your HTML .htaccess:
php_flag display_errors on
Thanks Nick, I added it to the .htaccess but there was no visible change, ‘phpvalue displayerrors on’ was already in the .htaccess which looks like it does the same thing.
I noticed that when I put the jit formatted url directly into the address bar I get the ‘missing image’ icon rather than a 404 page. This makes me think that it might be something to do with permissions.
The images are created with 644 permissions and with an owner group of ‘apache’ whereas the group elsewhere is ‘psacln’ which seems to be the standard permissions.
I don’t know much about server permissions, does anyone have any tips?
I reckon you’re having safe mode issues. I have to contend with those.
check your PHP configuration using
<?php echo phpinfo(); ?>
in a file at your root to see if safe mode is on. I have the same group and owner permission problems, and funnily, the same group names you mention! Are you on 34sp.com hosting? Using Plesk?
This has pre warned me though that I will discover issues when I get round to using JIT :S
Thanks for the tip designermonkey,
I am using plesk, hosting’s on rackspace. safe_mode was on, I’ve turned it off in plesk and checked that it’s off in phpinfo() but unfortunately everything’s is still working (not working) the same.
I’ve tried changing the permissions to 777 on all directories and this makes no difference.
The ownership and permissions on the files jit generates are user: apache, group: apache, perms: 644.
Is there anyway of ensuring JIT creaes images with the same group permissions as the containing directory?
Anyone have any further ideas/guidance?
It’s odd that the cached JPEG file is created successfully, but it simply isn’t served. Perhaps you need to delve into the extension and start debugging it :-/
Safe mode will have created all the folders and files, so I reckon your username and/or group doesn’t have read permissions. Your user:group will be different to the Apache one…
Is there any way of removing the JIT cached images and trying it again now safe mode is off? All the files/folders involved will then be created with the right user:group.
At least I think that would work…
EDIT: Yep that will work.
Using the Plesk File viewer, check every file/folder, any created as apache:apache, you’re going to either chown them to your user:group or recreate them as your user:group.
If you can shell access your server, and have rights to use chown, then run these…
cd /path/to/httpdocs chown -R your-user:your-group .
That’ll sort things. If you don’t have the rights to chown, then (like I’ve had to) you’re going to need to manually replace the files/folders. I ftp’d them down, chown‘d them to my local user:group, then ftp’d them back up…
Create an account or sign in to comment.
Hi, I’ve been using JIT on a local server and it’s working fine but the same code online won’t work.
I’ve checked:
Everything else about the installation seems to be working fine.
Here’s a test page with both an img tag with the direct path to the image and one with the path rooted through a JIT formatted url: http://disturbmedia.com/preview/social/staging/temp/
And here’s the image it generates: http://disturbmedia.com/preview/social/staging/manifest/cache/7025af9a1b0dbeb902faa84843c7755c_dog.jpg
Any ideas?
Thanks