【发布时间】:2012-09-28 18:12:03
【问题描述】:
我的 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());
谁能告诉我怎么了?
【问题讨论】:
-
500 服务器错误意味着有一个致命的 PHP 阻止了请求完成。检查您的服务器日志。
-
这是一个商业扩展,因此您应该联系作者 (Vianetz) 并报告错误。 Stack Overflow 无权修复专有代码。此外它在使用之前显然没有分配
$invoice,它已经坏了。
标签: php magento internal-server-error