Page 1 of 1

NO SECURITY IMAGE

Posted: Tue Mar 18, 2008 11:20 am
by lollylegs
Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Hi :roll:
The only problem with your great guestbook seems to be with the security code which we all like to have activated. I have read all the other posts and have tried everything you suggested and the darn thing will still not work.

I realise the problem is not with your guestbook, but with me, because I dont fully understand sessions or enough php yet to fix the problem myself.

The GD_TEST is red :D

Here is what I get when i do SESSION_TEST.PHP
( ! ) Notice: A session had already been started - ignoring session_start() in D:\Apache2.2\htdocs\session_test.php on line 4
Call Stack
# Time Memory Function Location
1 0.0010 58456 {main}( ) ..\session_test.php:0
2 0.0011 58792 session_start ( ) ..\session_test.php:4
Session started successfully!
CLICK HERE FOR PAGE 2

THEN when i click page 2 this is what i get

( ! ) Notice: A session had already been started - ignoring session_start() in D:\Apache2.2\htdocs\session_test2.php on line 4
Call Stack
# Time Memory Function Location
1 0.0008 59056 {main}( ) ..\session_test2.php:0
2 0.0009 59536 session_start ( ) ..\session_test2.php:4
$_SESSION['test'] is set to: FALSE

How do i set it to TRUE please

I have read everything i can that you have written and been on the net, but cant get the images to come up and when i set it to 2 the numbers come up, but always get incorrect security number.

I have spent many hours and would dearly like some help

Regards Marea
Australia

PS Thanks for a great free guestbook. I have a high regard for people like you who help people who haven't the finances to pay sometimes high prices for what you are offering. Keep up the good work and you never know one day i may be able to contribute as i am teaching myself php.

Posted: Tue Mar 18, 2008 3:08 pm
by Klemen
Obviously this is a problem with sessions, post the link to phpinfo.php and I will have a look.

Posted: Wed Mar 19, 2008 4:52 pm
by Klemen
Got your info. You have session.auto_start activated, disable it and try again (in php.ini set session.auto_start to Off).

NO SECURITY IMAGE

Posted: Wed May 28, 2008 4:58 pm
by berclo
Hi Klemen

I have read all the posts, searched google for php tutorials and done all I could over the last 10 days including getting support from powweb

GD support is enabled and session auto start is off. I still do not get a security image and the "2" setting gives me an error message.

My website is trilingual, English, Spanish and French so I use three sets of files (gbooken.php, settingsen.php and english.inc.php - gbookes.php, settingses.php and espanol.inc.php - gbookfr.php, settingsfr.php and francais.inc.php), customised to fit my website's style. Everything works beautifully and I love this guestbook but I do need the spam protection provided by the security image.

Here are the details:
website http://berclo.net hosted by powweb.com
http://berclo.net/gbook/phpinfo.php
http://berclo.net/gbook/session_test/php

Hoping you will find time to help me,


Bernard

Posted: Wed May 28, 2008 8:20 pm
by Klemen
Well, it's quite simple - your PHP sessions aren't working. Ask powweb to enable PHP sessions for your account.

- OR -

You can create a "sessions" folder inside your gbook folder, chmod it to 777 (rwxrwxrwx) and add this to the top of gbook.php and print_sec_img.php:

Code: Select all

session_save_path('/home/users/web/b2051/pow.berclo/htdocs/gbook/sessions'); 
ini_set('session.use_trans_sid',0);

Posted: Thu Apr 01, 2010 7:36 pm
by iarsnoo
I've been doing quite a bit of customising, and yesterday I thought I at last had a fully customised and stable guestbook. But very suddenly and for no apparent reason my security image failed to display and the text version didn't work either. I searched this forum and found that 'session' problems were often diagnosed. I decided to try Klemen's 'sessions' folder fix above - except that I used simply 'sessions/' as the path when making the additions to gbook.php and print_sec_img.php. To my surprise and delight everything immediately worked normally again. I'm not sure if this will prove a success in the long term, but I thought I'd add my experience to date in the hope that it might be useful to someone else.

I also see that my sessions folder already contains 94 files! As I don't fully understand what I've been doing, can someone advise me if I should empty it periodically; or if is there is any other action I should be taking?

Posted: Fri Apr 02, 2010 2:04 pm
by Klemen
As long as it works it's a good solution :wink:

The session files are temporary so yes, if the number keeps growing just delete the files from time to time.

Posted: Sat Apr 03, 2010 10:37 am
by iarsnoo
Many thanks, Klemen. That's reassuring!

Re: NO SECURITY IMAGE

Posted: Sun Oct 03, 2010 3:30 pm
by SonarSubs
POWWEB FIX!!! I had the same problem with a red X instead of image. Searched Powweb KB.

Read this article: http://www.powweb.com/knowledgebase/bet ... cleID=1290

- First thing I did was goto File Manager (click link on that page)
- Create a folder: /htdocs/cgi-bin/tmp

- Next goto the PHP Scripting page(click link on that page)
- in the php.ini box, search for: session.save_path (use CTRL+F)
- change line to /home/users/web/***/***/htdocs/cgi-bin/tmp (stars are hiding my directory)

I immediately refreshed my guestbook sign in page, and saw the security image!!!
http://christine.butzbach.net/guestbook ... php?a=sign
Image