Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to correct these errors ?


gemmanga

Recommended Posts

Hello.. I'm a newbie here and I had just recently installed oscommerce software.

I have no background on PHP or SQL, I only know html language, that's why it's a little bit difficult for me.

 

The installation went well and now I can access both the catalog and admin page.

But i got some problems.

On the top of index page, I got lots of warning messages :

 

Warning: session_start(): open(/tmp\sess_2d8046dae2e50a9150de2c76a108c076, O_RDWR) failed: No such file or directory (2) in c:\appserv\www\osc\catalog\includes\functions\sessions.php on line 67

 

Warning: Installation directory exists at: c:/appserv/www/osc/catalog/install. Please remove this directory for security reasons. [This is the only error that I can correct.. I've already removed the install directory.]

 

Warning: I am able to write to the configuration file: c:/appserv/www/osc/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

 

Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created.

 

 

And on the bottom of the page, there are also error messages :

 

Warning: session_write_close(): open(/tmp\sess_2d8046dae2e50a9150de2c76a108c076, O_RDWR) failed: No such file or directory (2) in c:\appserv\www\osc\catalog\includes\functions\sessions.php on line 106

 

Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in c:\appserv\www\osc\catalog\includes\functions\sessions.php on line 106

 

 

It says that I should correct them first before proceeding but I have no idea how to do it. It would be a great help if someone can help me with this technical problem. Thanks !

Link to comment
Share on other sites

Hello.. I'm a newbie here and I had just recently installed oscommerce software.

I have no background on PHP or SQL, I only know html language, that's why it's a little bit difficult for me.

 

The installation went well and now I can access both the catalog and admin page.

But i got some problems.

On the top of index page, I got lots of warning messages :

 

Warning: session_start(): open(/tmp\sess_2d8046dae2e50a9150de2c76a108c076, O_RDWR) failed: No such file or directory (2) in c:\appserv\www\osc\catalog\includes\functions\sessions.php on line 67

 

Warning: Installation directory exists at: c:/appserv/www/osc/catalog/install. Please remove this directory for security reasons. [This is the only error that I can correct.. I've already removed the install directory.]

 

Warning: I am able to write to the configuration file: c:/appserv/www/osc/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

 

Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created.

And on the bottom of the page, there are also error messages :

 

Warning: session_write_close(): open(/tmp\sess_2d8046dae2e50a9150de2c76a108c076, O_RDWR) failed: No such file or directory (2) in c:\appserv\www\osc\catalog\includes\functions\sessions.php on line 106

 

Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in c:\appserv\www\osc\catalog\includes\functions\sessions.php on line 106

It says that I should correct them first before proceeding but I have no idea how to do it. It would be a great help if someone can help me with this technical problem. Thanks !

look at the url and you will understand where the problem is.

your url has a back slash.

As you installed oscommerce on your pc with windows operating system. and using the windows server soft. a good thing to do is to read the help file in your windows in regard to setting up your server and permission.

easy way is to run the permision wizard.

oscommerce needs a tmp folder on the main root to be used to handle seassons.

good Luck

Remember - - - "STRESSED" spelled backwards "DESSERTS"

Link to comment
Share on other sites

look at the url and you will understand where the problem is.

your url has a back slash.

As you installed oscommerce on your pc with windows operating system. and using the windows server soft. a good thing to do is to read the help file in your windows in regard to setting up your server and permission.

easy way is to run the permision wizard.

oscommerce needs a tmp folder on the main root to be used to handle seassons.

good Luck

 

 

for the server i use apache, not windows server soft..

 

im workin on it but still got no clue..

Link to comment
Share on other sites

At the bottom of both your configure.php files you can set:

 

 ?define('STORE_SESSIONS', 'mysql');

 

Matti

 

wow thanx a lot Matti.. it turns out to be an easy problem.... :D

I have read another thread bout this... he told me to set the store sessions to mysql but didnt tell me how to set it. Now by looking at the code, i know exactly where to set it.

 

now i still get one error message :

 

Warning: I am able to write to the configuration file: c:/appserv/www/osc/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

 

how to correct this one?

 

thanksss :thumbsup:

Link to comment
Share on other sites

If you are running this store on your computer just to set it up and test it, do not worry about the error. When you upload the site to your server you will change the file permissions which will make that error go away.

 

Not exactly sure how to change it on windows but maybe if you make the configure.php read only the error may go away. I never bother so not sure.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

Not exactly sure how to change it on windows but maybe if you make the configure.php read only the error may go away. I never bother so not sure.

 

This is correct - right click the file>>properties>>check the 'read only' box :P

 

Matti

Link to comment
Share on other sites

Thanks Matti :) Going to have to remember that it works like that for sure. lol

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

i see..

 

so when i'm running it on my comp, it wouldnt be a problem.

but when i upload it to the server, i have to change the file prop of configure.php to read only...

 

yayy i never thought that would be that easy.. ;)

 

thanx a lot...!! now i can workin on my store... thanx again..

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...