I can see image number only after reload page

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Splendor
Posts: 4
Joined: Wed Oct 29, 2008 9:22 am

I can see image number only after reload page

Post 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.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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
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
Splendor
Posts: 4
Joined: Wed Oct 29, 2008 9:22 am

Post 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
Splendor
Posts: 4
Joined: Wed Oct 29, 2008 9:22 am

Post 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.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
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
Splendor
Posts: 4
Joined: Wed Oct 29, 2008 9:22 am

Post by Splendor »

Thanks ...with the code in the header and footer finally WORK VERY WELL.
Thanks, thanks.

:lol:
Post Reply