• Resolved Arno Kools

    (@arno-kools)


    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 13

    So 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey @arno-kools,

    Thanks for letting us know!

    The notice is setup for users that try to run the installer but don’t have PHP installed or setup. I have a note into our development team to have a look into the issue and see if they can replicate it.

    @arno-kools Thank you for sharing. I never had problems with duplicator, and I have all websites at the same provider. Now I encountered the same problem. Removing the comment in the installer solved it for me too! I’m so glad I found your post! Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Comment at start of installer resulting in 500 error’ is closed to new replies.