Comment at start of installer resulting in 500 error
-
MAMP plugin v1.5
Ok, this is something strange I’ve never encountered.
The installer just wouldn’t start.
It gave a blank screen.I tried creating a new package, creating new hosts, changing php versions…. nothing.
Checking the Apache log I encountered a strange error:
PHP Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in …./installer.php on line 13So I check installer.php and discover it starts with a notice before the namespace:
<?php /* ------------------------------ NOTICE ---------------------------------- If you're seeing this text when browsing to the installer, it means your web server is not set up properly. Please contact your host and ask them to enable "PHP" processing on your account. ----------------------------- NOTICE --------------------------------- */ ?>
Removing it made the installer work.
But why is this comment here in the first place???Apparently the old server was not set up properly, but the new was.
Took me quite a while to figure this out
- The topic ‘Comment at start of installer resulting in 500 error’ is closed to new replies.