the following statement expires my page in the class when saving shipment. the statment is:
Expires in this class when the shipment is saved and try to send email to the customer
class Mage_Sales_Model_Order_Shipment extends Mage_Sales_Model_Abstract
I want to debug why it is expiring my page. Where is the definition of the function or any other way to display the error message?
EDIT: When I am trying to create shipment for an order, the page throws this error:
This request takes too long to process, it is timed out by the server. If it should not be timed out, please contact administrator of this web site to increase 'Connection Timeout'."
When I Investigate the problem by exploring the code, I reach $mailer->send();, the issue is not of the php max time expire, it always display this message on the same statement for some orders. I logged the timing also but the timing is not the issue. It expires on the same statement again and again also the email is not sending to the customer.
This issue appears for amazon orders only.