|
| Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more. |
|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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:
Code:
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-- |
|
|
|
|
|
#2 |
|
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 |
|
|
|
|
|
#3 |
|
Registered
Join Date: Jan 2008
Location: Minnesota
Posts: 25
Reputation: 0
|
I tried that but the error still continues
![]() |
|
|
|
|
|
#4 |
|
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:
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 |
|
|
|
|
|
#5 |
|
PowWeb Staff
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. |
|
|
|
|
|
#6 |
|
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. ![]() |
|
|
|
|
|
#7 |
|
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. |
|
|
|
|
|
#8 | |
|
Registered
Join Date: Jan 2008
Location: Minnesota
Posts: 25
Reputation: 0
|
Quote:
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? |
|
|
|
|
|
|
#9 |
|
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? |
|
|
|
|
|
#10 |
|
Beta tester
Join Date: Jul 2005
Location: California
Posts: 533
Reputation: 141
|
You got it! (outsite your main htdocs folder works fine)
|
|
|
|
|
|
#11 |
|
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! ![]() |
|
|
|
|
|
#12 |
|
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. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|