error message after addition to gbook

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
reg2
Posts: 4
Joined: Thu Feb 18, 2010 10:35 am

error message after addition to gbook

Post by reg2 »

Script URL:http://www.natureoncam.co.uk/gbook/gbook.php
Version of script:1.7
Hosting company:openmind
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
session regenerate, headers already sent

Write your message below:

Warning: session_regenerate_id() [function.session-regenerate-id]: Cannot regenerate session id - headers already sent
in /home/natureon/public_html/gbook/gbook.php on line 1323

This error occurs every time a visitor adds to the guest book, it shows on the read comments page.

Have read and reread all your stuff, has not helped but then again I am no expert, Googled the phrase above got various suggestions but none seem to be the same
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Have you been editing the gbook.php file?

Try uploading a fresh one directly from the Zip archive and without modifying it.
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
reg2
Posts: 4
Joined: Thu Feb 18, 2010 10:35 am

uploaded new gbook.php

Post by reg2 »

As suggested uploaded fresh from zip gbook.php

Same problem as before, however gbook.php size is 37975 unzipped but after uploading with Filezilla it is only 35.76K on the server, is that correct?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

In this case try deleting these two lines from your settings.php file:

Code: Select all

ini_set('display_errors', 0);
ini_set('log_errors', 1);
Then try to submit an entry. Do you get any new error messages?

You will also need to upload the phpinfo.php file for us to see to your server, you will get it here:
viewtopic.php?t=83
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
reg2
Posts: 4
Joined: Thu Feb 18, 2010 10:35 am

Post by reg2 »

Deleted lines as suggested, no new errors but original one remains.

http://natureoncam.co.uk/gbook/phpinfo.php
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

OK, I found the problem - it was a problem with GBook not your server. Try uploading this file:
http://www.phpjunkyard.com/extras/emoticons_fixed.zip
to your guestbook folder inside "templates/default" folder (overwrite the original emoticons.php file).

Does it fix the issue?
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
reg2
Posts: 4
Joined: Thu Feb 18, 2010 10:35 am

Post by reg2 »

That seems to have fixed it.
many thanks

Reg

Will try your random image script now!
Post Reply