Page 1 of 1

Blank page at gbook.php

Posted: Sun Sep 13, 2009 3:20 am
by exf
Script URL: http://darkhalo.realitymeetsdream.com/gstb/gbook.php
Version of script: 17
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: white page guestbook problem gbook

Write your message below:

I get a blank page when I go to my guest book, not even anything in the "view page source" view in my web browser. I've gone over the "settings.php" file four times. Finally I left it as is except for changing the obvious stuff at top (url to guest book, website url) and still get a white page.

apptmp
banned_ip txt
entries txt
-permissions set according to readme. I set the txts to 777 just to try that, didn't work.

I tried setting IPv6 to "1" as well. That didn't fix it either.

I also tried removing "ini_set('display_errors', 0);
ini_set('log_errors', 1);" from the settings page because I saw that suggested in similar "blank page" problem threads on this forum.

Posted: Sun Sep 13, 2009 11:30 am
by Henrie
Did you also try the follow up in that thread?
For example viewtopic.php?p=11370#11370
Klemen wrote:Not showing any errors, hmmm. Can you try adding these 3 lanes to the bottom of the settings.php file (just above the last line: ?> ) and see if you get any errors then:

Code: Select all

ini_set('display_errors', 1);
error_reporting(E_ALL);
ini_set('log_errors', 1);
Or if you have access to any error logs from your hosting control panel have a look there if there are any references to the gbook.php file.
Greetings,
Henrie

Posted: Sun Sep 13, 2009 10:18 pm
by exf
Henrie wrote:Did you also try the follow up in that thread?
For example viewtopic.php?p=11370#11370
Klemen wrote:Not showing any errors, hmmm. Can you try adding these 3 lanes to the bottom of the settings.php file (just above the last line: ?> ) and see if you get any errors then:

Code: Select all

ini_set('display_errors', 1);
error_reporting(E_ALL);
ini_set('log_errors', 1);
Or if you have access to any error logs from your hosting control panel have a look there if there are any references to the gbook.php file.
Greetings,
Henrie
Thank you for the hint! It works now.

For anyone else who may stumble upon this -

Editing the settings.php with those 3 lines didn't do it. I also tried putting "php_flag display_errors true" in my htaccess file, didn't work.

"php_flag display_errors on" did however show a t_string error (had a ' in the spam question). Found this to be helpful for figuring that out - http://www.parse-error-unexpected-t-string.com