Using 1.11.8 and up to date modules.
I have a test site that is successfully using CGSmartImage and a new site that is not finding the images.
Have finally realised that the Uploads folder in the new site is missing the _CGSmartImage folder.
How did this come about and how can I correct it?
Thanks
[Solved]Uploads folder missing a CGSmartImage folder
[Solved]Uploads folder missing a CGSmartImage folder
Last edited by jasnick on Thu Sep 26, 2013 11:10 am, edited 1 time in total.
Re: Uploads folder missing a CGSmartImage folder
I'd expect it to be generated automatically. Unless the folder permissions of /uploads are not properly configured (you could try chmod 777).
Re: Uploads folder missing a CGSmartImage folder
Yes, so would I. Thanks velden. Permissions seem OK. I suppose I should re-install CGSmartImage.
Re: Uploads folder missing a CGSmartImage folder
Do you have error reporting disabled on the production server?jasnick wrote:Yes, so would I. Thanks velden. Permissions seem OK. I suppose I should re-install CGSmartImage.
It could be that CGSI checks for proper permissions before creating the folder.
In that case it could be that /uploads AND ALL DESCENDANT FOLDER AND FILES must have proper permissions for the php process. (so a recursive chmod for files and folder).
And what if you create the _CGSmartImage folder yourself (case is important, don't know what it must be) and set the proper permissions on that folder (777)?
Re: Uploads folder missing a CGSmartImage folder
Thanks velden!
I re-installed CGSmartImage and it made no difference.
Permissions currently are 755 on uploads folder, individual files are 755 except for .htaccess which is 644.
The test directory has the same permissions except .htaccess is also 755. As is _CGSmartImage folder.
I re-installed CGSmartImage and it made no difference.
Permissions currently are 755 on uploads folder, individual files are 755 except for .htaccess which is 644.
Good idea!jasnick wrote:It could be that CGSI checks for proper permissions before creating the folder.
I could do that - copy the case etc from the test site where it works perfectly!jasnick wrote: And what if you create the _CGSmartImage folder yourself (case is important, don't know what it must be) and set the proper permissions on that folder (777)?
Yes at the moment. Will work on this stuff. I was hoping that a re-install would do the trick but it obviously didn't so it must be something else.jasnick wrote:Do you have error reporting disabled on the production server?
The test directory has the same permissions except .htaccess is also 755. As is _CGSmartImage folder.
Re: Uploads folder missing a CGSmartImage folder
Test and production are on the same server?
If not, it could be that they each use their own 'system' regarding php user.
It could also depend on how you install cmsms; via FTP or via Hosting Provider installer (different users possibly).
If not, it could be that they each use their own 'system' regarding php user.
It could also depend on how you install cmsms; via FTP or via Hosting Provider installer (different users possibly).
Re: Uploads folder missing a CGSmartImage folder
No, different servers.
I install via host installer: Softaculous so both the same from that aspect but yes, different host servers.
I install via host installer: Softaculous so both the same from that aspect but yes, different host servers.
Re: Uploads folder missing a CGSmartImage folder
I really don't know what to do next.
Changed the permissions to 777.
Re-installed CGSmartImage and added some new images. Checked File Manager - still no "_CGSmartImage folder" in uploads. Added it myself, no change as it remained empty even after adding new images. As long as its empty, nothing is going to show onsite.
Cleared the cache meanwhile after each operation.
This is the most frustrating issue I have ever faced. I can see no difference between the 2 sites (test and live) yet the test works and the live doesn't.
I am going to ask the host if there are any differences between the output on each server.
[Later] Host replied that there might be and asked me to submit a Ticket. So wrote out a history of events and we'll see what will happen.
Changed the permissions to 777.
Re-installed CGSmartImage and added some new images. Checked File Manager - still no "_CGSmartImage folder" in uploads. Added it myself, no change as it remained empty even after adding new images. As long as its empty, nothing is going to show onsite.
Cleared the cache meanwhile after each operation.
This is the most frustrating issue I have ever faced. I can see no difference between the 2 sites (test and live) yet the test works and the live doesn't.
I am going to ask the host if there are any differences between the output on each server.
[Later] Host replied that there might be and asked me to submit a Ticket. So wrote out a history of events and we'll see what will happen.
Re: Uploads folder missing a CGSmartImage folder
Success of sorts - host was very patient and found no obvious system errors so I thought it must be ME! The problem was non-location of images. Jquery proved not to be the issue and I have got the site working again albeit without CGSmartImage.
However, as I was going to email the host again with a comparison of the two Products templates (test site and live site) I realised when I saw them side by side that there indeed was a difference. In the live site the field definition was Photo and the template was looking for photo. Once I fixed that the site worked again.
The best news was I suddenly had a _CGSmartImage folder in Uploads and it is filled with images! I can't test it properly at the moment as I uploaded re-sized images at the moment as I was keen to get the page working for the client who has been without it for a few days.
So I switched the Summary template back to the template using CGSmartImage and it works!. The Detail template does not so I will need to investigate further. However I am really pleased that things are so much better than they were a while ago.
However, as I was going to email the host again with a comparison of the two Products templates (test site and live site) I realised when I saw them side by side that there indeed was a difference. In the live site the field definition was Photo and the template was looking for photo. Once I fixed that the site worked again.
The best news was I suddenly had a _CGSmartImage folder in Uploads and it is filled with images! I can't test it properly at the moment as I uploaded re-sized images at the moment as I was keen to get the page working for the client who has been without it for a few days.
So I switched the Summary template back to the template using CGSmartImage and it works!. The Detail template does not so I will need to investigate further. However I am really pleased that things are so much better than they were a while ago.
Re: Uploads folder missing a CGSmartImage folder
Finally - it works!
The problem turned out be that instead of uploading all the images for each detail page, I just did 3 in order to test it. It only worked when I uploaded all the images (10) allowed for in the template.
Thanks velden for your input.
The problem turned out be that instead of uploading all the images for each detail page, I just did 3 in order to test it. It only worked when I uploaded all the images (10) allowed for in the template.
Thanks velden for your input.


