using paypal standard i am getting this error after someone makes a purchase
Fatal error: Call to a member function getAddressFormatted() on a non-object in /home/content/osc/includes/modules/payment/paypal_standard.php on line 522
i tried adding the lines
if (ONEPAGE_CHECKOUT_ENABLED == 'True'){
require('includes/classes/onepage_checkout.php');
}
before
/* One Page Checkout - BEGIN */
$sendToFormatted = tep_address_label($customer_id, $sendto, 0, '', "\n");
if (ONEPAGE_CHECKOUT_ENABLED == 'True'){
$sendToFormatted = $onePageCheckout->getAddressFormatted('sendto');
}
$billToFormatted = tep_address_label($customer_id, $billto, 0, '', "\n");
if (ONEPAGE_CHECKOUT_ENABLED == 'True'){
$billToFormatted = $onePageCheckout->getAddressFormatted('billto');
}
/* One Page Checkout - END */
but i get this error
Fatal error: Cannot redeclare class osC_onePageCheckout in /home/content/osc/includes/classes/onepage_checkout.php on line 2
please note that the order is saved in the osc admin area.
thanks