This is an informational post...hopefully it will save someone else the time I spent on this.
After upgrading my local Windows 7 test server to Xampp 1.80: php 5.4.4 I started getting debug logs being created from the admin.
[27-Sep-2012 16:10:25 UTC] PHP Warning: Creating default object from empty value in D:\blah blah\public_html\tienda\MY_ADMIN\categories.php on line 1018
Which is:
It happens in Admin->Catalog->Categories/Products when doing a search that yields a result that includes categories (but for no result/a result with products only,..no debug log is created).PHP Code:if (empty($pInfo->products_id)) {
line 1018 $pInfo->products_id= $pID;
I have a copy of my shop (upgraded to 1.51) and a vanilla 1.51 install on the same server. The vanilla install did not cause the debug log.
As it was “obviously” a problem with my shop I spent a lot of time investigating that avenue...nothing.
The error reporting seemed to be the same in the shop files and ZC151 files, and php.ini between the old Xampp 1.73 php 5.3.1. and the new 1.80 php 5.4.4.
Eventually I found that in php 5.4 the buggers have included E_STRICT error reporting in E_ALL so the warnings were from E_STRICT being implemented: obvious when you work with php all the time..which I don’t.
Further to this adding the extra line cures the warning.
So....why does the vanilla ZC151 not produce the error? Obviously there's an E_ALL lurking somewhere in my files but I’ve looked at all the instances of E_ALL in my shop and the vanilla, and commented out any extras in my mods...still haven’t found why there is a difference in the error reporting...so this post does not go in the bug reports!PHP Code:if (empty($pInfo->products_id)) {
$pInfo = new stdClass();
$pInfo->products_id= $pID;



