0

In Magento CE 1.9.1.0 I get this message in system.log right when the purchase is completed and the customer is taken to checkout/onepage/success/ (Payment via PayPal in sandbox mode, in case this matters):

ERR (3): Notice: Undefined offset: 1  in app/code/core/Mage/Sales/Model/Order.php on line 1258

Looking at the code in question I see

list($carrierCode, $method) = explode('_', $shippingMethod, 2);
return new Varien_Object(array(
            'carrier_code' => $carrierCode,
            'method'       => $method
        ));

How can I fix that?

1 Answer 1

1

I don't know if this will help you anymore as you've asked the question a long time ago, but it's a known magento bug and someone came up with a solution: http://wabism.com/magento-shipmethod-1-6-core-fix/

2
  • It doesn't seem to be happening any more, so I can't test this solution but thanks. Maybe someone could use your link.
    – george
    Commented May 21, 2015 at 9:19
  • link is deaad happening to me in m2 for one single product, no other products are affected... what was the solution? Commented Feb 24, 2020 at 22:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.