"Call to undefined function: session_id()"??

signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Sun, 2003-07-27 06:57

I successfully configured the gallery, but after I set it back into secure mode, I started getting this error.

Fatal error: Call to undefined function: session_id() in /usr/local/www/data-dist/gallery/session.php on line 38

http://12.231.191.110/gallery/index.php
FreeBSD 5.1-CURRENT
gallery-1.3.4
php4-4.3.3.r1
netpbm-10.14
apache-1.3.28

IE 6.0SP1 - XP Pro SP1

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Sun, 2003-07-27 11:52

Can you post Gallery into configuration mode and tell us when you have done that. I'll poke around and see if I can figure out your problem.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Sun, 2003-07-27 18:55

Done...

FYI: The configuration will use /usr/local/www/data ... data is a symlink to data-dist, which is what the error displays.

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Sun, 2003-07-27 20:14

By looking at your setup/phpinfo.php page, you have disabled most PHP functionality with the --disable-all configure flag, including session support. You'll need to recompile PHP (or ask your host to, if you don't own the server) and include session support.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Sun, 2003-07-27 20:17

Lovely... that was the BSD default install from ports. I'll have to tweak that, I suppose.

 
tow

Joined: 2002-11-27
Posts: 2
Posted: Sat, 2006-09-02 02:02

In case anyone else google's this thread, this is the default in the freebsd ports tree. To resolve this do the following:

cd /usr/ports/lang/php5; vi Makefile

<-- Delete this line -->
--disable-all \
<-- /Delete this line -->

Write and quite then do a: make reinstall

Note: If you sync your ports tree your Makefile will reset to the default and you will have to do this again if you upgrade your php5 port.