Page 1 of 1

Error - PHP Notice: Use of undefined constant SERVERPATH

PostPosted: 12. July 2018 17:39
by tplowe
I'm trying to run the setup of ZenPhoto on Xampp, and I get the following error. Had it running just fine on a previous version of Xampp, but having issues on new install. Xampp itself reports all systems go.

[12-Jul-2018 18:25:21 Europe/Berlin] PHP Notice: Use of undefined constant SERVERPATH - assumed 'SERVERPATH' in C:\xampp\htdocs\gallery\zp-core\reconfigure.php on line 72

[12-Jul-2018 18:25:21 Europe/Berlin] PHP Warning: file_get_contents(SERVERPATH/zp-core/Zenphoto.package): failed to open stream: No such file or directory in C:\xampp\htdocs\gallery\zp-core\reconfigure.php on line 72

[12-Jul-2018 18:25:21 Europe/Berlin] PHP Notice: Use of undefined constant SERVERPATH - assumed 'SERVERPATH' in C:\xampp\htdocs\gallery\zp-core\reconfigure.php on line 80

[12-Jul-2018 18:25:21 Europe/Berlin] PHP Notice: Use of undefined constant SERVERPATH - assumed 'SERVERPATH' in C:\xampp\htdocs\gallery\zp-core\reconfigure.php on line 218

[12-Jul-2018 18:25:21 Europe/Berlin] PHP Notice: Use of undefined constant PROTOCOL - assumed 'PROTOCOL' in C:\xampp\htdocs\gallery\zp-core\reconfigure.php on line 36

Any advice would be greatly appreciated.

Thanks.

Re: Error - PHP Notice: Use of undefined constant SERVERPAT

PostPosted: 12. July 2018 18:39
by Nobbie
Its not an error, a "notice" only. No error, no warning, a hint. Simply ignore it.

If you dont like to see notices, you may either switch off error reporting in php.ini or change the error level to another level.

Re: Error - PHP Notice: Use of undefined constant SERVERPAT

PostPosted: 12. July 2018 18:42
by tplowe
Thanks. It was an error in the ZenPhoto code. Solved with new build.