Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Беды с опенкартом 3x


 Share

Recommended Posts

Прошу помощи. Есть тут пара проблем.
 
1. Проблемы с почтот. При регистрации пользователя появляется икая ошибка:
 
Fatal error: Uncaught Exception: Error: RCPT TO not accepted from server! in /home/*/public_html/*.ru/system/library/mail/smtp.php:259
Stack trace: #0 /home/*/public_html/*.ru/system/library/mail.php(142): Mail\Smtp->send() #1 /home/*/public_html/*.ru/catalog/controller/mail/register.php(44): Mail->send() #2 /home/*/public_html/storage*/modification/system/engine/action.php(79): ControllerMailRegister->index('account/custome...', Array, 6) #3 /home/*/public_html/*.ru/system/engine/event.php(62): Action->execute(Object(Registry), Array) #4 /home/*/public_html/storage*/modification/system/engine/loader.php(258): Event->trigger('model/account/c...', Array) #5 /home/*/public_html/*.ru/system/engine/proxy.php(47): Loader->{closure}(Array, Array) #6 /home/*/public_html/*.ru/catalog/controller/account/register.php(22): Proxy->__call('addCustomer', Array) #7 /home/*/public_html/storage*/modification/system/engine/action.php(79): ControllerAc in /home/*/public_html/*.ru/system/library/mail/smtp.php on line 259

 
 
В настройках все указано верно 100%. Пори разные пропотому чтовал. Логин и пароль верный. Выбранный способ SMTP, прописано все корректно.
 
При оформлении заказа оповеещёния приходят. При регистрации не в какую (
Последняя версия OC rs

 


2. При просмотре счеи, вот икая проблема:
Notice: Undefined variable: result in /home/*/public_html/*/modification/admin/controller/sale/order.php on line 1652

При просмотре лиси досивки икая ошибка:
Notice: Undefined variable: result in /home/*/public_html/*/modification/admin/controller/sale/order.php on line 1831

Сайт только только перевел на HTTPS (все строго по инструкции, везгде прописал HTTPS, htacces добавил все записи и перенаправление запросов с http на https.

Что может быть?

Edited by veweb
Link to comment
Share on other sites


1. По первому пункту. Поли синдартная вида [email protected] Не gmail. Порты пропотому чтовал разные, протокол tls и ssl, пароль точно верный, логин тоже. В чем-то другом беда

Link to comment
Share on other sites


Увелилил иймаут. Зарегистрироваться теперьь можно. Но сообещёния из админки (рассылка), не уходят. Ошибка 

Fatal error: Uncaught exception 'Exception' with message 'Error: DATA not accepted from server!'....
Link to comment
Share on other sites


Увелилил max_input_time. Теперь ошибка сменилась.

При отправке сообещёния из админки (маркетинг - поли), появляется просто окно Error.

В консоли ругается на jquery.

 

image.png.09b4d074da263e7eb132a747e603a796.png

Link to comment
Share on other sites


  • 3 weeks later...

Мож кому пригодится, я в модуле форм  обратной связи у себя дорилиил отправку почты.

 if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) {

            $this->forms_array['title'] = $this->request->post['title'];
            $mail = new Mail($this->config->get('config_mail_engine'));
            $mail->parameter = $this->config->get('config_mail_parameter');
            $mail->smtp_hostname = $this->config->get('config_mail_smtp_hostname');
            $mail->smtp_username = $this->config->get('config_mail_smtp_username');
            $mail->smtp_password = html_entity_decode($this->config->get('config_mail_smtp_password'), ENT_QUOTES, 'UTF-8');
            $mail->smtp_port = $this->config->get('config_mail_smtp_port');
            $mail->smtp_timeout = $this->config->get('config_mail_smtp_timeout');
            $email = $this->config->get('config_email');
            if ($this->request->post['form']) {
                foreach ($this->request->post['form'] as $k => $form) {
                     if ($form['type'] == 'email') {
                        $email = end($form);
                    }
                     if ($form['type'] != 'file') {
                         $this->forms_array['form'][$k]['title'] = $form['title'];
                         if (is_array(end($form))) {
                             $this->forms_array['form'][$k]['value'] = implode("; ", end($form));
                         } else {
                             $this->forms_array['form'][$k]['value'] = end($form);
                         }
                     }

                }
            }

            $mail->setTo($this->config->get('config_email'));
            if ($this->config->get('config_mail_engine') == 'mail') {
                $mail->setFrom($email);
            } else {
                $mail->setFrom($this->config->get('config_email'));
            }

            $mail->setReplyTo($email);
            $mail->setSender(html_entity_decode($email, ENT_QUOTES, 'UTF-8'));
            $mail->setSubject(html_entity_decode(sprintf($this->language->get('email_subject'), $email), ENT_QUOTES, 'UTF-8'));

            $mail->setHtml($this->load->view('mail/custom_mail',  $this->forms_array));
            if (!empty($this->forms_files_array)) {
                foreach ($this->forms_files_array as $file) {
                    move_uploaded_file($file['tmp_name'], $file['file']);
                    $mail->AddAttachment($file['file']);
                }
            }

            try {
                $mail->send();
            } catch (Exception $e) {
                echo 'Спотому чтой в отправке письма: ',  $e->getMessage(), "\n";
            }

            if (!empty($this->forms_files_array)) {
                foreach ($this->forms_files_array as $file) {
                    unlink($file['file']);
                }
            }
            $this->response->redirect($this->url->link('information/contact/success'));
        }

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.