Post by radi8tor » Wed Nov 21, 2018 3:48 pm

Hi,

Is there a way to add more detail to system log? I would like to see the product ID or any other parameters which could identify the product when a specific PHP warning messages are displayed in log:

Code: Select all

2018-11-20 8:41:11 - PHP Notice:  Undefined index: thumb in /home/www/clients/client2520/web5842/storage/modification/catalog/controller/product/product.php on line 1077
2018-11-20 8:41:11 - PHP Notice:  Undefined index: manufacturer in /home/www/clients/client2520/web5842/storage/modification/catalog/controller/product/product.php on line 1078
2018-11-20 8:41:11 - PHP Notice:  Undefined index: priceISO in /home/www/clients/client2520/web5842/storage/modification/catalog/controller/product/product.php on line 1103
2018-11-20 8:41:11 - PHP Notice:  Undefined index: stockStatus in /home/www/clients/client2520/web5842/storage/modification/catalog/controller/product/product.php on line 1105
2018-11-20 8:41:27 - PHP Notice:  Undefined index: thumb in /home/www/clients/client2520/web5842/storage/modification/catalog/controller/product/product.php on line 1077
2018-11-20 8:41:27 - PHP Notice:  Undefined index: manufacturer in /home/www/clients/client2520/web5842/storage/modification/catalog/controller/product/product.php on line 1078
2018-11-20 8:41:27 - PHP Notice:  Undefined index: priceISO in /home/www/clients/client2520/web5842/storage/modification/catalog/controller/product/product.php on line 1103
2018-11-20 8:41:27 - PHP Notice:  Undefined index: stockStatus in /home/www/clients/client2520/web5842/storage/modification/catalog/controller/product/product.php on line 1105
Based on the timestamp I guess that this is regarding a product page view by Googlebot and I would like to check this error in person.

Thanks in advance!

OC version: 3.0.2.0

New member

Posts

Joined
Thu Feb 01, 2018 6:21 pm

Post by paulfeakins » Wed Nov 21, 2018 6:09 pm

You could check your HTTP access logs at around the same time but you should be able to find the error from the file and line number easily enough.

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Expert Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by radi8tor » Wed Nov 21, 2018 9:37 pm

The warnings are related to the SEO Rich Snippets tags:

1077 and 1078 line:

Code: Select all

$result .= '"image": "'.$data['thumb'].'",'."\r\n";
$result .= '"brand": "'.$data['manufacturer'].'",'."\r\n";
1103 to 1105 line:

Code: Select all

"price": "'. $data['priceISO'] .'",
"priceCurrency": "'. $cur .'",
"availability": "'. $data['stockStatus'] .'",
Can you guide me what the error is?

New member

Posts

Joined
Thu Feb 01, 2018 6:21 pm

Post by paulfeakins » Thu Nov 22, 2018 6:02 pm

radi8tor wrote:
Wed Nov 21, 2018 9:37 pm
The warnings are related to the SEO Rich Snippets tags:
Contact the extension developer and they should fix.

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Expert Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom
Who is online

Users browsing this forum: No registered users and 8 guests