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

Ошибка при оформлении заказа Uncaught Exception: Error: E-Mail subject required


Recommended Posts

Добрый вечер! 

 

Сайт мультиязычный, на русском языке все ок, а во время оформления заказа на ******ской версии вылазит ошибка: Подождите ... Происходит переход к оплате

Подскажите, пожалуйси, как исправить? Вижу что, что-то с эмейлом и темой отправки письма, но опыт не позволяет понять что именно. 

 

Вот лог:

[Sun Aug 08 22:21:35 2021] [error] [client ip] PHP Fatal error:  Uncaught Exception: Error: E-Mail subject required! in /var/www/shtoma6/data/www/mysite/system/library/mail.php:131, referer: https://mysite/
[Sun Aug 08 22:21:35 2021] [error] [client ip] Stack trace:, referer: https://mysite/
[Sun Aug 08 22:21:35 2021] [error] [client ip] #0 /var/www/shtoma6/data/www/mysite/catalog/model/checkout/ompro.php(1256): Mail->send(), referer: https://mysite/
[Sun Aug 08 22:21:35 2021] [error] [client ip] #1 /var/www/shtoma6/data/www/mysite/system/storage/modification/system/engine/loader.php(248): ModelCheckoutOMPro->sendMail(50, '1', '3', Array, Array, '', false), referer: https://mysite/
[Sun Aug 08 22:21:35 2021] [error] [client ip] #2 /var/www/shtoma6/data/www/mysite/system/engine/proxy.php(47): Loader->{closure}(Array, Array), referer: https://mysite/
[Sun Aug 08 22:21:35 2021] [error] [client ip] #3 /var/www/shtoma6/data/www/mysite/catalog/controller/api/ompro.php(162): Proxy->__call('sendMail', Array), referer: https://mysite/
[Sun Aug 08 22:21:35 2021] [error] [client ip] #4 /var/www/shtoma6/data/www/mysite/system/storage/modification/system/engine/action.php(79): ControllerApiOMPro->notify('checkout/order/...', Array, NULL), referer: https://mysite/
[Sun Aug 08 22:21:35 2021] [error] [client ip] #5 /var/www/shtoma6/data/www/mysite/system/engine/event.php(62): Action->execute(Object(Registry), Array), referer: https://mysite/
[Sun Aug 08 22:21:35 2021] [error] [client ip] #6 /var/www/shtoma6/data/www/mysite/system/storage/modification/system/engine/loader.php(255): Event->trigger('m in /var/www/shtoma6/data/www/mysite/system/library/mail.php on line 131, referer: https://mysite/

 

икже вот лог из консоли разрилитлика

  1. Request URL:
    https://mysite/index.php?route=extension/payment/cod/confirm&_=1628450845420
  2. Request Method:
    GET
  3. Status Code:
    500
  4. Remote Address:
     
  5. Referrer Policy:
    strict-origin-when-cross-origin
Edited by Mighty
Link to comment
Share on other sites


  • Mighty changed the title to Ошибка при оформлении заказа Uncaught Exception: Error: E-Mail subject required
1 час назад, Mighty сказал:

Sun Aug 08 22:21:35 2021] [error] [client ip] PHP Fatal error:  Uncaught Exception: Error: E-Mail subject required! in /var/www/shtoma6/data/www/mysite/system/library/mail.php:131, referer: https://mysite/

 

эи ошибка говорит о том что не указана тема сообещёния врогде как. Видимо в русском варианте в файлах переводов прописано, а в ******ской версии нет

Link to comment
Share on other sites

по ходу надо добавить в ******скую версию 

$_['text_subject'] = '%s - Заказ %s';

 

посмотрите в файле контроллера mail/order.php что указано в 

$mail->setSubject

и потом проверьте языковой файл, есть им это значение или нет

Link to comment
Share on other sites

Во время нажатия на кнопку "подтвердить заказ" выскакивает вот ошибка и заказ и уведомление на почту не приходит. Если повторно нажать кнопку, то в админу прилеиет заказ и на почту уведомление, но не переходит на страницу саксесс. 

 

Link to comment
Share on other sites


Проблема решена. Полистил файлы ранее усиновленных модулей и начало рилиить как часы. 

Вывод: перед каждой усиновкой модуля гделать бекап 

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

×
×
  • 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.