Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help Needed


coolcl

Recommended Posts

Posted

Hi everyone,

 

This seems to be a good one. I have moved my osCommerce catalogs on a new dedicated server and I having an issue that nobody seems to be able to resolve at the hosting company.

 

I am getting this error message on the whos_online.php page;

 

Warning: file(/tmp/sess_d468bc0f7e1aa58e8d1037b4efb8e964): failed to open stream: Permission denied in /home/secured/public_html/shopnature/admin/whos_online.php on line 244

 

Warning: implode(): Bad arguments. in /home/secured/public_html/shopnature/admin/whos_online.php on line 245

 

This message appears when I visit the site my self "me" or someone does a research, or when customers put thing in there cart which I don't see the content.

 

This is all new stuff. I never had any problems like this on a shared hosting.

So if anyone understands what this is about, please tell me and I will forward that to my "specialists"

 

Thanks to all the guru?s for this great software and happy holydays to all ...

 

 

cl

Posted

I haven't seen the second error before. You might need to post more information on that one.

 

The first one is usually caused by permissions problems. It sounds like you're saying it's an intermittent error, so there might be something else going on. It looks like PHP is not able to write to the tmp directory, and hence cannot open it. You can solve this several ways: make the session dir somewhere in your web root so PHP can write to it, get your host to make sure PHP can write to the tmp dir, or store sessions in the mysql database. Edit includes/configure.php and admin/includes/configure.php:

 

define('STORE_SESSIONS', 'mysql');

 

Normally saving session information in a file is inadvisable on shared servers (as they can sometimes be accessed by other customers with access to the server) but on a dedicated server you can do it.

Contributions

 

Discount Coupon Codes

Donations

Posted
I haven't seen the second error before. You might need to post more information on that one.

 

The first one is usually caused by permissions problems. It sounds like you're saying it's an intermittent error, so there might be something else going on. It looks like PHP is not able to write to the tmp directory, and hence cannot open it. You can solve this several ways: make the session dir somewhere in your web root so PHP can write to it, get your host to make sure PHP can write to the tmp dir, or store sessions in the mysql database. Edit includes/configure.php and admin/includes/configure.php:

 

define('STORE_SESSIONS', 'mysql');

 

Normally saving session information in a file is inadvisable on shared servers (as they can sometimes be accessed by other customers with access to the server) but on a dedicated server you can do it.

 

 

I just forward your comment,

 

Big Thanks,

 

cl

Posted

Carol,

 

Sessions can be stored in the database or in files. My guess is that you had sessions stored in files. When you switched servers, the new server didn't have a sessions folder created with the same path/name as the old server. Ergo, the error.

 

kgt's solution will fix it because it will put sessions in the mysql database. The other solution is to leave sessions in files and go into Admin->Configuration->Sessions and change the session folder declared there to one that exists on the new server.

 

ed

Posted
Carol,

 

Sessions can be stored in the database or in files. My guess is that you had sessions stored in files. When you switched servers, the new server didn't have a sessions folder created with the same path/name as the old server. Ergo, the error.

 

kgt's solution will fix it because it will put sessions in the mysql database. The other solution is to leave sessions in files and go into Admin->Configuration->Sessions and change the session folder declared there to one that exists on the new server.

 

ed

 

You should have seen that this morning, they had turned on the session auto_restart in the php.ini.

The catalog was crashing on opening, very good for sales.

I have sent them your comment and ask them to disable auto_restart and finally got the site back.

 

I have tried to store the session in mysql and it worked but I still had other errors like modules were not shown and some other stuff that didn't behaved properly. They was probably more misconfig.

 

It looks like they finally got there things together and it is now working fine.

 

Big thanks for your help, it is great to know that someone can provide a sound answer when you need it the most.

 

Carol,

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...