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

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:

PHP:
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', 5, 90, 'UTF-8');
$pdf->pages[] = $page1;

echo $pdf->render();

  break;
PHP:
ErrorException: Fatal Error: main(): 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:
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?
 
I solved the problem: There were missing Zend components which had to be installed. It works fine now.
 
Back
Top Bottom