PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > The PowWeb Platform > PHP
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
Old 11-5-09, 06:00 AM   #1
BikiniDUck
Registered
 
Join Date: Jan 2008
Location: Minnesota
Posts: 25
Reputation: 0
Issue with sessions?

I have a wordpress install that I use as a standalone site.
I recently finished working on another Wordpress installation. I was going to use it as a shopping cart for a single product. However when I migrated everything over from my computer to the server I get this error from the shopping cart plugin:

Code:
Warning: session_start() [function.session-start]: open(/www/php/f/c/7/sess_fc7d0a3f61d48cf9dd1dee9599d73c2a, O_RDWR) failed: No such file or directory (2) in /hermes/web09d/b2964/pow.name/htdocs/aurora/wp-content/plugins/wp-e-commerce/merchants/paypal_certified.php on line 741

Code:
Warning: Unknown(): open(/www/php/f/c/7/sess_fc7d0a3f61d48cf9dd1dee9599d73c2a, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (3;/www/php) in Unknown on line 0

Through some googling it seems that both Wordpress's are trying to access the same PHP temp file? Is there a way to turn on multiple sessions?
I'm at a loss as to what to do next.

Thanks,
--Martin--
BikiniDUck is offline   Reply With Quote
Old 11-5-09, 06:55 AM   #2
HalfaBee
 
HalfaBee's Avatar
 
Join Date: Feb 2002
Location: Sydney, Australia
Posts: 7,131
Reputation: 333
Remove the php.ini file from your website.
__________________
I don't suffer from laziness, I enjoy every minute!
Edit your php.ini here
http://members.powweb.com/member/cgi...nt/PHPplus.bml
HalfaBee is offline   Reply With Quote
Old 11-5-09, 02:59 PM   #3
BikiniDUck
Registered
 
Join Date: Jan 2008
Location: Minnesota
Posts: 25
Reputation: 0
I tried that but the error still continues
BikiniDUck is offline   Reply With Quote
Old 11-5-09, 03:13 PM   #4
HalfaBee
 
HalfaBee's Avatar
 
Join Date: Feb 2002
Location: Sydney, Australia
Posts: 7,131
Reputation: 333
run this little script, it should show you where the php.ini is located.
PHP Code:
<? phpinfo() ?>

If not, the path is hardcoded into a config file or script.
__________________
I don't suffer from laziness, I enjoy every minute!
Edit your php.ini here
http://members.powweb.com/member/cgi...nt/PHPplus.bml
HalfaBee is offline   Reply With Quote
Old 11-5-09, 04:37 PM   #5
Dbrazzell
PowWeb Staff
 
Dbrazzell's Avatar
 
Join Date: Nov 2008
Location: Burlington
Posts: 386
Reputation: 122
/www/php/ has to be hard coded in your site somewhere.

Thats a path located on your home computer that you copied this site from.
The php.ini of the server the site is hosted on sets the php_session_dir path. Which in our case Im sure is set correctly. But you are overriding it somehow. Most likely by hard coding that path some where in a .php file in your account.
__________________
For Robots only Linky
Dbrazzell is offline   Reply With Quote
Old 11-6-09, 12:02 AM   #6
BikiniDUck
Registered
 
Join Date: Jan 2008
Location: Minnesota
Posts: 25
Reputation: 0
Just to make sure that wasnt the case, I deleted everything that referenced it in any way. All files, DB's, etc. Reinstalled it, activated it, get error again. I installed the plugin on the site through the web interface, skipping FTP.

Last time I tried using this plugin it was an older version of wordpress. It worked so well in my playing around back then I used it for the newest site.

However between then and now new versions of WP were released, and the latest one is what I use now. I used http://www.mamp.info/en/index.html to work on the site offline. Everything I did offline worked just fine, and still does. But when I uploaded it I started getting that error. The only time it comes up is when the shopping cart is turned on, regardless of whether any other plugins are active. I looked, and the /www/php/ doesnt even exist on my computer, it has to be some reference to something on the powweb server.

I guess my next try is to downgrade WP and try it again.
BikiniDUck is offline   Reply With Quote
Old 11-6-09, 12:11 AM   #7
KitBear
Beta tester
 
Join Date: Jul 2005
Location: California
Posts: 533
Reputation: 141
Is your session.save_path correct?

Link: http://members.powweb.com/member/cgi...nt/PHPplus.bml

Look for:
session.save_path = "/home/users/web/.../.../.../.../"

I have mine located within a folder within my webspace.
KitBear is offline   Reply With Quote
Old 11-6-09, 12:13 AM   #8
BikiniDUck
Registered
 
Join Date: Jan 2008
Location: Minnesota
Posts: 25
Reputation: 0
Quote:
Originally Posted by Dbrazzell View Post
/www/php/ has to be hard coded in your site somewhere.

Thats a path located on your home computer that you copied this site from.
The php.ini of the server the site is hosted on sets the php_session_dir path. Which in our case Im sure is set correctly. But you are overriding it somehow. Most likely by hard coding that path some where in a .php file in your account.

I just downloaded the php.ini file that is on the powweb server. The only mention of www/tmp is this:

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = /www/tmp

; Maximum allowed size for uploaded files.
upload_max_filesize = 2M



Is this the correct default setting? If not what should I change it to?
BikiniDUck is offline   Reply With Quote
Old 11-6-09, 12:16 AM   #9
BikiniDUck
Registered
 
Join Date: Jan 2008
Location: Minnesota
Posts: 25
Reputation: 0
Kitbear thanks for that link.
Mine looks like:
session.save_path = "3;/www/php"

So I should change that to an unused folder inside my main htdocs folder?
BikiniDUck is offline   Reply With Quote
Old 11-6-09, 12:20 AM   #10
KitBear
Beta tester
 
Join Date: Jul 2005
Location: California
Posts: 533
Reputation: 141
You got it! (outsite your main htdocs folder works fine)
KitBear is offline   Reply With Quote
Old 11-6-09, 01:44 AM   #11
BikiniDUck
Registered
 
Join Date: Jan 2008
Location: Minnesota
Posts: 25
Reputation: 0
Success! Relocated the file path and the error went away.

Thanks for the help!
BikiniDUck is offline   Reply With Quote
Old 11-6-09, 03:59 PM   #12
KitBear
Beta tester
 
Join Date: Jul 2005
Location: California
Posts: 533
Reputation: 141
You're welcome.

Check the contents of your sessions folder in a few days. If garbage collection is not automatically happening, you can create a cron job to delete the old session files automatically.
KitBear is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 01:59 AM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.