[Solved]Uploads folder missing a CGSmartImage folder

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

[Solved]Uploads folder missing a CGSmartImage folder

Post by jasnick »

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
Last edited by jasnick on Thu Sep 26, 2013 11:10 am, edited 1 time in total.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Uploads folder missing a CGSmartImage folder

Post by velden »

I'd expect it to be generated automatically. Unless the folder permissions of /uploads are not properly configured (you could try chmod 777).
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

Re: Uploads folder missing a CGSmartImage folder

Post by jasnick »

Yes, so would I. Thanks velden. Permissions seem OK. I suppose I should re-install CGSmartImage.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Uploads folder missing a CGSmartImage folder

Post by velden »

jasnick wrote:Yes, so would I. Thanks velden. Permissions seem OK. I suppose I should re-install CGSmartImage.
Do you have error reporting disabled on the production server?

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)?
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

Re: Uploads folder missing a CGSmartImage folder

Post by jasnick »

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.
jasnick wrote:It could be that CGSI checks for proper permissions before creating the folder.
Good idea!
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)?
I could do that - copy the case etc from the test site where it works perfectly!
jasnick wrote:Do you have error reporting disabled on the production server?
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.
The test directory has the same permissions except .htaccess is also 755. As is _CGSmartImage folder. ???
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Uploads folder missing a CGSmartImage folder

Post by velden »

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).
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

Re: Uploads folder missing a CGSmartImage folder

Post by jasnick »

No, different servers.
I install via host installer: Softaculous so both the same from that aspect but yes, different host servers.
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

Re: Uploads folder missing a CGSmartImage folder

Post by jasnick »

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.
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

Re: Uploads folder missing a CGSmartImage folder

Post by jasnick »

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.
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

Re: Uploads folder missing a CGSmartImage folder

Post by jasnick »

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. :)
Post Reply

Return to “Modules/Add-Ons”