How to catch this low level MySQL (?) error in PHP/Magento
- by andnil
When I'm executing the following statement in Magento with a really large $sku, the execution terminates without any errors thrown what so ever. There are no errors in either Magento's, Apache's or PHP's error logs.
Mage::getModel('catalog/product')-loadByAttribute('sku', $sku);
Question: How do I catch the error?
I've tried to set custom…