magento管理员打印页面出错

时间:2015-08-05 06:32:37

标签: php magento

我在magento的电子商务网站上开发

当我在magento invoice admin页面中单击打印按钮时,会发生错误

    Table offset (1445424) not within expected range

Trace:
#0 /var/www/ecommerce/lib/Zend/Pdf/Font.php(615): Zend_Pdf_Font::_extractTrueTypeFont(Object(Zend_Pdf_FileParserDataSource_File), 0)
#1 /var/www/ecommerce/app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php(807): Zend_Pdf_Font::fontWithPath('/var/www/ecommerce/l...')
#2 /var/www/ecommerce/app/code/core/Mage/Sales/Model/Order/Pdf/Invoice.php(113): Mage_Sales_Model_Order_Pdf_Abstract->_setFontBold(Object(Zend_Pdf_Style), 10)
#3 /var/www/ecommerce/app/code/core/Mage/Adminhtml/Controller/Sales/Invoice.php(119): Mage_Sales_Model_Order_Pdf_Invoice->getPdf(Array)
#4 /var/www/ecommerce/app/code/core/Mage/Adminhtml/controllers/Sales/Order/InvoiceController.php(489): Mage_Adminhtml_Controller_Sales_Invoice->printAction()
#5 /var/www/ecommerce/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_Sales_Order_InvoiceController->printAction()
#6 /var/www/ecommerce/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('print')
#7 /var/www/ecommerce/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#8 /var/www/ecommerce/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#9 /var/www/ecommerce/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#10 /var/www/ecommerce/index.php(95): Mage::run('', 'store')
#11 {main}

如何解决此问题?

请帮帮我

2 个答案:

答案 0 :(得分:1)

这对我有用!!

  

在PHP 5.4及更高版本的Magento安装上,这个bug似乎正在发生。

Change 

抽象公共函数__construct();

to

抽象公共函数__construct($ filePath);

答案 1 :(得分:0)

遇到同样的问题,对我来说修复就是重新上传lib /里面的所有字体,这些字体已经被破坏了。