Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.



Recommended Posts

I got an error in mine admin/includes/functions/compability.php

I have a new oscommerce snapshot...so the "fix"


is already included in the file. This is the code:



// Recursively handle magic_quotes_gpc turned off.

// This is due to the possibility of have an array in

// $HTTP_xxx_VARS

// Ie, products attributes

function do_magic_quotes_gpc(&$ar) {

if (!is_array($ar)) return false;



while (list($key, $value) = each($ar)) {

if (is_array($ar[$key])) {


} else {

$ar[$key] = addslashes($value);






but i get an error like this:

Fatal error: Cannot redeclare do_magic_quotes_gpc() (previously declared in /home/alex/domains/xxxxx/public_html/shop/admin/includes/functions/compatibility.php:18) in /home/alex/domains/xxxxx/public_html/shop/admin/includes/functions/compatibility.php on line 30


How do i solve this.. i couldnt find much for it

Link to comment
Share on other sites

I am getting exactly the same error. Mine started after I changed the <div align="centre"> to <div align="left"> for the text "Your order has been processed etc...." ( how can changing a div statement cause a fatal error :'( ?)

I have tried copying up a new copy of the checkout_success.php file but I still get the same error. Orders are processed but I would like to know the fix please.



Link to comment
Share on other sites


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

  • Create New...