Error - PHP Notice: Use of undefined constant SERVERPATH

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Error - PHP Notice: Use of undefined constant SERVERPATH

Postby tplowe » 12. July 2018 17:39

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.
tplowe
 
Posts: 5
Joined: 09. April 2011 15:52

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

Postby Nobbie » 12. July 2018 18:39

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.
Nobbie
 
Posts: 10497
Joined: 09. March 2008 13:04

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

Postby tplowe » 12. July 2018 18:42

Thanks. It was an error in the ZenPhoto code. Solved with new build.
tplowe
 
Posts: 5
Joined: 09. April 2011 15:52


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 56 guests