Page 1 of 1

grtimagesize (): read error

Posted: Fri Jun 07, 2019 11:20 pm
by s3eed
I have error in my site
notice : grtimagesize (): read error in public_html/catalog/model/tool/image.php on line 14
how can I solve it ?


3.0.3.1
thanks

Re: grtimagesize (): read error

Posted: Sat Jun 08, 2019 3:05 am
by xxvirusxx
There is no grtimagesize in catalog/model/tool/image.php on line 14

Sure is not getimagesize?

Re: grtimagesize (): read error

Posted: Sat Jun 08, 2019 5:00 am
by s3eed
Yes sure

Re: grtimagesize (): read error

Posted: Sat Jun 08, 2019 5:12 am
by s3eed
list($width_orig, $height_orig, $image_type) = getimagesize(DIR_IMAGE . $image_old);

Re: grtimagesize (): read error

Posted: Sat Jun 08, 2019 6:28 am
by letxobnav
if it is only one you probably have a corrupt image file.

Re: grtimagesize (): read error

Posted: Sun Jun 09, 2019 2:18 am
by s3eed
letxobnav wrote:
Sat Jun 08, 2019 6:28 am
if it is only one you probably have a corrupt image file.
How can solve this problem ?

Re: grtimagesize (): read error

Posted: Sun Jun 09, 2019 10:25 am
by letxobnav
does it only happen once or many many many times?

Re: grtimagesize (): read error

Posted: Sun Jun 09, 2019 6:20 pm
by s3eed
that is once time

Re: grtimagesize (): read error

Posted: Sun Jun 09, 2019 6:46 pm
by letxobnav
you could try in catalog/model/tool/image.php

replace:

Code: Select all

	list($width_orig, $height_orig, $image_type) = getimagesize(DIR_IMAGE . $image_old);
with:

Code: Select all

	// determine original dimensions
	try { 
		list($width_orig, $height_orig, $image_type) = getimagesize(DIR_IMAGE . $image_old);
	} catch (Exception $e) {
		$this->log->write('ERROR with image: '.$image_old);
	}

then hopefully it will record an error message in your oc log with the filename of the image when it tried to read that image info.

Re: grtimagesize (): read error

Posted: Sun Jun 09, 2019 7:54 pm
by s3eed
no thing change and main logo can,t display in store

Re: grtimagesize (): read error

Posted: Sun Jun 09, 2019 8:04 pm
by letxobnav
your main logo has nothing to do with notice : getimagesize (): read error in public_html/catalog/model/tool/image.php

did you get the notice again?

Re: grtimagesize (): read error

Posted: Sun Jun 09, 2019 8:08 pm
by s3eed
yes same problem

Re: grtimagesize (): read error

Posted: Sun Jun 09, 2019 8:21 pm
by letxobnav
nothing in your error log?

Re: grtimagesize (): read error

Posted: Mon Jun 10, 2019 3:01 am
by s3eed
same error line 14

Re: grtimagesize (): read error

Posted: Mon Jun 10, 2019 8:00 am
by letxobnav
ok, then show me your link and oc error log.

Re: grtimagesize (): read error

Posted: Mon Jun 10, 2019 6:02 pm
by s3eed
Logo now working

But error read line 14 getimagesize ()
I don't know what problem and how can resolve it
Any one can help me for this issue ?
Thanks

Re: grtimagesize (): read error

Posted: Mon Jun 10, 2019 7:27 pm
by paulfeakins
Try a different image and also make sure its permission is 644.