Elxis CMS Forum

Support => Installation => Topic started by: Webcrawler on March 01, 2012, 02:08:03

Title: PHP Error [Warning]
Post by: Webcrawler on March 01, 2012, 02:08:03
I just installed elxis_2009.3_aphrodite_rev2684 without any issues.  When I go to the front page, there are 2 PHP Error [Warning] messages (see below).  Your help will be appreciated. 

--------------------------
URI: index.php
Path:
Line: 0
Unknown: open(/absolute/path/to/folder/one_level_up_of/public_html/sess_ad7a0a301495f694b71b5c1b54649cb8, O_RDWR) failed: No such file or directory (2)
---------------------------
URI: index.php
Path:
Line: 0
Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/absolute/path/to/folder/one_level_up_of/public_html)
----------------------------
Title: Re: PHP Error [Warning]
Post by: Webcrawler on March 01, 2012, 03:55:56
I am also getting an "invalid security code" error when I use try to register a new user on the frontpage.  I think that these errors might be related.  Permission for both temp & tempr are set to 777.  I have included additional info from the system regarding session.save_path. Hopefully it will help troubleshooting it.  Thanks again.
Title: Re: PHP Error [Warning]
Post by: xmanhattan on March 01, 2012, 10:15:05
Hello Webcrawler and welcome,

The majority of problems that arise usually have to do with permission settings.  If this is installed on a local system then that should not be the case.  If it is on the internet, then folders or directories should be 755 and files should be 644 except for the tmp, cache which should be 775 or as you have it 777.

Does this mean that you have installed this on a local system or live?
Quote
/absolute/path/to/folder/one_level_up_of/public_html

Can you also tell us which version of Php you are using.

Title: Re: PHP Error [Warning]
Post by: Webcrawler on March 01, 2012, 11:11:45
Thank you for addressing the issue.  Permission are set correctly. It is installed on a web server and it is live. PHP version is 5.2.17. 
Title: Re: PHP Error [Warning]
Post by: xmanhattan on March 01, 2012, 15:39:56
It could be as simple as:
tools > clean cache
tools > empty temporary
tools > fix language

Can you also provide a link?
Title: Re: PHP Error [Warning]
Post by: Webcrawler on March 01, 2012, 18:58:41
I followed your last instructions, but it did not help.  You can see my frontpage at virtualgate.com.
Title: Re: PHP Error [Warning]
Post by: webgift on March 01, 2012, 20:04:42
Hi Webcrawler,
This error occurs from PHP settings from your server. Verify that the session.save_path is a written and valid path otherwise your hosting provider must set it manually for you.
PHP tries to setup each session to a directory that doesn't exist.
Quote
absolute/path/to/folder/one_level_up_of/public_html/
it's not  a real path. ;)
Title: Re: PHP Error [Warning]
Post by: Webcrawler on March 01, 2012, 20:33:13
If you look at the attached file in my second post, you will see that session.save_path is written and valid, and it is set to /temp.  Is that not set correctly?  Please advise.
Title: Re: PHP Error [Warning]
Post by: Webcrawler on March 01, 2012, 23:38:55
Thanks Xmanhattan, you were right.  My ISP support set the session path to /temp in php.ini and I don't get the PHP error message anymore.

However, I am still getting "Invalid Security Code" error, when I try to register a new user on the frontpage.  I thought this error might have been related to session path, but looks like it's not.  Any idea as to how to fix this?
Title: Re: PHP Error [Warning]
Post by: Webcrawler on March 02, 2012, 22:24:19
I am considering this post to be closed since the "PHP Error" has been solved.  I am staring a new thread on the "Invalid Security Code" issue under the Security section.  It just seems more appropriate.