Skip to main content
2 of 4
deleted 2 characters in body
sv3n
  • 11.7k
  • 7
  • 41
  • 73

The object $items is just to large to log ... so it breaks the observer method and last method is not reached. Try this instead:

public function newOrder(Varien_Event_Observer $observer)
{
    $order = $observer->getOrder();
    Mage::log(array_keys($order->getData()), null, 'new-order.log');
    Mage::log($order->getData('your_key'), null, 'new-order.log');
    Mage::log(get_class_methods($order), null, 'new-order.log');
}

Same for $items.

You can also use:

Mage::log($items->debug(), null, 'new-order.log');
sv3n
  • 11.7k
  • 7
  • 41
  • 73