#374 Blank frontpage after install

PHP_error
closed
Reini Urban
5
2012-10-11
2004-09-09
Owen Smith
No

Tested on FreeBSD & Linux,Installing under document root
works fine but installing under /home/user/public_html/.
fails because /home/ is a symlink to /xxxx/home/

bug can be fixed if in index.php

// If any page is empty, comment the if ... line out,
// to force include "lib/main.php".
if (SCRIPT_FILENAME == FILE)
include(dirname(FILE)."/lib/main.php");

is changed to

// If any page is empty, comment the if ... line out,
// to force include "lib/main.php".
if (realpath(SCRIPT_FILENAME) == FILE)
include(dirname(FILE)."/lib/main.php");

Discussion