PHP 5.6.31 settings.dat.php giving error 'loadINI: syntax error, unexpected '(' in /webroot/cmsroot/data/settings.dat.php on line 2 '

2 posts by 1 authors in: Forums > CMS Builder
Last Post: August 11, 2017   (RSS)

OK. For anyone who gets this. It is because the loadstruc needs to be on one line:

RIGHT WAY

<?php /* This is a PHP data file */ if (!@$LOADSTRUCT) { die("This is not a program file."); }

WRONG WAY

<?php /* This is a PHP data file */
if (!@$LOADSTRUCT) {
    die("This is not a program file.");
}

If you have this issue, just put the if structure all on one line. Somehow uploading it to the host moved it to multiple lines and probably added a weird character in it.

Thanks to Damon for not laughing at me when we found this. Great support as always!!!!