Post by pipomenace » Sat Mar 02, 2013 4:26 am

Hi!

I have Version 1.5.4 installed.

Suddenly, when I was creating new products and uploading images, the image uploader stopped working.
I mean, it works, and gives a success message, but the image thumbnail appears to be broken. And If I choose the broken thumbnail, the image is broken in the Product page, and on the front-end too.

I cannot upload images anymore. It does that issue all the time.

I did not changed anything. That's why I'm kind of lost. I tried changing permissions, without luck. My website is hosted with iPage, and even their support tried to change permissions and to make it work, without success. They said :

"Since there is no error generated at http://www.ipage.com/controlpanel/cgiMa ... rorLog.bml to troubleshoot your issue further, I suggest you to contact Application vendor regarding the fix."

So I'm not really sure what to do. I have searched on this forum a lot, and on Google too. But all the things I tried didn't worked.

Any advice would be appreciated.

Thanks!

New member

Posts

Joined
Sat Mar 02, 2013 4:22 am

Post by uksitebuilder » Sat Mar 02, 2013 9:18 pm

most liekly a malformed image name (i.e. using spaces and or special characters in the image filename will most likely break the image manager).

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by pipomenace » Sat Mar 02, 2013 10:05 pm

Thanks for your reply!

All I use in filenames are dashes and underscores.("-" and "_")
These are web friendly symbols, aren't they?

Can it be anything else?
I am really worried since I was supposed to launch the website next week, but now it kinds of slow things down.

Thanks a lot

-----
EDIT :

Weird thing is I tried to upload another image from another directory in my Mac, and it worked.
It was a JPG with an underscore in the filename, and it uploaded right.
So since the files I was trying to upload are using dash (AX-12333.jpg), I took off the dash symbol, and tried to upload again.
Without success. What's going on here?
I even tried to re-open the JPG that wasn't working in Photoshop, save it back to JPG (test.jpg as the filename, just to make sure)...and not working too.

EDIT 2 :

I also tried to duplicate an image that was already correctly uploaded in the Image Manager, and upload it back, without success. That JPG file that uploaded right seems to be the only files that can be uploaded. I even tried to upload PNGs instead of JPGs, without success. This is getting really annoying. Thanks for your support.

New member

Posts

Joined
Sat Mar 02, 2013 4:22 am

Post by uksitebuilder » Sun Mar 03, 2013 2:32 am

What size are the files here kbs / mbs ?

It could possibly be a problem with your image manipulation module (GD Graphics library) on your server (out of date/corrupt/etc)

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by pipomenace » Sun Mar 03, 2013 2:37 am

The files are around 20 kb each.
Is there a place where I could try to upload the images using a FTP app that would add them to the image manager?

There's few folders in the main "image" folder, I'm not really sure where I have to go.

Thanks a lot!

New member

Posts

Joined
Sat Mar 02, 2013 4:22 am

Post by uksitebuilder » Sun Mar 03, 2013 3:54 am

image/data is the main place

Any folder within there will be read by the image manager including the data folder itself.

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by pipomenace » Sun Mar 03, 2013 11:30 pm

Ok, thanks.
I uploaded a file in the"image/data" folder, but when I went in the admin panel, created a new product, and went to the upload image section, the image I uploaded using a FTP app wasn't there, in the image manager.

Does that mean the images are uploaded somewhere else?

New member

Posts

Joined
Sat Mar 02, 2013 4:22 am

Post by uksitebuilder » Mon Mar 04, 2013 2:02 am

As long as you have uploaded to image/data folder or a folder created inside there, it should appear.

if not then it means a previous image that was uploaded there is causing it to crash.

Try clearing the contents of your image/cache folder

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by pipomenace » Mon Mar 04, 2013 2:49 am

I deleted the content of "image/cache" folder.
But now, all the images are gone. In the back-end and in the front-end section.

I re-uploaded all the files that was in that folder. (I made a copy of the files just before deleting them)

So it seems like all the images are linked in the cache. Is that normal?

Any ideas of what's going on?
Thanks a lot!

New member

Posts

Joined
Sat Mar 02, 2013 4:22 am

Post by uksitebuilder » Mon Mar 04, 2013 2:59 am

If cache is empty, the cached image should be re-created when it is requested.

Seems like you may have a problem with either your server, or the files used to create the cached images.

To check that GD is installed correctly, create a new file (call it gd.php) and add the following:

