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

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Guest

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

Post 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
The IT Girl

Post 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.
janx4u
Posts: 2
Joined: Mon Dec 19, 2005 12:50 am

Post 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
The IT Girl

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

Post 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
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
janx4u
Posts: 2
Joined: Mon Dec 19, 2005 12:50 am

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

Post 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
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
Guest

Post by Guest »

That sucks! I hate my web host.....
But thank u anyway for ur kind support.
Janx4u :wink:
Post Reply