我的Magento 1.6.2上有问题
当我在另一端的后端制作基本货物时,一切运作良好。
但是当我想添加一个跟踪号码时,我点击发送magento会显示一个白色的屏幕。 Firebug说:500内部服务器错误
白屏的网址: /index.php/admin/sales_order_shipment/save/order_id/293/key/KEYNUMBER /
任何人都可以帮助我吗? 因为我也想用这个未来......
更新: 错误日志:
PHP Fatal error: Call to a member function getStoreId() on a non-object in /var/www/vhosts/liefstoereigenwijs.nl/magento-test/app/code/community/Vianetz/AdvancedInvoiceLayout/Model/Order/Pdf/Shipment.php on line 24
PHP Warning: spl_autoload(): open_basedir restriction in effect. File(mage.inc) is not within the allowed path(s): (/var/www/vhosts/liefstoereigenwijs.nl/:/tmp/) in /var/www/vhosts/liefstoereigenwijs.nl/magento-test/app/code/core/Mage/Core/functions.php on line 244
PHP Warning: spl_autoload(): open_basedir restriction in effect. File(mage.php) is not within the allowed path(s): (/var/www/vhosts/liefstoereigenwijs.nl/:/tmp/) in /var/www/vhosts/liefstoereigenwijs.nl/magento-test/app/code/core/Mage/Core/functions.php on line 244
PHP Fatal error: Class 'Mage' not found in /var/www/vhosts/liefstoereigenwijs.nl/magento-test/app/code/core/Mage/Core/functions.php on line 0
高级发票布局文件的一部分:
<?php
/**
* AdvancedInvoiceLayout Order Shipment PDF model
*
* @category Vianetz
* @package Vianetz_AdvancedInvoiceLayout
* @author Christoph Massmann <C.Massmann@vianetz.com>
* @license http://www.vianetz.com/license
*/
class Vianetz_AdvancedInvoiceLayout_Model_Order_Pdf_Shipment extends Vianetz_AdvancedInvoiceLayout_Model_Order_Pdf_Abstract
{
public function getPdf($shipments = array())
{
$this->_beforeGetPdf();
$this->_initRenderer('shipment');
$this->pdf = new Zend_Pdf();
$style = new Zend_Pdf_Style();
$this->_setFontBold($style, 10);
foreach ($shipments as $shipment) {
if ($shipment->getStoreId()) {
Mage::app()->getLocale()->emulate($shipment->getStoreId());
Mage::app()->setCurrentStore($invoice->getStoreId());
}
$this->page = $this->_newPage($this->pdf, $shipment->getStore());
$order = $shipment->getOrder();
Mage::helper('advancedinvoicelayout')->loadConfig($this, $shipment->getStore());
第24行是:
Mage::app()->setCurrentStore($invoice->getStoreId());
谁能告诉我出了什么问题?
答案 0 :(得分:0)
PHP内存不足Magento requires at least 256MB。通过创建然后查看说明:
的PHP文件来检查当前配置的内容<?php phpinfo();
Magento的默认.htaccess文件将内存限制设置为256MB。如果这没有生效,那么你需要修改服务器的php.ini文件。如果限制是正确的,那么尝试增加一点。
答案 1 :(得分:0)
我已经在Vianetz提交了一份错误报告。 谢谢大家帮助我朝着正确的方向前进。