Code: Select all

<?php
/* Displays details of GD support on your server */
echo '<div style="margin: 10px;">';
echo '<p style="color: #444444; font-size: 130%;">GD is ';
if (function_exists("gd_info")) {
	echo '<span style="color: #00AA00; font-weight: bold;">supported</span> by your server!</p>';
	$gd = gd_info();
        	foreach ($gd as $k => $v) {
		echo '<div style="width: 340px; border-bottom: 1px solid #DDDDDD; padding: 2px;">';
		echo '<span style="float: left;width: 300px;">' . $k . '</span> ';
		if ($v)
			echo '<span style="color: #00AA00; font-weight: bold;">Yes</span>';
		else
			echo '<span style="color: #EE0000; font-weight: bold;">No</span>';
		echo '<div style="clear:both;"><!-- --></div></div>';
	}
} else {
	echo '<span style="color: #EE0000; font-weight: bold;">not supported</span> by your server!</p>';
}
echo '</div>';
?>
Upload it and run it.

--

Check your error logs and Apache errors logs to see if anything is mentioned there.

--

Reupload the OpenCart defautl files.

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by pipomenace » Mon Mar 04, 2013 3:05 am

I uploaded that file and here's what I get :
---------
GD is supported by your server!

GD Version : Yes
FreeType Support : Yes
FreeType Linkage : Yes
T1Lib Support : No
GIF Read Support : Yes
GIF Create Support : Yes
JPG Support : Yes
PNG Support : Yes
WBMP Support : Yes
XPM Support : No
XBM Support : Yes
JIS-mapped Japanese Font Support : No
-----------

Is there anything that could create my issue?

New member

Posts

Joined
Sat Mar 02, 2013 4:22 am

Post by uksitebuilder » Mon Mar 04, 2013 3:29 am

All the standard stuff seems to be fine.

What do your error logs say ?

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by pipomenace » Mon Mar 04, 2013 3:40 am

The most recent errors are :
2013-01-09 0:01:37 - PHP Warning: unlink(/hermes/bosweb/web288/b2885/ipg.mediodesignca/axesoirs/system/cache/cache.product.total.2.0.1.539b99a9c6ce62fc75b10ba832b2ce1b.1357642371) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in /hermes/bosweb/web288/b2885/ipg.mediodesignca/axesoirs/system/library/cache.php on line 18
2013-01-09 0:01:37 - PHP Warning: unlink(/hermes/bosweb/web288/b2885/ipg.mediodesignca/axesoirs/system/cache/cache.product.total.2.0.1.539b99a9c6ce62fc75b10ba832b2ce1b.1357642371) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in /hermes/bosweb/web288/b2885/ipg.mediodesignca/axesoirs/system/library/cache.php on line 18
2013-01-09 0:01:37 - PHP Warning: unlink(/hermes/bosweb/web288/b2885/ipg.mediodesignca/axesoirs/system/cache/cache.product.total.2.0.1.539b99a9c6ce62fc75b10ba832b2ce1b.1357693297) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in /hermes/bosweb/web288/b2885/ipg.mediodesignca/axesoirs/system/library/cache.php on line 45
2013-01-09 0:01:37 - PHP Warning: unlink(/hermes/bosweb/web288/b2885/ipg.mediodesignca/axesoirs/system/cache/cache.product.total.2.0.1.8c6cf9ecfdbb2edbafc0a89b72d92d8e.1357693297) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in /hermes/bosweb/web288/b2885/ipg.mediodesignca/axesoirs/system/library/cache.php on line 45
2013-01-09 0:01:37 - PHP Warning: unlink(/hermes/bosweb/web288/b2885/ipg.mediodesignca/axesoirs/system/cache/cache.product.total.2.0.1.af90388eaadac94fc4765a700c91248b.1357693297) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in /hermes/bosweb/web288/b2885/ipg.mediodesignca/axesoirs/system/library/cache.php on line 45
2013-01-09 0:01:37 - PHP Warning: unlink(/hermes/bosweb/web288/b2885/ipg.mediodesignca/axesoirs/system/cache/cache.language.1357639020) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in /hermes/bosweb/web288/b2885/ipg.mediodesignca/axesoirs/system/library/cache.php on line 18
2013-01-09 0:01:37 - PHP Warning: unlink(/hermes/bosweb/web288/b2885/ipg.mediodesignca/axesoirs/system/cache/cache.language.1357639020) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in /hermes/bosweb/web288/b2885/ipg.mediodesignca/axesoirs/system/library/cache.php on line 18
2013-01-09 0:01:37 - PHP Warning: file_get_contents(/hermes/bosweb/web288/b2885/ipg.mediodesignca/axesoirs/system/cache/cache.currency.1357639020) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in /hermes/bosweb/web288/b2885/ipg.mediodesignca/axesoirs/system/library/cache.php on line 9
2013-01-09 0:01:37 - PHP Warning: file_get_contents(/hermes/bosweb/web288/b2885/ipg.mediodesignca/axesoirs/system/cache/cache.currency.1357639020) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in /hermes/bosweb/web288/b2885/ipg.mediodesignca/axesoirs/system/library/cache.php on line 9

