Archive: getmessage

 

Posts Tagged ‘getmessage’


I was trying to create a new product but some weird problem happened and it simply gave me this error: Invalid data given. Details in error message. Which was generated by $e -> getMessage() from this snippet: try { $result = $proxy -> call($sessionId, $api, $parameters); return $result; } catch (SoapFault $e) { echo ‘<p [...]



 

If you have ever come across such error during checkout process on Magento, here is how you can On your development server: Navigate to /app/code/core/Mage/Checkout/controllers/OnepageController.php Search for and replace $result[’error’] = $this->__(’Unable to set Payment Method.’); With $result[’error’] = $e->getMessage(); Try the process again and this time you should see what exactly has gone bananas! [...]



 

In Magento I write a number of small command line scripts to do things like set a new attribute on a number of products. I am finding that the time it takes to update 900 products takes about 6 hours to complete. The time it takes to load the individual products goes as fast as [...]