Page 1 of 1

I can see image number only after reload page

Posted: Wed Oct 29, 2008 9:32 am
by Splendor
Script URL:http://www.umbriainmoto.it/libroospiti/gbook.php?a=sign
Version of script:1.6
Hosting company:Aruba
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: image

Write your message below:

Sorry I have read other post but my english is very bad.
My problem is that when i go to write the guestbook I dont see image number, only if I reload the page can I see the image.
why i can't see the first time? buy only after relaod page?
Thanks.

Posted: Wed Oct 29, 2008 6:05 pm
by Klemen
Probably problems with sessions. Upload phpinfo.php and session_test files to your server, you will find them here:
viewtopic.php?t=83

Posted: Thu Oct 30, 2008 8:42 am
by Splendor
Thanks Klemen for your help.

http://www.umbriainmoto.it/libroospiti/phpinfo.php

http://www.umbriainmoto.it/libroospiti/session_test.php

I have also set autosubmit=2, it work well, but when I write the number and I confirm, tell me error= number security wrong.

I can only set autosubmit =0
Thanks

Posted: Thu Oct 30, 2008 11:22 am
by Splendor
I have also tried

session_save_path('/web/htdocs/www.umbriainmoto.it/home/libroospiti/sessions');
ini_set('session.use_trans_sid',0);


in to gbook.php and print_sec_img.php and create folder sessions chmod 777

and

session_save_path('/web/htdocs/www.umbriainmoto.it/home/libroospiti/tmp'); in to gbook and print... and create folder tmp chmod 777

but not change.

Posted: Thu Oct 30, 2008 2:19 pm
by Klemen
Seems like you were editing gbook.php, correct? I don't recommend doing that unless you know exactly how PHP sessions work. Your code is breaking the PHP session and if you delete this code from settings.php file

Code: Select all

ini_set('display_errors', 0);
ini_set('log_errors', 1);
you will probably see some error messages saying can't start session headers already sent on gbook.php line XY... Instead of editing gbook.php try posting your HTML code in header.txt and footer.txt as suggested many trimes here on this forum.

Posted: Thu Oct 30, 2008 3:58 pm
by Splendor
Thanks ...with the code in the header and footer finally WORK VERY WELL.
Thanks, thanks.

:lol: