Page 1 of 1

error message after addition to gbook

Posted: Thu Feb 18, 2010 11:49 am
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

Posted: Fri Feb 19, 2010 4:44 pm
by Klemen
Have you been editing the gbook.php file?

Try uploading a fresh one directly from the Zip archive and without modifying it.

uploaded new gbook.php

Posted: Fri Feb 19, 2010 5:37 pm
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?

Posted: Fri Feb 19, 2010 8:03 pm
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

Posted: Fri Feb 19, 2010 9:26 pm
by reg2
Deleted lines as suggested, no new errors but original one remains.

http://natureoncam.co.uk/gbook/phpinfo.php

Posted: Sat Feb 20, 2010 11:28 am
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?

Posted: Mon Feb 22, 2010 8:58 am
by reg2
That seems to have fixed it.
many thanks

Reg

Will try your random image script now!