Page 1 of 1

Array Error

Posted: Mon Jul 08, 2019 6:01 pm
by GraemeH
Hi,

Can anyone help me fix this error I am getting. This seems to be generating in the log each time someone views a different product, with the details shown relating to the viewed product. Any help in a simplified form would be most appreciated.

Using 1.5.4.1

Code: Select all

2019-07-08 9:56:19 - array(1) {
  [82542]=>
  array(71) {
    ["product_id"]=>
    string(5) "82542"
    ["shipping_days"]=>
    string(1) "3"
    ["call_to_ask"]=>
    string(1) "0"
    ["gp_parent_id"]=>
    string(1) "0"
    ["tag_title"]=>
    string(0) ""
    ["stock_status_id"]=>
    string(1) "6"
    ["collection_only"]=>
    string(1) "0"
    ["name"]=>
    string(77) "6 x 1 Csk Slotted Self Tapping Screws (Pack of 1,000) [DIN 7982 Grade 316 A4]"
    ["short_description"]=>
    string(151) "<ul><li>Slotted csk self tapping screws.</li><li>Pozi pan head.</li><li>Stainless steel grade 304 (A2) for increased resistance to corrosion.</li></ul>"
    ["description"]=>
    string(565) "<ul><li>Slotted csk self tapping screws.</li><li>Pozi pan head.</li><li>Stainless steel grade 304 (A2) for increased resistance to corrosion.</li></ul><p>Stainless steel does not readily corrode, rust or stain with water as ordinary steel does. However, it is not fully stain-proof in low-oxygen, high salinity, or poor air-circulation environments. There are different grades and surface finishes of stainless steel to suit the environment the alloy must endure. Stainless steel is used where both the properties or steel and corrosion resistance are required.</p>"
    ["meta_description"]=>
    string(0) ""
    ["meta_keyword"]=>
    string(103) "6 x 1 csk slotted self tapping screws pack of 1, 000 din 7982 grade 316 a4, hx6g-100csst-a4, hx fixings"
    ["tag"]=>
    string(100) "6 x 1 csk slotted self tapping screws pack of 1,000 din 7982 grade 316 a4,hx6g-100csst-a4,hx fixings"
    ["model"]=>
    string(15) "HX6G-100CSST-A4"
    ["sku"]=>
    string(8) "HX327020"
    ["upc"]=>
    string(0) ""
    ["ean"]=>
    string(0) ""
    ["jan"]=>
    string(0) ""
    ["isbn"]=>
    string(0) ""
    ["mpn"]=>
    string(15) "HX6G-100CSST-A4"
    ["location"]=>
    string(12) "Owlett Jaton"
    ["quantity"]=>
    string(1) "0"
    ["stock_status"]=>
    string(6) "3 Days"
    ["image"]=>
    string(51) "data/Fixings/Screws/slotted-csk-ab-self-tapping.jpg"
    ["manufacturer_id"]=>
    string(1) "3"
    ["manufacturer"]=>
    string(10) "HX Fixings"
    ["price"]=>
    string(5) "21.30"
    ["special"]=>
    NULL
    ["reward"]=>
    NULL
    ["points"]=>
    string(1) "0"
    ["tax_class_id"]=>
    string(1) "1"
    ["date_available"]=>
    string(10) "2000-01-01"
    ["weight"]=>
    string(10) "0.00000000"
    ["weight_class_id"]=>
    string(1) "1"
    ["length"]=>
    string(10) "0.00000000"
    ["width"]=>
    string(10) "0.00000000"
    ["height"]=>
    string(10) "0.00000000"
    ["length_class_id"]=>
    string(1) "1"
    ["subtract"]=>
    string(1) "1"
    ["rating"]=>
    float(0)
    ["reviews"]=>
    NULL
    ["minimum"]=>
    string(1) "1"
    ["sort_order"]=>
    string(1) "1"
    ["status"]=>
    string(1) "1"
    ["gpf_status"]=>
    string(1) "1"
    ["gtin"]=>
    string(0) ""
    ["google_product_category"]=>
    string(61) "Hardware > Hardware Accessories > Hardware Fasteners > Screws"
    ["brand"]=>
    string(17) "Fixings Megastore"
    ["gender"]=>
    string(14) "Not Applicable"
    ["agegroup"]=>
    string(14) "Not Applicable"
    ["colour"]=>
    string(0) ""
    ["size"]=>
    string(0) ""
    ["condition"]=>
    string(3) "New"
    ["oos_status"]=>
    string(12) "Out of Stock"
    ["gpf_size_system"]=>
    string(14) "Not Applicable"
    ["gpf_size_type"]=>
    string(14) "Not Applicable"
    ["gpf_availability_date"]=>
    string(0) ""
    ["gpf_availability_time"]=>
    string(0) ""
    ["gpf_is_bundle"]=>
    string(5) "FALSE"
    ["unit_pricing_measure"]=>
    string(0) ""
    ["unit_pricing_base_measure"]=>
    string(0) ""
    ["energy_efficiency_class"]=>
    string(0) ""
    ["identifier_exists"]=>
    string(4) "TRUE"
    ["promotion_id"]=>
    string(0) ""
    ["adwords_grouping"]=>
    string(0) ""
    ["adwords_labels"]=>
    string(0) ""
    ["adwords_redirect"]=>
    string(1) "0"
    ["custom_labels"]=>
    string(0) ""
    ["date_added"]=>
    string(19) "2000-01-01 00:00:00"
    ["date_modified"]=>
    string(19) "2000-01-01 00:00:00"
    ["viewed"]=>
    string(3) "443"
  }
}

Re: Array Error

Posted: Mon Jul 08, 2019 10:06 pm
by Johnathan
Someone probably accidentally left some logging code in the controller file, which outputs the data for the product(s) on the page. The edit will probably be in this file:

/catalog/controller/product/product.php

It might also be in the template file, if it's not in there:

/catalog/view/theme/YOURTHEME/template/product/product.tpl

You can compare those files to the original installation to see if any code has been added, or search for $this->log->write in the files. If you have vQmod installed, you should also check for vQmods that affect those two files. If you don't see any extra code in those files, it could be a vQmod file that is causing this.

Re: Array Error

Posted: Tue Jul 09, 2019 6:38 pm
by GraemeH
Makes sense,

Thanks for the help. At least I know where I'm going now.