Post by mr_mada » Sat Apr 27, 2013 2:17 pm

hello

after i successfully upgraded my opencart 1.5.3 to 1.5.5.1

i have a problem :

image manager didn't display any photo at the admin section

this is some photos to explane

Image


Image


Image


image folder permission

public_html/image 7 5 5

public_html/image/data 7 5 5

pic (s) permission 6 4 4

and this link shows us the pic displayed without opencart image manager

http://ash7nly.com/image/data/1card100.jpg


please help me to fix this problem .

Newbie

Posts

Joined
Mon Apr 22, 2013 11:40 pm

Post by butte » Sun Apr 28, 2013 12:17 am

The displayed images spring from image/cache thumbnails, which are generated by OC from the image/data originals, which you upload. The database is apparently aware of their names (whether correctly or incorrectly spelled, below), since there's a stand-in "X" for each.

Since your image link to image/data works, look in image/cache to see whether thumbnails need to be regenerated. If they are absent, you can try uploading them from a backup.

Since your image/data link works, any of the following may be the problem. Each stand-in "X" means that the image/ tree is there but the image files are absent, corrupted, misnamed, etc.. On Linux file and directory names are case-sensitive, so double-check whether that is the problem and if it is just rename them. In transfer, FileZilla Client will not make mistakes that some other ftp clients do, so if you used another client retry with FileZilla. If files are absent, then try putting them back in place, preferably with FileZilla.

If you do not have a backup of image/, then try first (a) deleting the image/data originals, then (b) letting OC image manager see that there aren't any, next (c) reuploading the image/data originals, and then (d) letting OC image manager see the "new" originals from which it will regenerate "new" thumbnails. Then the tedious part will be to go through categories and products to insert the images, again, or to put their names into the database (they'll fall within a vertical field for products, and for categories).

From 1.5.3 to 1.5.5 there have been some core changes that might have helped that to happen. Perhaps someone will say something about that.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by Daniel » Mon Apr 29, 2013 8:58 am

check your config.php's

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by mr_mada » Tue Apr 30, 2013 12:23 pm

Daniel wrote:check your config.php's
i do that it's ok

and i was restored my backup of 1.5.3 v

and upgraded it to v 1.5.4.1 successfully and the image manager working

after that i try to upgrade again from 1.5.4.1 to 1.5.5.1 this time

upgrade finished successfully with no errors but image manager not working again

the last version i can upgrade for 1.5.4.1

1.5.5 and 1.5.5.1 same problem image manager not working

thank you

Newbie

Posts

Joined
Mon Apr 22, 2013 11:40 pm

Post by Chrizze » Mon May 20, 2013 1:50 am

Hello,
Let me begin with saying Thank You to all of your help, Daniel and all others! I've searched these forums, read for hours and hours about everything from paths, MySQL issues, host related issues and all sorts of fixes for the Image Manager that comes with OC 1.5.5.1.

I've tried all sorts of stuff after reading your answers and advice, but my Image Manager is still not working. I have no more ideas to try, sorry. As you can see in the attached image, I get the same issues as many others do, and I have consulted my hosting as well, but without luck.
  • I've set all paths correct in config.php
    I've upgraded CKEditor to 4.1
    I've explored the htaccess advises
    I've tried deleting cache-folders
    All folders have appropriate permissions, all according to the handbook.
My last attempt was not so successful either, I deleted all files and folders from the image folder. Then the image manager started working, I could create a folder from within the manager, and even upload a picture to that folder. But when entering the folder, the manager "crashes". Not crash, but reverts to the login screen issue.

I have no problem with manipulating code, as i am a web developer myself. But I can't seem to figure out this issue, it has been 5 days of searching up and down now. I've used Chrome and Firefox, and some other tools trying to pin it down. But with no luck unfortunately.

I really need help on this, I am happy to contribute in other areas. I could even consider paying someone to help me out. :)
I've developed an integration between OC and WordPress, and will release it later.

Attachments

Category_image_manager.png

Image manager having issues - Category_image_manager.png (105.81 KiB) Viewed 4217 times


Newbie

Posts

Joined
Mon May 20, 2013 1:21 am

Post by butte » Wed May 22, 2013 7:37 am

UPSHOT.-- If you're not using FileZilla Client, try switching to it; some others are prone to file corruptions (one bad packet suffices). Reinstate image/ tree and reinstate cache/ at least as empty directories; OR instead replace them with defaults out of upload/ inside the installer .zip file. You might actually need to send up a fresh upload/ contents (taking care NOT to overwrite the two config.php files), using FileZilla specifically, so that you'll have a clean install.

If you have 755 directories and 644 files (on most servers), register globals and magic quotes both off (often settable inside account in its own or a subsidiary php.ini), and a clean install of 1.5.5.1 (if you upgraded, that's important to know), then retry your last few steps. When you used image manager to make a dir and take up a file, it apparently did not have the additional directory structure that it expected when it opted to stop. It expects to start with the standard tree. There's an image/ tree, with cache/, data/ and further subdirectories. Given a freshly uploaded image, specifically into data/, image manager then expects to cause thumbnails, in cache/, and you probably sandbagged it. Try giving it the proper directories (mkdir or ftp) even if they're empty. Similarly, a directory cache/ can be emptied of files to better effect than deleting it along with its files; removing both probably sandbagged something else, as well. If you' go too far, then reinstallation time looms.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by Chrizze » Fri May 24, 2013 4:07 pm

I've solved it! In a co-op with my hosting company we set out to look for the problem that caused the image manager to malfunction. We found that the hosting servers caching-module was causing this issue with Image Manager failiing to locate images.

We turned off the caching function (this host was using Varnish Cache), and the image manager started to work as intended. So, if you have a clean install of OC and your image manager is behaving odd, check with your hosting company if they have activated some sort of caching function for your domain, and ask them to turn it off if you cant do it yourself.

No caching makes my site go slow, you say? Get an account with CloudFlare instead then! :)

Summary: Caching is f***ing up the image manager, turn it off and your ok again.

Newbie

Posts

Joined
Mon May 20, 2013 1:21 am

Post by butte » Fri May 24, 2013 10:46 pm

Thank you for that! That's a novel twist. Go ahead and mark your opener Solved to flag it.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am
Who is online

Users browsing this forum: No registered users and 14 guests