> Yesterday Squirrelmail was working fine. Today I am getting: > > > Fatal error: Call to undefined function: session_id() in > /usr/local/www/squirrelmail/functions/global.php on line 293 > > > As far as I can tell, nothing changed (there were no admins logged in > to the system between when it was working (7pm last night) and when it was > not (7:30am this morning)). > > I googled the error, but only found a web-board where someone asked the > same question and two pages in japanese and a couple of links to SM-USERS > posts (which were not helpful). Searching over the last two months of > messages here the only thing I fund was a suggestion that php was compiled > incorrectly, but I know this php compilation has been working fine with > Squirrelmail since it was updated last week. > > > php version is 4.3.8 > > // From PHP info: > System: FreeBSD akane.covisp.net 5.2.1-RC FreeBSD 5.2.1-RC #0: Sat Jan > 31 05:36:22 GMT 2004 > [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 > > > Build Date: Jul 28 2004 22:27:15 > > > Configure Command" './configure' '--enable-versioning' > '--enable-memory-limit' '--with-layout=GNU' > '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' > '--with-regex=php' '--disable-cli' '--with-apxs=/usr/local/sbin/apxs' > '--prefix=/usr/local' 'i386-portbld-freebsd5.2.1'
On 2004-07-28 admin upgraded php. He or she did two strange things: 1. admin created totally useless php installation. php contains dozens of modules. --disable-all option disables all of them. Even default ones. You have Swiss knife and using it only as a fork. 2. admin forgot to check if he or she restarted apache. Your system was using older php version. Between 3:00 and 5:00 am cron ran periodic (man periodic) and restarted apache. SquirrelMail requires session (--enable-session) and pcre (--with-pcre-regex) support in php. Enable these options in your php install or remove --disable-all option. You can also add gettext and mbstring support. SquirrelMail might work without these modules, but translations work faster when gettext support is present in php and one translation does not work without mbstring support. http://search.gmane.org/search.php?query=session+undefined&group=gmane.mail.squirrelmail.user -- Tomas ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com -- squirrelmail-users mailing list List Address: [EMAIL PROTECTED] List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
