Fatal error: Call to undefined function: session_id() in/var

falicea

Joined: 2002-08-19
Posts: 4
Posted: Mon, 2002-08-19 22:47

Hello,

I've set up gallery per the documentation, and I get the following error:

Fatal error: Call to undefined function: session_id() in /var/www/html/gallery/session.php on line 38

I am using Mandrake 9.0 beta. It comes with apache 1.326 and PHP 4.2.1. I have looked through the faq and the mailing list archives for a possible fix for this. Here is a copy of my php.ini (click on the link below)

<!-- BBCode Start --><A HREF="http://maddlinks.sytes.net:8081/help/" TARGET="_blank">php.ini</A><!-- BBCode End -->

Any and all help would be greatly appreciated. I fully understand that any help is generously volunteered and I appreciate your time.

I am willing to give access to my server and/or try any troubleshooting steps any of you come up with. Again, I do appreciate your help and suggestions.

Thanks very much,

Felix

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Tue, 2002-08-20 00:35

Hmm... is it possible they don't include support for sessions in their compile?

You need to create a file, for example phpinfo.php that contains:

<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE>
<?php
phpinfo();
?>
</TD></TR></TABLE><!-- BBCode End -->

So that we may determine what is and isn't enabled in your install.

 
falicea

Joined: 2002-08-19
Posts: 4
Posted: Tue, 2002-08-20 00:53

Hello,

I have created that page per your instruction. Below is the url:

<!-- BBCode Start --><A HREF="http://maddlinks.sytes.net:8081/help/phpinfo.php" TARGET="_blank">phpinfo.php</A><!-- BBCode End -->

Thank you very much for taking the time to consider this problem for me. I think you may be on the right track and if so, I may consider switching back to Red Hat (I've gotten Gallery to work with version 7.3) as opposed to trying to recompile apache or php. Either way, thanks again for giving me a lead and let me know if anything jumps out at you from the phpinfo.php file.

Thanks very much,

Felix

 
falicea

Joined: 2002-08-19
Posts: 4
Posted: Tue, 2002-08-20 00:58

I just looked through the file that you had me bring up. In the Configure Command section, among the entries are "--without-session' '--disable-session'".

Is this the problem as you suspected? Is there a command that I can run to solve this or disregaurd if I'm wrong and this has nothing to do with it.

Thanks,

Felix

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2002-08-20 02:58
Quote:
I just looked through the file that you had me bring up. In the Configure Command section, among the entries are "--without-session' '--disable-session'".

Yep, that means your PHP was built without session support, so it won't run Gallery. You'll need to either recompile PHP (see <!-- BBCode Start --><A HREF="http://www.php.net" TARGET="_blank">php.net</A><!-- BBCode End --> for info on that) or somehow get a new PHP binary.

 
falicea

Joined: 2002-08-19
Posts: 4
Posted: Tue, 2002-08-20 03:15

Looks like I have some work to do either way. Do some research of how to recompile php with session support or just switch to Red Hat (which I know Gallery works out of the box).

Thanks to vallimar &amp; bharat for helping me with this technically, non-Gallery issue.

I really do appreciate it.

Felix