Fatal error: Call to undefined function: session_start() in

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Fatal error: Call to undefined function: session_start() in

Post by Pumpi »

Fresh install Suse Enterprise Server 9

Try to reach Cacti firts time and I get following error:

Fatal error: Call to undefined function: session_start() in /srv/www/htdocs/cacti/include/config.php on line 95

PHP 4.3.4
Perl 5.8.3
RRDTool 1.2.12
NET-SNMP 5.1
MySQL 4.0.18
Cacti 0.8.6h with all available patches
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

You PHP doesn't have session support, fix it...
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Post by Pumpi »

...can you give me a hint how to fix this ? :oops:
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Two possible things...

1. Sessions support is commented out in the /etc/php.ini file.

2. There is a missing php-session software package. But I honestly don't know if this exists or not.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
wasmum
Posts: 7
Joined: Thu Jan 12, 2006 5:55 pm

same message

Post by wasmum »

I get the same message.

Sessions are working, I believe. nothing in the php.ini to indicate they are off. Any other help would be appreciated.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

If you are getting an error that session_start() doesn't exist, then you don't have session enabled.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Re: Fatal error: Call to undefined function: session_start()

Post by fmangeant »

Pumpi wrote:Fatal error: Call to undefined function: session_start() in /srv/www/htdocs/cacti/include/config.php on line 95
Hi

what does the phpinfo() function gives you ?

You should get something like this :

Code: Select all

              session

Session Support 	               enabled
Registered save handlers 	      files user
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
djt
Posts: 1
Joined: Tue Jan 24, 2006 6:59 am

Post by djt »

had a similar problem with suse 10.I installed php with yast but I didn't select php-sessions php-snmp php-sockets

try yast software install ,search for php install the above. restart apache.
Hiney
Cacti User
Posts: 56
Joined: Mon Oct 16, 2006 11:50 pm

running sles9

Post by Hiney »

I too did not have php-sessions, php-snmp and, php-sockets

perhaps this could mentioned somewhere that it is a requirement of the software ?


H
vfc
Posts: 1
Joined: Wed Jan 03, 2007 2:36 pm

Gentoo and session support

Post by vfc »

On Gentoo linux you have to enable: session USE flag in /etc/make.conf

gretz
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests