Page 1 of 1
[SOLVED]Image adding suddenly stopped working..
Posted: Mon Jun 27, 2011 10:00 am
by nipun5perera
Image adding worked fine yesterday,But when today i'm trying to add new product images it's not showing image adding ..
Please give some help on this..
I'm using Opencart 1.5.0.5 ,Worked fine until yesterday

Re: Image adding suddenly stopped working..
Posted: Mon Jun 27, 2011 11:26 am
by rph
I'd start by logging out, clearing your browser cache, then logging back into the store.
Re: Image adding suddenly stopped working..
Posted: Mon Jun 27, 2011 12:54 pm
by nipun5perera
rph wrote:I'd start by logging out, clearing your browser cache, then logging back into the store.
I tried as you saied ,but no luck with that..
checked the source and found that there is no link for the image..

Re: Image adding suddenly stopped working..
Posted: Mon Jun 27, 2011 2:00 pm
by rph
Have you made any changes recently?
Re: Image adding suddenly stopped working..
Posted: Mon Jun 27, 2011 2:16 pm
by Xsecrets
go into it in ie and you should see a red x you should be able to click on that to open the file manager.
Re: Image adding suddenly stopped working..
Posted: Mon Jun 27, 2011 2:36 pm
by nipun5perera
rph wrote:Have you made any changes recently?
No didn't do anything ..
Found this on Opencart error log,
Code: Select all
2011-06-26 17:30:47 - PHP Warning: imagecreatefromjpeg() [<a href='function.imagecreatefromjpeg'>function.imagecreatefromjpeg</a>]: gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file
in /home/srihouse/public_html/myshopp.net/system/library/image.php on line 34
2011-06-26 17:30:47 - PHP Warning: imagecreatefromjpeg() [<a href='function.imagecreatefromjpeg'>function.imagecreatefromjpeg</a>]: '/home/srihouse/public_html/myshopp.net/image/data/z/file_78_17.jpg' is not a valid JPEG file in /home/srihouse/public_html/myshopp.net/system/library/image.php on line 34
2011-06-26 17:30:47 - PHP Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/srihouse/public_html/myshopp.net/system/library/image.php on line 87
2011-06-26 17:30:47 - PHP Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/srihouse/public_html/myshopp.net/system/library/image.php on line 88
2011-06-26 17:30:47 - PHP Warning: imagecreatefromjpeg() [<a href='function.imagecreatefromjpeg'>function.imagecreatefromjpeg</a>]: gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file
in /home/srihouse/public_html/myshopp.net/system/library/image.php on line 34
2011-06-26 17:30:47 - PHP Warning: imagecreatefromjpeg() [<a href='function.imagecreatefromjpeg'>function.imagecreatefromjpeg</a>]: '/home/srihouse/public_html/myshopp.net/image/data/z/file_84_1.jpg' is not a valid JPEG file in /home/srihouse/public_html/myshopp.net/system/library/image.php on line 34
2011-06-26 17:30:47 - PHP Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/srihouse/public_html/myshopp.net/system/library/image.php on line 87
2011-06-26 17:30:47 - PHP Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/srihouse/public_html/myshopp.net/system/library/image.php on line 88
Re: Image adding suddenly stopped working..
Posted: Mon Jun 27, 2011 2:38 pm
by nipun5perera
Xsecrets wrote:go into it in ie and you should see a red x you should be able to click on that to open the file manager.
Yes ,It's working in IE..But want to know why that No Image disappeared from there..
Re: Image adding suddenly stopped working..
Posted: Mon Jun 27, 2011 6:10 pm
by Daniel
permissions. most likely your host did something to your server and reset some permissions.
Re: Image adding suddenly stopped working..
Posted: Mon Jun 27, 2011 7:07 pm
by nipun5perera
Changed permission like below,
chmod 0755 or 0777 image/
chmod 0755 or 0777 image/cache/
chmod 0755 or 0777 image/data/
chmod 0755 or 0777 system/cache/
chmod 0755 or 0777 system/logs/
chmod 0755 or 0777 download/
chmod 0755 or 0777 config.php
chmod 0755 or 0777 admin/config.php
you mentioned that my host did something to my server,can you give me any clue regarding that ?
hey did you mean permission in php modules ?
Re: Image adding suddenly stopped working..
Posted: Mon Jun 27, 2011 8:29 pm
by nipun5perera
Daniel wrote:permissions. most likely your host did something to your server and reset some permissions.
Finally i'm happy to tell that i managed to fixed this,This is not a bug it's a fault of me..
When i'm uploading images "no_image.jpg" deleted mistakenly that's why i got that kind of bug.
Thanks everyone who helped me on this and sorry for bothering you all for nothing just a my fault..Thanks again
