You are not logged in.
Pages: 1
The most recent update of php has caused my test server to yield
'Fatal error: Call to undefined function session_name()'
Is this due to the hardened php-suhosin?
How do I fix this?
Offline
php is broken so to me.
On parle toujours mal quand on a rien à dire.
Offline
Works fine with this php.ini extensions:
; available extensions
extension=bcmath.so
extension=bz2.so
extension=calendar.so
extension=curl.so
extension=dba.so
extension=dbase.so
extension=exif.so
extension=ftp.so
extension=gd.so
extension=gettext.so
extension=iconv.so
extension=imap.so
extension=json.so
extension=ldap.so
extension=mcrypt.so
extension=mime_magic.so
extension=mysql.so
extension=mysqli.so
extension=ncurses.so
extension=odbc.so
extension=openssl.so
extension=pdo.so
extension=pdo_mysql.so
extension=pdo_odbc.so
extension=pdo_pgsql.so
extension=pdo_sqlite.so
extension=pgsql.so
extension=posix.so
extension=pspell.so
extension=session.so
extension=shmop.so
extension=snmp.so
extension=soap.so
extension=sockets.so
extension=sqlite.so
extension=sysvmsg.so
extension=sysvsem.so
extension=sysvshm.so
extension=tidy.so
extension=xmlrpc.so
extension=xsl.so
extension=zip.so
extension=zlib.so
extension=session.so is necessary for php session works.
On parle toujours mal quand on a rien à dire.
Offline
It was broke for me as well. I took the php.ini file I had and used the one it created (/etc/php/php.ini.pacnew) and made another one. I copied the php.ini.pacnew to a new php.ini, then line-by line set my existing settings in the new php.ini. There are some differences!
I don't know what line "fixed" my issue, but this fixed it -- oh, and I rebooted because of something else and all was well. Maybe a restart is required?
Last edited by mrunion (2007-10-15 23:27:40)
Matt
"It is very difficult to educate the educated."
Offline
Adding:
extension=session.so to /etc/php/php.ini
was essential to get my dokuwiki php pages working again.
Offline
i also met this issue.
and have added extension=session.so to /etc/php/php.ini and restart apache.
but my dokuwiki still report error.
Fatal error: Call to undefined function session_name() in /srv/www/dokuwiki/inc/init.php on line 100
does anyone have other clue?
Last edited by roadt (2007-10-19 03:23:39)
Offline
Adding extension=session.so fixed it for me :--)
"The only thing we have to fear is fear itself." - Franklin D. Roosevelt
Offline
i also met this issue.
and have added extension=session.so to /etc/php/php.ini and restart apache.but my dokuwiki still report error.
Fatal error: Call to undefined function session_name() in /srv/www/dokuwiki/inc/init.php on line 100does anyone have other clue?
Also in /etc/php/php.ini, you need to set open_basedir= webserver root directory
Offline
After upgrading I got this:
Fatal error: Class 'XSLTProcessor' not found
Adding this to my php.ini solved my problem:
extension=xsl.so
Offline
Also in /etc/php/php.ini, you need to set open_basedir= webserver root directory
yeah, After add extension.so into /etc/php/php.ini, the problem is solved.
I removed the /etc/php.ini file, seems it's not used any more.
Thanks for your comment.
Offline
Hi all,
I had the same problem and I was glad this thread exists. The missing extension=session.so drove me crazy. I think I am an entry on the archwiki although the PHP page (http://wiki.archlinux.org/index.php/PHP) is not having any information I expected. What do you think?
Best regards,
Martin
Offline
I think php should NOT be compiled with --enable-session=shared
It seems like most half decent web apps will use that and other PHP modules will use it.
It'll just cause headaches for people who aren't so keen on PHP.
If they want to build with --enable-session=shared at least put a line in php.ini!
;extension=session.so
Offline
Pages: 1