Почта заказа не отправляется


Я использую Magento 1.9.2.2. Когда клиент размещает заказ, письмо с подтверждением не отправляется.

Мой раздел Коммерческие электронные письма выглядит так, как показано ниже

enter image description here

Я установил это (https://www.magentocommerce.com/magento-connect/aoe-scheduler.html ) Расширение для Cron. Ниже приведен скриншот этого расширения

enter image description here

Ниже приведен скриншот Системного Cron вкладка.

enter image description here

Ниже приведен снимок экрана core_email_queue таблицы базы данных

enter image description here

Ниже приведен снимок экрана Cron настройки моего сервера

enter image description here

Cron запущен. Я получаю уведомление, когда запускается cron. Может ли кто-нибудь помочь мне в этом отношении??

Обновление

Я нашел ниже коды в файле .htaccess.

###########################################
## Deny access to cron.php
    <Files cron.php>

############################################
## uncomment next lines to enable cron access with base HTTP authorization
## http://httpd.apache.org/docs/2.2/howto/auth.html
##
## Warning: .htpasswd file should be placed somewhere not accessible from the web.
## This is so that folks cannot download the password file.
## For example, if your documents are served out of /usr/local/apache/htdocs
## you might want to put the password file(s) in /usr/local/apache/.

        #AuthName "Cron auth"
        #AuthUserFile ../.htpasswd
        #AuthType basic
        #Require valid-user

############################################

        Order allow,deny
        Deny from all

    </Files>

2 answers

Прокомментируйте следующие две строки в .htaccess

    <Files cron.php>

############################################
## uncomment next lines to enable cron access with base HTTP authorization
## http://httpd.apache.org/docs/2.2/howto/auth.html
##
## Warning: .htpasswd file should be placed somewhere not accessible from the web.
## This is so that folks cannot download the password file.
## For example, if your documents are served out of /usr/local/apache/htdocs
## you might want to put the password file(s) in /usr/local/apache/.

        #AuthName "Cron auth"
        #AuthUserFile ../.htpasswd
        #AuthType basic
        #Require valid-user

############################################

        #Order allow,deny
        #Deny from all

    </Files>

Замените код этим. потому что .htacess не разрешает cron и доступ запрещен из этого кода.

Попробуйте выполнить эту команду в cpanel в cron

wget -q -O /dev/null http://www.example.com/cron.php

Я надеюсь, что это поможет вам.

 2
Author: Denish Vachhani, 2016-04-30 09:08:07

Вы используете curl для вызова файла оболочки. Это невозможно (обычно)

Либо

  • Пусть curl вызовет cron.php и раскомментируйте блок в htaccess (и добавьте разрешить только для локального хоста)
  • Или установите cron так, чтобы она выполняла cron.файл sh напрямую

    • или позвольте php вызвать файл напрямую (например, php -f/pathtofile/cron.php ) и установите это как команду в cron

Должен решить задачу cron для запуска

 0
Author: snh_nl, 2016-05-01 14:53:00