Need Help in figuring out error code.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
911Alert
Forum Newbie
Posts: 2
Joined: Tue Oct 11, 2011 4:45 pm

Need Help in figuring out error code.

Post by 911Alert »

My online exam testing program is not allowing anyone to login. The screen reads:

Warning: session_start() [function.session-start]: open(/var/chroot/home/content/v/o/l/voltageking/tmp/sess_b92f0a5bfdf749574efe34586dff8d0f, O_RDWR) failed: No such file or directory (2) in /home/content/v/o/l/voltageking/html/exams/index.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/v/o/l/voltageking/html/exams/index.php:2) in /home/content/v/o/l/voltageking/html/exams/index.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/v/o/l/voltageking/html/exams/index.php:2) in /home/content/v/o/l/voltageking/html/exams/index.php on line 2

-----------------------------------------------------------------------------------------------

I don't really understand the problem, our code writer is no longer working with us. Here is the link to view it directly: http://www.voltageking.com/exams/

Any help in understanding the above error code would be greatly appreciated.

Thank you,
VoltageKing.com
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Need Help in figuring out error code.

Post by social_experiment »

I think the first error is triggering the second and third error.
911Alert wrote:Warning: session_start() [function.session-start]: open(/var/chroot/home/content/v/o/l/voltageking/tmp/sess_b92f0a5bfdf749574efe34586dff8d0f, O_RDWR) failed: No such file or directory (2) in /home/content/v/o/l/voltageking/html/exams/index.php on line 2
Missing file or directory seems to be the problem.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
ouchiko
Forum Commoner
Posts: 35
Joined: Sun Oct 09, 2011 6:54 pm
Location: London

Re: Need Help in figuring out error code.

Post by ouchiko »

Check your php.ini and determine the location of the session data?

It looks like it was meant to be /tmp but seems to be referering to the current path with tmp added on, probably a missed /

If you want to use that directory listed then create a tmp directory in /var/chroot/home/content/v/o/l/voltageking/tmp/

Make sure permissions are set. Needs to be writable.
911Alert
Forum Newbie
Posts: 2
Joined: Tue Oct 11, 2011 4:45 pm

Re: Need Help in figuring out error code.

Post by 911Alert »

First I want to thank you for your quick response. I greatly appreacate your time in helping me resolve this matter.


I looked at the php.ini file and it reads:

php_admin_flag register_globals on

Where do I go from here? This coding problem started occuring out of the blue. I did nothing to the programs or files. How do I check the permissions to insure they are writable?

Here is the link that is giving me trouble: http://www.voltageking.com/exams

------------------------------------------------------------------------------------------------------------------------------------------

I just went to the remote files on the server and found the tmp directory under the voltageking root directory and set the permission for all to read, write, execute. I dont know if this is going to be a security issue or not?

Anyway, nothing changed. Im really perplexed here. I did not write this code an exemployee did who is now unreachable. Any hep greatly appreacated. if i could find an individual who understands completly understandes PHP I am interested in hireing them on a issue by issue bases. We are located in the tampa Bay Florida area however their location is not an issue since we can communicate via email and the phone. Please let me know if anyone is interested. Thanks again.
Post Reply