Curl error: Failed writing header

Discussion in 'Troubleshooting' started by kenmoody, Jul 25, 2014.

  1. kenmoody

    kenmoody aMember Pro Customer

    Joined:
    Aug 21, 2012
    Messages:
    26
    Payments are not processing, users are receiving an error message when they attempt to process transaction.

    My AMember log file is filling with these messages. Any suggestions would be very much appreciated. Thanks!

    Curl error: Failed writing header
    Exception HTTP_Request2_MessageException
    HTTP_Request2_Adapter_Curl::wrapCurlError [ library/pear/HTTP/Request2/Adapter/Curl.php : 196 ]
    HTTP_Request2_Adapter_Curl->sendRequest [ library/pear/HTTP/Request2.php : 923 ]
    HTTP_Request2->send [ application/cc/library/Am/Paysystem/Transaction/CreditCard.php : 36 ]
    Am_Paysystem_Transaction_CreditCard->run [ application/cc/plugins/stripe.php : 227 ]
    Am_Controller_CreditCard_Stripe->ccFormAndSaveCustomer [ application/cc/plugins/stripe.php : 316 ]
    Am_Controller_CreditCard_Stripe->ccAction [ library/Am/Controller.php : 139 ]
    Am_Controller->_runAction [ library/Am/Controller.php : 116 ]
    Am_Controller->dispatch [ library/Zend/Controller/Action.php : 568 ]
    Zend_Controller_Action->run [ application/cc/library/Am/Paysystem/CreditCard.php : 107 ]
    Am_Paysystem_CreditCard->ccAction [ application/cc/library/Am/Paysystem/CreditCard.php : 72 ]
    Am_Paysystem_CreditCard->directAction [ application/default/controllers/DirectController.php : 28 ]
    DirectController->__call [ library/Am/Controller.php : 118 ]
    Am_Controller->dispatch [ library/Zend/Controller/Dispatcher/Standard.php : 295 ]
    Zend_Controller_Dispatcher_Standard->dispatch [ library/Zend/Controller/Front.php : 954 ]
    Zend_Controller_Front->dispatch [ library/Am/App.php : 1950 ]
    Am_App->run [ index.php : 43 ]

    Invalid argument: $pages must be an array, an instance of Zend_Config or an instance of Zend_Navigation_Container
    Exception Zend_Navigation_Exception
    Zend_Navigation_Container->addPages [ library/Zend/Navigation/Container.php : 187 ]
    Zend_Navigation_Container->setPages [ library/Zend/Navigation/Page.php : 944 ]
    Zend_Navigation_Page->set [ library/Zend/Navigation/Page.php : 321 ]
    Zend_Navigation_Page->setOptions [ library/Zend/Navigation/Page.php : 276 ]
    Zend_Navigation_Page->__construct [ library/Zend/Navigation/Page.php : 255 ]
    Zend_Navigation_Page::factory [ library/Zend/Navigation/Container.php : 117 ]
    Zend_Navigation_Container->addPage [ library/Am/Navigation/Admin.php : 157 ]
    Am_Navigation_Admin->addDefaultPages
    call_user_func_array [ library/sf/sfServiceContainerBuilder.php : 256 ]
    sfServiceContainerBuilder->createService [ library/sf/sfServiceContainerBuilder.php : 85 ]
    sfServiceContainerBuilder->getService [ library/Am/Di.php : 303 ]
    Am_Di->getService [ library/sf/sfServiceContainer.php : 276 ]
    sfServiceContainer->__get [ application/default/views/admin/_menu.phtml : 4 ]
    include [ application/default/views/admin/layout.phtml : 85 ]
    include [ library/Am/View.php : 429 ]
    Am_View->_run [ library/Zend/View/Abstract.php : 888 ]
    Zend_View_Abstract->render [ library/Am/View.php : 411 ]
    Am_View->display [ application/default/controllers/AdminUpgradeController.php : 749 ]
    AdminUpgradeController->loadUpgradesList [ application/default/controllers/AdminUpgradeController.php : 317 ]
    AdminUpgradeController->checkAction [ library/Am/Controller.php : 139 ]
    Am_Controller->_runAction [ library/Am/Controller.php : 116 ]
    Am_Controller->dispatch [ library/Zend/Controller/Dispatcher/Standard.php : 295 ]
    Zend_Controller_Dispatcher_Standard->dispatch [ library/Zend/Controller/Front.php : 954 ]
    Zend_Controller_Front->dispatch [ library/Am/App.php : 1950 ]
    Am_App->run [ index.php : 43 ]
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    Ken,
    It is very weir problem. Seems to be a bug with curl library which your hosting has installed. Anyway, I applied a fix on your installation.
  3. eric_amemberpro

    eric_amemberpro New Member

    Joined:
    Aug 3, 2014
    Messages:
    5
    My client has the same issue, same error messages. Please advise.
  4. eric_amemberpro

    eric_amemberpro New Member

    Joined:
    Aug 3, 2014
    Messages:
    5
    Please refer to the error messages:

    Invalid argument: $pages must be an array, an instance of Zend_Config or an instance of Zend_Navigation_Container

    Exception Zend_Navigation_Exception
    Zend_Navigation_Container->addPages [ library/Zend/Navigation/Container.php : 187 ]
    Zend_Navigation_Container->setPages [ library/Zend/Navigation/Page.php : 944 ]
    Zend_Navigation_Page->set [ library/Zend/Navigation/Page.php : 321 ]
    Zend_Navigation_Page->setOptions [ library/Zend/Navigation/Page.php : 276 ]
    Zend_Navigation_Page->__construct [ library/Zend/Navigation/Page.php : 255 ]
    Zend_Navigation_Page::factory [ library/Zend/Navigation/Container.php : 117 ]
    Zend_Navigation_Container->addPage [ library/Am/Navigation/Admin.php : 157 ]
    Am_Navigation_Admin->addDefaultPages
    call_user_func_array [ library/sf/sfServiceContainerBuilder.php : 256 ]
    sfServiceContainerBuilder->createService [ library/sf/sfServiceContainerBuilder.php : 85 ]
    sfServiceContainerBuilder->getService [ library/Am/Di.php : 303 ]
    Am_Di->getService [ library/sf/sfServiceContainer.php : 276 ]
    sfServiceContainer->__get [ application/default/views/admin/_menu.phtml : 4 ]
    include [ application/default/views/admin/layout.phtml : 85 ]
    include [ library/Am/View.php : 429 ]
    Am_View->_run [ library/Zend/View/Abstract.php : 888 ]
    Zend_View_Abstract->render [ library/Am/View.php : 411 ]
    Am_View->display [ application/default/controllers/AdminUpgradeController.php : 749 ]
    AdminUpgradeController->loadUpgradesList [ application/default/controllers/AdminUpgradeController.php : 317 ]
    AdminUpgradeController->checkAction [ library/Am/Controller.php : 139 ]
    Am_Controller->_runAction [ library/Am/Controller.php : 116 ]
    Am_Controller->dispatch [ library/Zend/Controller/Dispatcher/Standard.php : 295 ]
    Zend_Controller_Dispatcher_Standard->dispatch [ library/Zend/Controller/Front.php : 954 ]
    Zend_Controller_Front->dispatch [ library/Am/App.php : 1950 ]
    Am_App->run [ index.php : 43 ]

    Curl error: Failed writing header

    Exception HTTP_Request2_MessageException
    HTTP_Request2_Adapter_Curl::wrapCurlError [ library/pear/HTTP/Request2/Adapter/Curl.php : 196 ]
    HTTP_Request2_Adapter_Curl->sendRequest [ library/pear/HTTP/Request2.php : 923 ]
    HTTP_Request2->send [ library/Am/App.php : 1467 ]
    Am_Recaptcha->validate [ library/Am/Form/Brick.php : 1528 ]
    Am_Form_Brick_Recaptcha->validate
    call_user_func_array [ library/pear/HTML/QuickForm2/Rule/Callback.php : 101 ]
    HTML_QuickForm2_Rule_Callback->validateOwner [ library/pear/HTML/QuickForm2/Rule.php : 275 ]
    HTML_QuickForm2_Rule->validate [ library/pear/HTML/QuickForm2/Node.php : 647 ]
    HTML_QuickForm2_Node->validate [ library/pear/HTML/QuickForm2/Container.php : 420 ]
    HTML_QuickForm2_Container->validate [ library/pear/HTML/QuickForm2/Container.php : 418 ]
    HTML_QuickForm2_Container->validate [ library/pear/HTML/QuickForm2.php : 204 ]
    HTML_QuickForm2->validate [ library/pear/HTML/QuickForm2/Controller/Page.php : 253 ]
    HTML_QuickForm2_Controller_Page->storeValues [ library/pear/HTML/QuickForm2/Controller/Action/Next.php : 63 ]
    HTML_QuickForm2_Controller_Action_Next->perform [ library/pear/HTML/QuickForm2/Controller.php : 302 ]
    HTML_QuickForm2_Controller->handle [ library/pear/HTML/QuickForm2/Controller/Page.php : 155 ]
    HTML_QuickForm2_Controller_Page->handle [ library/Am/Form/Signup.php : 273 ]
    Am_Form_Signup_Page->handle [ library/pear/HTML/QuickForm2/Controller.php : 267 ]
    HTML_QuickForm2_Controller->run [ library/Am/Form/Signup.php : 121 ]
    Am_Form_Signup->run [ application/default/controllers/SignupController.php : 90 ]
    SignupController->indexAction [ library/Am/Controller.php : 139 ]
    Am_Controller->_runAction [ library/Am/Controller.php : 116 ]
    Am_Controller->dispatch [ library/Zend/Controller/Dispatcher/Standard.php : 295 ]
    Zend_Controller_Dispatcher_Standard->dispatch [ library/Zend/Controller/Front.php : 954 ]
    Zend_Controller_Front->dispatch [ library/Am/App.php : 1950 ]
    Am_App->run [ index.php : 43 ]

    I can provide FTP access if you want or you can also show the fix.

    Regards,
  5. eric_amemberpro

    eric_amemberpro New Member

    Joined:
    Aug 3, 2014
    Messages:
    5
    We are losing money daily. The error occurs during registration.
  6. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    Send in a support ticket then!!
  7. eric_amemberpro

    eric_amemberpro New Member

    Joined:
    Aug 3, 2014
    Messages:
    5
    I've created one and sent pm to Alex.
  8. eric_amemberpro

    eric_amemberpro New Member

    Joined:
    Aug 3, 2014
    Messages:
    5
    Issue fixed within minutes.

Share This Page