New member

Posts

Joined
Sat Mar 02, 2013 4:22 am

Post by uksitebuilder » Mon Mar 04, 2013 3:42 am

Nothing really untowards in there or related to images.

What about Apache Log ?

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by pipomenace » Mon Mar 04, 2013 3:48 am

Where can I get an Apache log?
I have few logs in my hosting control panel, but no mention of Apache.
Do I have to search for it in the OpenCart Admin panel or my hosting control panel?

New member

Posts

Joined
Sat Mar 02, 2013 4:22 am

Post by uksitebuilder » Mon Mar 04, 2013 3:54 am

You may need to ask your host for it.

Before doing that, I suggest you check the permission of the image/cache folder in your ftp client or file manager.

It could simply be a case of that directory does not have write permissions.

failing that, try re-uploading the default open cart file for system/library/image.php file

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by pipomenace » Mon Mar 04, 2013 4:01 am

- Permission of the image/cache folder : 777
- I reuploaded the default opencart system/library/image.php file.

Still no success.
I am currently chatting with an agent of my hosting service provider to get an Apache log.

Any other ideas?

----
EDIT :

Here's some errors I found in the apache log :

20130303T130453: www.axesoirs.com/index.php
PHP: Error parsing /opt/users/ipg/m/e/ipg.mediodesignca/php52/php.ini on line 1188

20130303T130508: www.axesoirs.com/index.php
PHP: Error parsing /opt/users/ipg/m/e/ipg.mediodesignca/php52/php.ini on line 1188

20130303T132103: www.axesoirs.com/index.php
PHP: Error parsing /opt/users/ipg/m/e/ipg.mediodesignca/php52/php.ini on line 1188

20130303T132108: www.axesoirs.com/index.php
PHP: Error parsing /opt/users/ipg/m/e/ipg.mediodesignca/php52/php.ini on line 1188

20130303T134117: axesoirs.com/index.php
PHP: Error parsing /opt/users/ipg/m/e/ipg.mediodesignca/php52/php.ini on line 1188

20130303T134133: axesoirs.com/index.php
PHP: Error parsing /opt/users/ipg/m/e/ipg.mediodesignca/php52/php.ini on line 1188

20130303T134137: axesoirs.com/index.php
PHP: Error parsing /opt/users/ipg/m/e/ipg.mediodesignca/php52/php.ini on line 1188

20130303T134143: axesoirs.com/index.php
PHP: Error parsing /opt/users/ipg/m/e/ipg.mediodesignca/php52/php.ini on line 1188
-----

It seems to be the same error over and over again.

New member

Posts

Joined
Sat Mar 02, 2013 4:22 am

Post by uksitebuilder » Mon Mar 04, 2013 4:19 am

That error is one for your hosts to sort out as it is probably their main php.ini which will be inaccessible by you.

The only other thing I can think of is an image you have in your data folder or subfolder of data folder is the cause.

There's no real easy way to know which image may be the culprit other than matching each image in the image data folder or subfolder against it's same image in the image cache folder until you come across one that doesn't have a cache image

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by pipomenace » Mon Mar 04, 2013 4:27 am

So basicly, I have to check using my FTP app what image file is in the image data folder, but not in the image data cache folder? Do I understand correctly?

Thanks!

(by the way, I highly appreciate what you're doing)

New member

Posts

Joined
Sat Mar 02, 2013 4:22 am

Post by uksitebuilder » Mon Mar 04, 2013 4:36 am

That's correct.

If there is no cache file ten it stands to reason that the main file is probably corrupt

remove that file (there may be more than one)

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom
Who is online

Users browsing this forum: No registered users and 13 guests