Page 2 of 2

Re: Google sitemap

Posted: Fri Aug 02, 2019 10:16 pm
by letxobnav
well, what is the url of your sitemap then?

Re: Google sitemap

Posted: Fri Aug 02, 2019 10:21 pm
by leeburgess
letxobnav wrote:
Fri Aug 02, 2019 10:16 pm
well, what is the url of your sitemap then?
REMOVED

Re: Google sitemap

Posted: Fri Aug 02, 2019 10:37 pm
by letxobnav
well, here is your error, view source on that thing:

<b>Notice</b>: getimagesize(): Read error! in <b>/home/sexualsecrets/public_html/catalog/model/tool/image.php</b> on line <b>14</b><b>Notice</b>: getimagesize(): Read error! in <b>/home/sexualsecrets/public_html/catalog/model/tool/image.php</b> on line <b>14</b>

Re: Google sitemap

Posted: Fri Aug 02, 2019 10:42 pm
by leeburgess
letxobnav wrote:
Fri Aug 02, 2019 10:37 pm
well, here is your error, view source on that thing:

<b>Notice</b>: getimagesize(): Read error! in <b>/home/sexualsecrets/public_html/catalog/model/tool/image.php</b> on line <b>14</b><b>Notice</b>: getimagesize(): Read error! in <b>/home/sexualsecrets/public_html/catalog/model/tool/image.php</b> on line <b>14</b>
So a corrupt image still? How can I find which one is having the issue?

Re: Google sitemap

Posted: Fri Aug 02, 2019 10:50 pm
by letxobnav
I thought that was explained to you before but you said you did not have any.

Re: Google sitemap

Posted: Fri Aug 02, 2019 11:15 pm
by letxobnav
in catalog/model/tool/image.php

after:

Code: Select all

$extension = pathinfo($filename, PATHINFO_EXTENSION);
add:

Code: Select all

			$info = getimagesize(DIR_IMAGE . $filename);
			// image corrupt check
			if (!$info) $this->log->write('cannot obtain image info for '.DIR_IMAGE . $filename);
			if ($extension == 'gif') {
				$result = imagecreatefromgif(DIR_IMAGE . $filename);
			} elseif ($extension == 'png') {
				$result = imagecreatefrompng(DIR_IMAGE . $filename);
			} elseif ($extension == 'jpg') {
				$result = imagecreatefromjpeg(DIR_IMAGE . $filename);
			}
			// image corrupt check
			if (!$result) $this->log->write('cannot create image '.DIR_IMAGE . $filename);
only until you found the corrupt image.

Re: Google sitemap

Posted: Fri Aug 02, 2019 11:41 pm
by straightlight
leeburgess wrote:
Fri Aug 02, 2019 9:46 pm
straightlight wrote:
Fri Aug 02, 2019 6:58 pm
leeburgess wrote:
Thu Aug 01, 2019 8:43 pm
Sadly cannot get this to work
No details provided. Forum rules.
I have no corrupt images now but Google sitemap says

This page contains the following errors:
error on line 1 at column 14: Extra content at the end of the document
Below is a rendering of the page up to the first error.
OC version? More information is needed. Please read the forum rules.