Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error message at the top of the page


jasper2002

Recommended Posts

Posted

Hi,

 

I keep getting this error message at the top of the page and the shop won't process add to basket requests or logins,

 

// handle magic_quotes_gpc turned off.

Warning: Cannot send session cookie - headers already sent by (output started at C:apachehtdocscatalogincludesfunctionscompatibility.php:2) in C:apachehtdocscatalogincludesfunctionssessions.php on line 4

 

Warning: Cannot send session cache limiter - headers already sent (output started at C:apachehtdocscatalogincludesfunctionscompatibility.php:2) in C:apachehtdocscatalogincludesfunctionssessions.php on line 4

 

I'm sure it is a configuration thing.

 

Can anyone help?

 

Thanks

 

Jason

Posted

The setting is in php.ini.... if you are with a hosting company you must ask the support admin to change this setting to 'on':

 

magic_quotes_gpc	=	On

Posted

when they don't want to do that...

 

i believe you could also put it in a .htaccess file in your documentroot.

 

good luck, zlack

It's easier to remember, then to forget

Posted

There is another fix for this that works first time.

 

If you go into configuration.php and look for the if statment on the second line you'll see that it is commented out.

 

move the if statement out of the comment to the next line and it fixes this problem.

 

Thanks for your help though.

 

Jason

Archived

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

×
×
  • Create New...