WFB Error in PHP on server - Post ID...

User 315488 Photo


Registered User
90 posts

The web site that has an error is hosted on a LAMP server. It isn't available yet using the URL (http://www.upc.utah.gov), but is available using the IP address.
Everything works except for the forms built by WFB ver. 2.3. Build 5217.

I get an error (see attachment) - Fatal Error: session_start() ... failed to initialize storage module: files (path) in /hosts/../ContactForm/fbapp/php/config.cls.php on line 391

Here's the function being called when the error occurs:

// start session and initialize with data
public function InitSession ( $session_data = null ) {

static $session_exists = false;

if( ! $session_exists ) {
$session_exists = session_start(); //line 391
}

if( ! empty( $session_data ) )
$_SESSION = array_merge( $_SESSION, $session_data );
}


Any idea what the problem is? I've uploaded an exact copy on a subweb on my private hosting service and there is no problem at all. Does the server need some configuration. I was under the impression that the server I'm hosting on already has PHP configured to work.

I am sending a support request to my host to see what's wrong, but they can be slow to respond, so I wanted to see if anyone here has an idea first.
Thanks
Attachments:
User 103173 Photo


VP of Software Development
0 posts

Are PHP Sessions enabled?
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 315488 Photo


Registered User
90 posts

They are supposed to be, but I'm waiting for a response from the help desk from the host service.

I uploaded a phpinfo.php file with the following contents:
<?php

// Show all information, defaults to INFO_ALL
phpinfo();

?>


When run it I get a large page of results that indicates that php is configured on the server - ver. 5.3.22
User 103173 Photo


VP of Software Development
0 posts

The easiest way to check is to go to ContactForm/fbapp/php/servertest.php and see what it reports.
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 315488 Photo


Registered User
90 posts

The easiest way to check is to go to ContactForm/fbapp/php/servertest.php and see what it reports.


I think it's a configuration problem on the server, but I needed to check here too.

I get this error when I run servertest.php

Warning: session_start() [function.session-start]: SAFE MODE Restriction in effect. The script whose uid is 530 is not allowed to access /tmp owned by uid 0 in /hosts/upc/apache/htdocs/ContactForm/fbapp/php/servertest.php on line 15

Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: files (path: ) in /hosts/upc/apache/htdocs/ContactForm/fbapp/php/servertest.php on line 15

Thanks
User 315488 Photo


Registered User
90 posts

I found out the problem - as I thought, it was a server configuration problem. They had the php.ini file in the wrong place. Once they fixed that, it all works. Thanks so much for prompt replies.

I try to do everything I can with CoffeeCup sw because I get such great support as well as using really good software that doesn't have too many problems. Most of my problems are just my inexperience.

Thanks,
Ron

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.