1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can not create PDF on live board, works on home install

Discussion in 'XenForo Development Discussions' started by Marcus, Dec 2, 2013.

  1. Marcus

    Marcus Well-Known Member

    This works great on my home install, but I get an error message on my live board with 1GB assigned in both config.php as well as APC:

    header("Content-Disposition: inline; filename=orders.pdf");
    header("Content-type: application/x-pdf");
    $pdf = new Zend_Pdf();
    $page1 $pdf->newPage();
    $page1->setFont(Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA), 10);
    $page1->drawText('Hello World'590'UTF-8');
    $pdf->pages[] = $page1;


    ErrorExceptionFatal Errormain(): Failed opening required 'Zend/Memory/Manager.php' (include_path='/home/nginx/domains/xxxx/public/library:.:.:/usr/local/lib/php') - library/Zend/Memory.php:23

    #0 [internal function]: XenForo_Application::handleFatalError()
    #1 {main}
    Last edited: Dec 2, 2013
  2. Marcus

    Marcus Well-Known Member

    edit: looks like I didnt install the pdf extension for php
  3. Marcus

    Marcus Well-Known Member

    No its not my pdf extension from php. The PDF function is working, and I can output $pdf. However with the error mentioned in my #1 post, the saved pdf is empty whereas on my home installation the pdf is saved fine. Any ideas?
  4. Marcus

    Marcus Well-Known Member

    I solved the problem: There were missing Zend components which had to be installed. It works fine now.
    AndyB likes this.

Share This Page