Elxis CMS Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Elxis 4.x documentation for users and developers
 
Pages: [1]
  Print  
Author Topic: PHP Error [Warning]  (Read 1815 times)
Webcrawler
Newbie
*
Offline Offline

Posts: 42


« 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)
----------------------------
Logged
Webcrawler
Newbie
*
Offline Offline

Posts: 42


« Reply #1 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.

* session save path.doc (56 KB - downloaded 74 times.)
Logged
xmanhattan
Hero Member
*****
Offline Offline

Posts: 973


If I'm still breathing, I'm doing something!


WWW
« Reply #2 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.

Logged

Webcrawler
Newbie
*
Offline Offline

Posts: 42


« Reply #3 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. 
Logged
xmanhattan
Hero Member
*****
Offline Offline

Posts: 973


If I'm still breathing, I'm doing something!


WWW
« Reply #4 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?
Logged

Webcrawler
Newbie
*
Offline Offline

Posts: 42


« Reply #5 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.
Logged
webgift
Elxis Team
Hero Member
*****
Offline Offline

Posts: 3252



WWW
« Reply #6 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. Wink
Logged

Webcrawler
Newbie
*
Offline Offline

Posts: 42


« Reply #7 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.
Logged
Webcrawler
Newbie
*
Offline Offline

Posts: 42


« Reply #8 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?
Logged
Webcrawler
Newbie
*
Offline Offline

Posts: 42


« Reply #9 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.
Logged
Pages: [1]
  Print  
 
Jump to: