Getting Error: Warning: session_start...

5 posts by 2 authors in: Forums > CMS Builder
Last Post: July 29, 2010   (RSS)

By ScottL - July 29, 2010 - edited: July 29, 2010

Any idea what is causing this error message? I've checked all the permissions.


Warning: session_start(): open(/var/php_sessions/sess_f90adda248cf43dd23469041a991ddf5, O_RDWR) failed: No such file or directory (2) in /hermes/bosweb/web149/b1492/XXX.XXX/public_html/cmsAdmin/lib/init.php on line 319 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /hermes/bosweb/web149/b1492/XXX.XXX/public_html/cmsAdmin/lib/init.php:319) in /hermes/bosweb/web149/b1492/XXX.XXX/public_html/cmsAdmin/lib/init.php on line 319



thanks

Re: [thinkng] Getting Error: Warning: session_start...

By Jason - July 29, 2010

Hi,

On some servers, this problem can be caused by blank spaces at the top of the page. Make sure your <?php tag is at the very top of the page with no blank lines. Also, if you have something that looks like this:

<?php
* SOME CODE*
?>

<?php
*SOME MORE CODE*


at the top of the page, remove the blank line between ?> and <?php. Give this a try. If you're still running into a problem, please attach your .php file to this thread and I'll take a closer look.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [thinkng] Getting Error: Warning: session_start...

By ScottL - July 29, 2010

Fixed it. I went into the php.ini file and made this change:

LOOK FOR THIS LINE:
;session.save_path = "/tmp"


CHANGE:
remove the ; and change the /tmp to a path to a folder on your website.

In CMS Builder, if you go to: Admin > General > Program Directory, it will list the filepath for the directory CMS Builder is in, such as:
/var/www/vhosts/yourdomain.com/httpdocs/cmsAdmin

If that was your path, you'd want to create a directory here and use this path:
/var/www/vhosts/yourdomain.com/php_sessions

You need to also create the new folder where the filepath points to!


It's working as usual now. Thanks!

Re: [thinkng] Getting Error: Warning: session_start...

By Jason - July 29, 2010

Hi,

That's great! Glad that everything is working for you now.

Thanks for posting a solution.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/