0

I'm trying to print an array to a log file in magento however it is getting hung up on submitting order information....

Mage::log($arr, null, 'logfile.log');

Any ideas?

3

2 Answers 2

1

Try to use var_export

Mage::log(var_export($arr, true), null, 'logfile.log');
2
  • same thing. it just says submitting order info then shows the button again without submitting it. when i comment out the line it submits the order. Dec 10, 2013 at 20:58
  • @user2570937. Check your browser console (F12 in FF). Check the response there, too. May be you will see some error.
    – freento
    Dec 10, 2013 at 22:10
0

Following print the entire array in to MyArray.log

 Mage::log("Query Order: ".print_r($order->debug(), true),null,'MyArray.log');

MyArray.log can be found in

  var/log/MyArray.log

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.