Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/282.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 事务性电子邮件停止工作-Magento_Php_Email_Magento_Cron - Fatal编程技术网

Php 事务性电子邮件停止工作-Magento

Php 事务性电子邮件停止工作-Magento,php,email,magento,cron,Php,Email,Magento,Cron,我是新来的。 去年,我的网站运行良好,本周我做了两项更改: 1.-创建新的店铺视图 -更新我的主机 之后,所有magento电子邮件停止发送。 电子邮件帐户定义良好 模板位于正确的文件夹中 我安装了AOE调度程序,一切似乎都很好: 如果我检查数据库中的“core\u email\u queue”表,则正确创建条目 五分钟后就“处理完毕” 我还尝试直接发送带有以下代码的电子邮件: <?php ini_set( 'display_errors', 1 ); erro

我是新来的。 去年,我的网站运行良好,本周我做了两项更改: 1.-创建新的店铺视图 -更新我的主机 之后,所有magento电子邮件停止发送。 电子邮件帐户定义良好 模板位于正确的文件夹中

我安装了AOE调度程序,一切似乎都很好: 如果我检查数据库中的“core\u email\u queue”表,则正确创建条目 五分钟后就“处理完毕”

我还尝试直接发送带有以下代码的电子邮件:

    <?php 
    ini_set( 'display_errors', 1 );
    error_reporting( E_ALL );
    $from = "x@gmail.com";
    $to = "x@gmail.com";
    $subject = "PHP Mail Test script";
    $message = "This is a test to check the PHP Mail functionality";
    $headers = "From:" . $from;
    mail($to,$subject,$message, $headers);
    echo "Test email sent";
?>
系统日志

2017-01-31T21:59:49+00:00 ERR (3): Warning: simplexml_load_string(): (null)Entity: line 2: parser error : out of memory error  in /home/oo1lu856/public_html/lib/Varien/Simplexml/Config.php on line 383
2017-01-31T21:59:49+00:00 ERR (3): Warning: simplexml_load_string(): tem&gt;*&lt;/to_order_item&gt;&lt;/weee_tax_applied&gt;&lt;weee_tax_applied_amount&gt;&lt;to_order_item&gt;  in /home/oo1lu856/public_html/lib/Varien/Simplexml/Config.php on line 383
2017-01-31T21:59:49+00:00 ERR (3): Warning: simplexml_load_string():                                                                                ^  in /home/oo1lu856/public_html/lib/Varien/Simplexml/Config.php on line 383
2017-01-31T21:59:49+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 2: parser error : xmlSAX2Characters  in /home/oo1lu856/public_html/lib/Varien/Simplexml/Config.php on line 383
2017-01-31T21:59:49+00:00 ERR (3): Warning: simplexml_load_string(): tem&gt;*&lt;/to_order_item&gt;&lt;/weee_tax_applied&gt;&lt;weee_tax_applied_amount&gt;&lt;to_order_item&gt;  in /home/oo1lu856/public_html/lib/Varien/Simplexml/Config.php on line 383
2017-01-31T21:59:49+00:00 ERR (3): Warning: simplexml_load_string():
通过避免cron来解决。 似乎在续订时,托管服务器已更改,不允许运行cron.sh 由于我的magento商店的数量太少,托管提供商只提供了一个专用服务器。因此,我通过编辑避免订单电子邮件排队:

/app/code/core/Mage/Core/Model/Email/Template.php Line:407(approximate) 

/*if (!($this->hasQueue() && $this->getQueue() instanceof Mage_Core_Model_Email_Queue)) {
    ## @var $emailQueue Mage_Core_Model_Email_Queue 
    $emailQueue = $this->getQueue();
    $emailQueue->setMessageBody($text);
    $emailQueue->setMessageParameters(array(
    'subject'           => $subject,
    'return_path_email' => $returnPathEmail,
    'is_plain'          => $this->isPlain(),
    'from_email'        => $this->getSenderEmail(),
    'from_name'         => $this->getSenderName(),
    'reply_to'          => $this->getMail()->getReplyTo(),
    'return_to'         => $this->getMail()->getReturnPath(),
    ))
    ->addRecipients($emails, $names, Mage_Core_Model_Email_Queue::EMAIL_TYPE_TO)
    ->addRecipients($this->_bccEmails, array(), Mage_Core_Model_Email_Queue::EMAIL_TYPE_BCC);
    $emailQueue->addMessageToQueue();

    return true;
}*/
不要编辑核心文件,请在以下路径中创建一个新文件夹

/app/code/local/Mage/Core/Model/Email

并复制编辑的模板。php

是否检查magento日志???@pablote:这些是上次事务性电子邮件之后的相关日志:
/app/code/local/Mage/Core/Model/Email