PDF Invoice error

Discussion in 'aMember Pro v.4' started by bcarr, Mar 26, 2012.

  1. bcarr

    bcarr New Member

    Joined:
    Feb 10, 2012
    Messages:
    2
    When someone logs in and views their payment history, if they click on 'Invoice' under PDF invoice, they are seeing this error message:

    An Error has occured

    An internal error happened in the script, please contact webmaster for details

    Please contact webmaster:

    I have PDF invoice enabled in the Admin, how do I correct this issue so members will be able to view/download their PDF invoice?
  2. spicyniknaks

    spicyniknaks New Member

    Joined:
    Feb 27, 2012
    Messages:
    20
    Have you checked the Logs in the Utilities section to see if it says what the error is ?
  3. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    I also received this error and it seems that the Zend system cannot handle the newer versions of PDF. Worked perfectly when the PDF template file was saved as 'Compatable with Acrobat Version 4'

    Error log said: Cross-reference streams are not supported yet.

    Which when expanded was
    Exception Zend_Pdf_Exception
    Zend_Pdf_Parser->_loadXRefTable [ library/Zend/Pdf_Pack.php : 132 ]
    Zend_Pdf_Parser->__construct [ library/Zend/Pdf_Pack.php : 108 ]
    Zend_Pdf->__construct [ library/Zend/Pdf_Pack.php : 108 ]
    Zend_Pdf::load [ library/Am/Pdf/Invoice.php : 107 ]
    Am_Pdf_Invoice->createPdfTemplate [ library/Am/Pdf/Invoice.php : 148 ]
    Am_Pdf_Invoice->render [ application/default/controllers/MemberController.php : 144 ]
    MemberController->getInvoiceAction [ 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 : 1377 ]
    Am_App->run [ index.php : 41 ]

Share This Page