Environment: Xampp 182 (Apache 2.4.3 (Win32), PHP 5.4.7) on a windows XP pc
Shop is accessed by this url www.motorvista.local which is redirected to 127.0.0.1 in the hosts file and a virtual host configuration for the apache server that points to the fileset in D:\My Documents etc…
To cut a long story short, I’ve been trying to solve a niggling problem with Apsona that boils down to the following:
If php.ini has
it loads ok.PHP Code:error_reporting = E_ALL & ~E_NOTICE
Whereas if
it does not load and this error gets producedPHP Code:error_reporting = E_ALL
line 32 is this:[03-Apr-2013 18:13:20 UTC] PHP Notice: Undefined index: path in D:\My Documents\blah_blahadmin\includes\configure.php on line 32
[03-Apr-2013 18:13:20 UTC] PHP Notice: Undefined index: path in D:\My Documents\ blah_blahadmin \includes\configure.php on line 32
And the urls arePHP Code:$t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path'];
It is true that in all the PHP versions I have tested ['path'] is never set in this scenario.PHP Code:define('HTTP_SERVER', 'http://www.motorvista.local');
define('HTTPS_SERVER', 'https://www.motorvista.local');
Now in normal ZC use this does not cause any error messages but if as a test I put the same line in the admin header, it causes the same error messages.
Obviously the “problem” can be fixed easily by testing for the array element before assigning it, but my questions are:
1) Why does normal ZC use not produce the error message? Is it just suppressed or there is some mechanism I don’t understand
2) Is this something that should be fixed in configure.php with a test or is there something Apsona needs to include in their code to deal with this “correctly”?
3) Why does logging/not-logging the error message break/allow the page?
Thanks
Steve



Reply With Quote

