Page 1 of 1

Problem with error: Fatal error: Unknown function: sessi....

Posted: Mon Dec 19, 2005 1:04 am
by Guest
Script URL: http://www.zone.ee/liisaly/guestbook/gbook.php
Version of script: 1.34
Version of PHP: im not sure
Hosting company: www.zone.ee (Estonian company)
Have you searched THIS FORUM for your problem:
(if not please do before posting)

Write your message below:
Hi everyone. I will tell from the start that im noob in making website. I understand html but its really hard to understand php language. I use Macromedia Dreamweaver to make website to my girlfriend. Anyway i found this guestbook script and i tryied to get it work on my GF-s website. I did everything step by step but i still have problem i cant resolve. Script is working untill i try to add an entry. then it gives me error like this:
Fatal error: Unknown function: session_start() in /www/data15/users/l/liisaly/guestbook/gbook.php on line 47

I hope u guys can help me with my problem. If u have some questions i will try to answer them as best i can.
sry for my bad english :oops:

Sincerely,
Rain

Posted: Mon Dec 19, 2005 1:19 am
by The IT Girl
Hi mosquito,

Not too sure without seing it really, but you say you use dreamweaver,

Dreamweaver has a tendency to add extra characters to form values when copying or similar things. maybe you should see that a 2 hasnt been slipped behind one of the value names.

or post your code, lines 40 -50, should do it.

Posted: Mon Dec 19, 2005 12:02 pm
by janx4u
Because im such a noob i really cant understand what u mean by line 40-50... :oops:
I know it will take lot of space but i will copy the whole script:
DELETED CODE
I hope it helps u to help me with my problem.

Best regars,
Rain

Posted: Mon Dec 19, 2005 12:47 pm
by The IT Girl
Hello there,

I tested your code and all works fine, no seemingly visible errors or anything.

Maybe contact your hosting company and get them to sort out their php session folder.

I think its there end unless you are using a home sever, then you need to change your php.ini file somewhere.

Cant help you really, talk to hosting

Posted: Mon Dec 19, 2005 2:49 pm
by Klemen
Hi,

There must be a problem with PHP on your server. It doesn't recognize the session_start() function which is a standard PHP function.

You either have:

1. Sessions disabled on your server

- or -

2. Avery oldversion of PHP installed

Upload this file to your server and post the link here so we can check if this is true:
http://www.phpjunkyard.com/extras/phpinfo.zip

Regards

Posted: Fri Dec 23, 2005 10:24 am
by janx4u
Klemen Stirn wrote:Hi,

There must be a problem with PHP on your server. It doesn't recognize the session_start() function which is a standard PHP function.

You either have:

1. Sessions disabled on your server

- or -

2. Avery oldversion of PHP installed

Upload this file to your server and post the link here so we can check if this is true:
http://www.phpjunkyard.com/extras/phpinfo.zip

Regards
Sry for my late response. I have been busy in my job. Anyway i uploaded the phpinfo.php and here is the link: http://www.zone.ee/liisaly/phpinfo.php
Atleast now i know its Linux server.... :oops:

Thx for the great support so far. I dunno no one else who could help me...

Sincerely,
Rain

Posted: Fri Dec 23, 2005 12:17 pm
by Klemen
Hi,

Just as I thought - your host has disabled sessions in PHP (PHP was complied with '--disable-session'). You can either ask your hosting company to enable PHP sessions or find another host, Hesk will not work without session support (many others scripts won't either).

Regards

Posted: Fri Dec 23, 2005 2:15 pm
by Guest
That sucks! I hate my web host.....
But thank u anyway for ur kind support.
Janx4u :wink: