Web Hosting Talk







View Full Version : modernbill session errors


serverunion
05-28-2004, 05:19 PM
Having problems with my modernbill session. have the folder /tmp/sessions created and still am getting errors that the dir can't be found. Have seen this issue before, but didn't see any resolve on the forums. Login page loads with various errors. Cant move on from there

Thanks in advance.
Natron



----------error as follows

Warning: session_start(): open(/sessions/sess_94e250021bf7b4bf7710db6484faa40e, O_RDWR) failed: No such file or directory (2) in /home/serverun/public_html/hosting/billing/include/misc/heart/auth.inc.php on line 28

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/serverun/public_html/hosting/billing/include/misc/heart/auth.inc.php:28) in /home/serverun/public_html/hosting/billing/include/misc/heart/auth.inc.php on line 28

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/serverun/public_html/hosting/billing/include/misc/heart/auth.inc.php:28) in /home/serverun/public_html/hosting/billing/include/misc/heart/auth.inc.php on line 28

Glanhosts
05-28-2004, 05:21 PM
Have you tried contacting mordern bill about it to see what they have to say or give a lead to look at...you might wanna take a look at the programming discussion section of this WHT forum...

Hope good luck for you..

:wavey:

serverunion
05-28-2004, 05:24 PM
using there free demo which from what I can see doesn't offer support. Thought I would look around before I cough up the $25 for a lease...

a.harris
05-29-2004, 07:34 AM
Hi serverunion,

Two options.

1) Check the permissions for the folder /tmp/sessions, make sure it is read/writeable by your webserver (normally the user 'nobody'). If this still doesn't resolve it:

2) Open file /home/serverun/public_html/hosting/billing/include/config/config.locale.php

Hash out Step 1 to look similar to this:

# session_save_path('/sessions'); // UNIX
# session_save_path('C:\\sessions'); // WINDOWS

Modernbill will store sessions in the MySQL db instead of /tmp/sessions.

Good Luck! :)

Edit: Just to note, you will receive the same issue with the real license and would have to perform the same fixes (although modernbill will help you with it :))

NexDog
05-29-2004, 10:14 AM
This is a known PHP bug. We have come across it a few times and there is no cure and no cause. It's totally random and totally mystifying. Usually commenting out the call to the session_start function fixes this.

serverunion
06-01-2004, 10:22 AM
Commenting out the save path worked. Looks like file bases session wont work for me :(

Thank you
Natron

mulder
06-06-2004, 06:05 PM
I was getting session errors. I think it was caused by white space at the beginning/end of the config file.

Mulder

serverunion
06-07-2004, 09:59 AM
Could it be do to the fact that the domain I am running the billing on is actually a add-on domain, not the root domain?

Thanks!

serverunion
06-07-2004, 10:20 AM
If you are getting this problem try changing the session save path to:

session_save_path('/tmp'); // UNIX

Some server setups dont have correct rights for subfolders and the option to set in Cpanel is not available...

Hoep this helps everyone!

Thanks everyone for the help.

Natron

nzwebit
09-27-2004, 05:44 PM
Might be too late for you :) but for anyone else which may get the same issue; This error is caused (as mentioned by mulder) by spaces (empty lines) in the beginning of the config.locale.php file.
The file is located here: /modernbill/include/config/config.locale.php

Delete any spaces in the beginning and the end of the file.