Getting Error: Warning: session_start...

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

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: [Jason] Getting Error: Warning: session_start...

By ScottL - July 29, 2010

I tried that with no success. I found another post specific to this same error and the web host PHP set-up. I've sent them an email to see if it's an issue.

http://www.interactivetools.com/forum/gforum.cgi?post=74637;search_string=Warning:%20Unknown:%20open(/var/php_sessions/sess;#74637

My php file is attached.

Thanks

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/