Issues with your account? Bug us in the Discord!
anyoe good with PHP?
Entil'Zha
I see famous people
in Zocalo v2.0
Alright, i'm asking everyone i know since this is driving me insane.
I've been using gallery to store my pictures on mywebsite for years, worked with no problem.
I had to upgrade mysql and while i was doing that, decided to upgrade to php5 at the same time,
ever since then, with my gallery i get
Fatal error: Call to undefined function session_id() in /usr/local/www/data-dist/isengard/gallery/session.php on line 39
session is enabled in php, i've tried going back to php4. i've tried using the port for php-session, nothing seems to work.
if anyones got any advice, i've been workin on it for 2 days now and its turned my brain to mush.
[PHP Modules]
ctype
libxml
session
SimpleXML
SPL
standard
PHP 5.0.3 (cli) (built: Feb 7 2005 12:34:29)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies
FreeBSD orthanc.firefoot.com 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Sun Jan 16 14:43:23 EST 2005
I've been using gallery to store my pictures on mywebsite for years, worked with no problem.
I had to upgrade mysql and while i was doing that, decided to upgrade to php5 at the same time,
ever since then, with my gallery i get
Fatal error: Call to undefined function session_id() in /usr/local/www/data-dist/isengard/gallery/session.php on line 39
session is enabled in php, i've tried going back to php4. i've tried using the port for php-session, nothing seems to work.
if anyones got any advice, i've been workin on it for 2 days now and its turned my brain to mush.
[PHP Modules]
ctype
libxml
session
SimpleXML
SPL
standard
PHP 5.0.3 (cli) (built: Feb 7 2005 12:34:29)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies
FreeBSD orthanc.firefoot.com 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Sun Jan 16 14:43:23 EST 2005
Comments
The first thing that came to mind was that you might have compiled PHP without session support (--disable-session).
Edit : Sorry, didn't read it all :P
Have a look in your php.ini, set session.file_handler to 'files'
[B]Can you post your configure command output from your phpinfo?
The first thing that came to mind was that you might have compiled PHP without session support (--disable-session). [/B][/QUOTE]
i thought i posted that above, the php -m which shows the session module included.
I'm actually trying compiling it once again.
[B]i thought i posted that above, the php -m which shows the session module included.
I'm actually trying compiling it once again. [/B][/QUOTE]
Make sure you compile it with --enable-session just to be on the safe side, and take a look at the edit in that post :)
[B]Make sure you compile it with --enable-session just to be on the safe side, and take a look at the edit in that post :) [/B][/QUOTE]
ok, i'll add that to the Makefile since i'm compiling it from ports.
still not working, info below.
orthanc# php -m
[PHP Modules]
dom
exif
iconv
libxml
mysql
pcre
posix
session
SPL
standard
tokenizer
xml
[Zend Modules]
orthanc# php -v
PHP 5.0.3 (cli) (built: Feb 7 2005 12:34:29)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies
session
Session Support => enabled
Registered save handlers => files user
Registered serializer handlers => php php_binary
Directive => Local Value => Master Value
session.auto_start => Off => Off
session.bug_compat_42 => Off => Off
session.bug_compat_warn => On => On
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_secure => Off => Off
session.entropy_file => no value => no value
session.entropy_length => 0 => 0
session.gc_divisor => 1000 => 1000
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 1 => 1
session.hash_bits_per_character => 5 => 5
session.hash_function => 0 => 0
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => no value => no value
session.serialize_handler => php => php
session.use_cookies => On => On
session.use_only_cookies => Off => Off
session.use_trans_sid => 0 => 0
[B]Also just noticed your session.save_path has no value, make sure this is set (usually /tmp) [/B][/QUOTE]
i'm not sure why that showed up like that, as i just checked and it is set to /tmp
and session auto_start is turned on.
[B]i'm not sure why that showed up like that, as i just checked and it is set to /tmp
and session auto_start is turned on. [/B][/QUOTE]
Are you sure the line wasn't commented out?
Does session handling fail even if you do something *really minimal*... like try one of the $_SESSION samples from the PHP manual?
It somehow really seems... like the session module isn't properly connected to the rest of PHP.
[B]Quite puzzling. And everything else (except session handling functions)... appears to work?
[/B][/QUOTE]
No, not "quite puzzing" MIND NUMBINGLY puzzling, lol, it looks to me like everything is right and it should be working,
i'm about ready to try my favorite solution, which is to hit the machine as hard as i can, :)
Crap... now where did the email go...
I remember reading something about a change from PHP4 to PHP5 and how it connects with the newer MySQL ...
Digging...
Was either PHP4 to 5 or MySQL 4 to 5 change over depricated something and it had to do with how you connect to a DB...
I'll keep looking but I think I've lost the email notice.
[B]Can't find it...
Was either PHP4 to 5 or MySQL 4 to 5 change over depricated something and it had to do with how you connect to a DB...
I'll keep looking but I think I've lost the email notice. [/B][/QUOTE]
well its weird, cause its not actually using mysql, it just happend to happen when i was upgrading both,
so i went with the solution that i mentioned before, i hit the machine rather hard, it seems to be working now. go figure.
(it may also have something to do with some fiddling in php.ini)