gbook won't load. stuck on a white page.

Dr. GBooky is here to help you with your guestbook problems ...
syrehn
Posts: 7
Joined: Tue Aug 18, 2009 6:11 pm

gbook won't load. stuck on a white page.

Post by syrehn »

Script URL: www.designfoxmediaworks.com/testimonials/gbook.php
Version of script: v 1.6
Hosting company: powweb
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: gbook whitepage(s)

Write your message below:

I followed the instructions for the configuration by editing the settings.php yet when i go to my page all it loads is a white page.

i'm not sure y this would be.

i have gbook.php in a folder called testimonials.

is there any other files that i need to be editing to be able to view this? i'm not sure what exactly is going on that it won't load.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

1. upload the phpinfo.php file to your server and post a link to it here

2. delete these lines from the settings file andsee if you get any error messages when you open gbook:

Code: Select all

ini_set('display_errors', 0); 
ini_set('log_errors', 1);
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
syrehn
Posts: 7
Joined: Tue Aug 18, 2009 6:11 pm

Post by syrehn »

oops sorry i apologize i missed putting the link to that file in my first post.
phpinfo:

http://www.designfoxmediaworks.com/phpinfo.php

and i deleted the 2 lines and it does not appear to generate any errors. still a blank page.
Klemen wrote:1. upload the phpinfo.php file to your server and post a link to it here

2. delete these lines from the settings file andsee if you get any error messages when you open gbook:

Code: Select all

ini_set('display_errors', 0); 
ini_set('log_errors', 1);
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
DC
Posts: 138
Joined: Sun Dec 09, 2007 9:28 am

Post by DC »

Some servers will not allow us to turn on error reporting via ini_set

If the server still shows no errors using the other methods mentioned
you might try turning the error flag on at server level via htaccess

by adding this line to your htaccess file.


php_flag display_errors true

this may or may not work depending on server config.
if the server supports this method we should then see some errors but first try Klems method use this method as a last resort.

We need to see some type of errors to help us trouble-shoot the problem.

DC
To Code Or Not To Code That Is The Question?

Was my post of any help to you? if so please do [url=http://www.clickcraft.net/slice_donations.php][b]Buy Me A Slice[/b][/url] ...
syrehn
Posts: 7
Joined: Tue Aug 18, 2009 6:11 pm

Post by syrehn »

sorry for the delayed response i couldn't figure out how to view the log and i had another error on another script show up so i contacted my host and they took some time to tell me.

they said gbook.php is generating the following errors:
PHP Warning: main(testimonials/language.inc.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /hermes/web05b/b2027/pow.designfox/htdocs/testimonials/gbook.php on line 36
PHP Warning: main(testimonials/language.inc.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /hermes/web05b/b2027/pow.designfox/htdocs/testimonials/gbook.php on line 36
PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required 'testimonials/language.inc.php' (include_path='.:/usr/local/lib/php-4.4.7/lib/php') in /hermes/web05b/b2027/pow.designfox/htdocs/testimonials/gbook.php on line 36
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

it seems the file language.inc.php is not present in the folder testimonials (where also your gbook.php file is located).

Please check if it is present. If not, upload it from your downloaded zip file to the testimonials folder on your server.

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
syrehn
Posts: 7
Joined: Tue Aug 18, 2009 6:11 pm

Post by syrehn »

the file is present in that folder. : / i will try to reupload it in the morning however. all the errors do seem to relate directly to that file.
Henrie wrote:it seems the file language.inc.php is not present in the folder testimonials (where also your gbook.php file is located).

Please check if it is present. If not, upload it from your downloaded zip file to the testimonials folder on your server.

Greetings,
Henrie
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello syrehn,

In your first post you mention
syrehn wrote:Version of script: v 1.6
3 days ago Klemen released version 1.7, see here viewtopic.php?t=2700

So if you are just now setting up your GBook i would advise you to start with version 1.7 so you are using the latest version with the most up-to-date spam protection and most features.

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
syrehn
Posts: 7
Joined: Tue Aug 18, 2009 6:11 pm

Post by syrehn »

i will use the new script and start from scratch. hopefully it will work then. if not i will post.

while i have this topic open, is there anyway to have my "sign guestbook" on it's own page?
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

I am not sure what you mean, but the sign guestbook page is a on its own page.
You can reach it by linking to gbook.php?a=sign inside your gbook folder.

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
syrehn
Posts: 7
Joined: Tue Aug 18, 2009 6:11 pm

Post by syrehn »

sorry, i should have been more descriptive with that, (btw i'll be starting with the latest version from scratch so hopefully the blank page issue will be gone)

but, what i wanted to do was have the "sign guestbook" or sign form.php file in a different directory. (seems this might be possible since the latest version is split into sections for making templates easier) such as, i have a friends directory, and i wanted to build my template for that page and incorporate that php code for sign form.php to that page, so that when i put my password lock script on that page only those ppl will be able to access the signform.php file in the template i built. does that make a bit more sense?

ideally i would have the structure like this:

testimonials/gbook.php

friends/test_friend.php, and friends/test_friend2.php (with the signform.php code in that page as i will be password protecting those pages so that only those ppl can access the sign guestbook function)
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

I think it is possible to put it in it's own password protected folder.
It is however not advised. You would have to manually change many relative paths as they would not be pointing to the right files in the templates folder.
Changes like this will prevent future updates from working out of the box and i will at least not help you with making these changes (sorry).

In my opinion, if you would like only your friends to add comments, it would be better to have a password on the sign page itself that you only give to your friends. So if someone does not know the password, they can not post a comment.

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
syrehn
Posts: 7
Joined: Tue Aug 18, 2009 6:11 pm

Post by syrehn »

thank you for the quick response ^_^

no worries, i just wanted to make sure it wouldn't completely break the script i think i could manage the paths part and just document the changes well in the event of having to update.

if worse comes to worse i will try your suggestion and just password protect the page itself.

first things first is to reinstall the newest version and start from scratch. here's hoping there is no blank pages this time around! :)

ty for your wonderful script!
Henrie wrote:I think it is possible to put it in it's own password protected folder.
It is however not advised. You would have to manually change many relative paths as they would not be pointing to the right files in the templates folder.
Changes like this will prevent future updates from working out of the box and i will at least not help you with making these changes (sorry).

In my opinion, if you would like only your friends to add comments, it would be better to have a password on the sign page itself that you only give to your friends. So if someone does not know the password, they can not post a comment.

Greetings,
Henrie
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Not my script.
It is Klemen's script.
I am just a frequent user (4 guestbooks on 4 sites).

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Post Reply