这是happning因为有您的邮件配置的问题。我有2点建议:
1.打开app/code/core/Mage/Adminhtml/Block/Sales/Order/View.php
行号92下面的代码替换代码:
if ($this->_isAllowedAction('emails') && !$order->isCanceled()) {
$confirmationMessage = $coreHelper->jsQuoteEscape(
Mage::helper('sales')->__('Are you sure you want to send order email to customer?')
);
$this->addButton('send_notification', array(
'label' => Mage::helper('sales')->__('Send Email'),
'onclick' => "confirmSetLocation('{$confirmationMessage}', '{$this->getEmailUrl()}')",
));
}
然后清除缓存,刷新页面,看看你的错误消失。
2.打开app/code/core/Mage/Adminhtml/Block/Sales/Order/View.php
在行号92,取消注释此代码,然后清除您的缓存, 刷新页面并检查您的错误是否消失。
第96行是什么? –
那么,[它不是核心代码!](https://github.com/OpenMage/magento-mirror/blob/magento-1.7/app/code/core/Mage/Adminhtml/Block/Sales/Order/View.php #L96) - 坏! **不要修改核心代码!!!!! ** –