Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

problem after install on loacl sever


w.cheung

Recommended Posts

Posted

i've installed oscommerce on my pc but i cant access the admin page and these warnings comes up on top of the oscommerce page:

 

Warning: session_start() [function.session-start]: open(/tmp\sess_dacc5710bb973b806a9091c0bb0e05cf, O_RDWR) failed: No such file or directory (2) in c:\wamp\www\km\catalog\includes\functions\sessions.php on line 67

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at c:\wamp\www\km\catalog\includes\functions\sessions.php:67) in c:\wamp\www\km\catalog\includes\functions\sessions.php on line 67

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at c:\wamp\www\km\catalog\includes\functions\sessions.php:67) in c:\wamp\www\km\catalog\includes\functions\sessions.php on line 67

Warning: Installation directory exists at: c:/wamp/www/km/catalog/install. Please remove this directory for security reasons.

Warning: I am able to write to the configuration file: c:/wamp/www/km/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 i get this when i try and access the admin page:

Warning: session_start() [function.session-start]: open(/tmp\sess_2dcbd714b64ef3f9ef1150017e5bcd5c, O_RDWR) failed: No such file or directory (2) in c:\wamp\www\km\catalog\admin\includes\functions\sessions.php on line 67

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at c:\wamp\www\km\catalog\admin\includes\functions\sessions.php:67) in c:\wamp\www\km\catalog\admin\includes\functions\sessions.php on line 67

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at c:\wamp\www\km\catalog\admin\includes\functions\sessions.php:67) in c:\wamp\www\km\catalog\admin\includes\functions\sessions.php on line 67

 

Fatal error: Cannot re-assign $this in c:\wamp\www\km\catalog\admin\includes\classes\upload.php on line 31

 

Warning: Unknown: open(/tmp\sess_2dcbd714b64ef3f9ef1150017e5bcd5c, 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 (/tmp) in Unknown on line 0

 

 

how do i fix these problems

Posted

1. In includes/configure.php and admin/includes/configure.php, make sure the last line reads:

 

define('STORE_SESSIONS', 'mysql');

 

2. Using an FTP program, delete the directory called "install" and all the files contained within.

3. Edit admin/includes/classes/upload.php on line 31. Change

 

$this = null;

 

to

 

unset( $this );

Contributions

 

Discount Coupon Codes

Donations

Posted

Hi, although i am very new to all this I do have some good news.... well I hope!!! :)

 

After installing on my server running PHP5 i noticed multiple error reports appearing (please see fig.1)

 

 

Fig.1

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at c:\***********\CATALOG\admin\includes\functions\sessions.php:67) in c:\***********\CATALOG\admin\includes\functions\sessions.php on line 67

 

 

I recieve this on both my Admin page and on the Shop page (although slightly varied).

 

The good news is I appear to have fixed the problem by altering the code slightly in various places of the code.

 

I have tested the shop pages and everything appears to work 100%. I am currently working on the Admin area.

 

 

If anyone would like the relevant files and the changes mailing to them then please mail me.

 

 

Hope it all works.

 

P.S. The problem is due to many changes between PHP4 and PHP5.

Posted

Ok... in addition to my previous post. I have now solved all issues with the coding of the shop pages and the admin area.

 

I have tested the pages and everything appears to be ok.

 

Again all code is available by e-mail.

 

<Please note: I have NEVER touched php coding in my life so i am shocked to have solved the issue. lol.>

Posted

thanks to kgt most my probs has been sorted out but still one warning comes up at the top the the page.

 

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

 

how do i fix this

 

thanks

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

 

You need to set the Config.php file to read only. As I can see you are using a Windows based machine you can simply use explorer to find the file, right click it, goto properties, and set the file to Read Only.

 

This should solve that problem.

Archived

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

×
×
  • Create New...