Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need help resolving prepend.php issue.


capink

Recommended Posts

Hi guys,

 

I'm new to oscommerce and need some help in resolving this issue.

I have most of my oscommerce configuration set up, but when I try my osCommerce I have the prepend.php warning messages on top of my page.

 

The error messages are as follows:

 

Warning: mkdir(D:\hshome\rwendi\tmp) [function.mkdir]: File exists in C:\HSphere.NET\3rdparty\PHP\4.4.6\prepend.php on line 24

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\HSphere.NET\3rdparty\PHP\4.4.6\prepend.php:24) in D:\hshome\rwendi\...\catalog\includes\functions\sessions.php on line 97

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\HSphere.NET\3rdparty\PHP\4.4.6\prepend.php:24) in D:\hshome\rwendi\...\catalog\includes\functions\sessions.php on line 97

 

Any help will be most appreciated.

 

Cheers,

 

 

Rendy W

Link to comment
Share on other sites

If you are using an RC version of osC try this;

*not sure it will work but you can try *

 

PS - osC works beter on a linux server

 

 

 

-------------------------------------------------------------------------------------------------------------------------------------------

"Warning: session_save_path() [function.session-save-path]: SAFE MODE"

-------------------------------------------------------------------------------------------------------------------------------------------

 

1) In catalog/includes/configure.php ensure that the last line is set to

 

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

2) In catalog/includes/functions/sessions.php find:

 

function tep_session_save_path($path = '') {

if (!empty($path)) {

return session_save_path($path);

} else {

return session_save_path();

}

}

 

Change to:

 

function tep_session_save_path($path = '') {

if (STORE_SESSIONS != 'mysql') { // added this line to turn off this checking if storing session info in db

if (!empty($path)) {

return session_save_path($path);

} else {

return session_save_path();

}

}

}

 

You can also apply the same fix to the admin section.

 

1) In catalog/admin/includes/configure.php ensure that the last line is set to

 

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

2) In catalog/admin/includes/functions/sessions.php find:

 

function tep_session_save_path($path = '') {

if ($path != '') {

return session_save_path($path);

} else {

return session_save_path();

}

}

 

Change to:

 

function tep_session_save_path($path = '') {

if (STORE_SESSIONS != 'mysql') { // added this line to turn off this checking if storing session info in db

if ($path != '') {

return session_save_path($path);

} else {

return session_save_path();

}

}

}

Link to comment
Share on other sites

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\HSphere.NET\3rdparty\PHP\4.4.6\prepend.php:24) in D:\hshome\rwendi\...\catalog\includes\functions\sessions.php on line 97

 

the 'headers already sent' message appears when part of your code as already output some html to the browser before the code at sessions.php line 97 had a chance to send http headers to the browser. this can happen if there is whitespace before the <?php tag or after the ending ?> tag. if you've made some changes to php code files, double check those for whitespace.

 

this is simple to fix but sometimes hard to track down exactly where the problem is.

Link to comment
Share on other sites

Hi guys,

 

Thanks for all the helps.

 

I've already identified what the problem is. It seems like everytime I use my FTP sub-account, the prepend issue occurs. But, if I use my primary FTP account, everything works fine. Interesting, isn't it...

 

Cheers,

 

 

Rendy W

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...