我的 Magento 1.6.2 有问题
当我在另一个后端进行基本装运时,一切正常。
但是当我想添加一个跟踪号码并单击发送 magento 时会显示一个白屏。Firebug 说:500 内部服务器错误
白屏的url:/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());
谁能告诉我出了什么问题?