Jump to content

[SOLVED] Email Not sending/working and few debug issues


huhuhu7765

Recommended Posts

Hi fellow prestashopers!

I managed to upgrade Prestashop from version 1.6.2.4 to 1.7.6.7. But somehow cant get emails to work. Mails arent beeing send after order also trying to use "Forgot password" also doesnt work.

Im running prestashop locally in docker environment, with following specs:

Server: Linux #44-Ubuntu SMP Tue Jun 23 00:01:04 UTC 2020 x86_64
Apache/2.4.38 (Debian)
PHP version: 7.2.31
MySQL version: 5.6.49
MySQL engine: InnoDB
MySQL driver: DbPDO
Mail method: You are using the PHP mail() function.
Required parameters: OK
Optional parameters: OK
 

When i try to "Resend email" from Orders to sample user, i get confirmation message "The message was successfully sent to the customer." , though no mail is received in my mail inbox. I have 2 languages installed, though only using 1, sl-SI, slovenian.

When i try to test mail from "Advanced Parameters->Email" i get following error:

Error: Please check your configuration

I have debug mode turn on and i see following messages:

Info. & Errors

INFO
09:14:37
request	Matched route "admin_emails_index".
Hide context
[▼
  "route" => "admin_emails_index"
  "route_parameters" => [▶]
  "request_uri" => "http://localhost:8080/backoffice/index.php/configure/advanced/emails/?_token=2uhemksYt4c_zhv_KJR9vL4C6tEMNlWCheYLCOFQfW8"
  "method" => "GET"
]
WARNING
09:14:37
translation	Translation not found.
Hide context
[▼
  "id" => "Theme configurator"
  "domain" => "messages"
  "locale" => "en-GB"
]
WARNING
09:14:37
translation	Translation not found.
Hide context
[▼
  "id" => "Configure the main elements of your theme."
  "domain" => "messages"
  "locale" => "en-GB"
]
WARNING
09:14:37
translation	Translation not found.
Hide context
[▼
  "id" => "Cron tasks manager"
  "domain" => "messages"
  "locale" => "en-GB"
]
WARNING
09:14:37
translation	Translation not found.
Hide context
[▼
  "id" => "Manage all your automated web tasks from a single interface."
  "domain" => "messages"
  "locale" => "en-GB"
]
WARNING
09:14:37
translation	Translation not found.
Hide context
[▼
  "id" => "Carts Guru"
  "domain" => "messages"
  "locale" => "en-GB"
]
WARNING
09:14:37
translation	Translation not found.
Hide context
[▼
  "id" => "The module is not configured"
  "domain" => "messages"
  "locale" => "en-GB"
]

 

Debug

 

09:14:37  doctrine	SELECT name FROM ar_module WHERE active = 1

09:14:37  security	Read existing security token from the session.
   [▼
    "key" => "_security_main"
    "token_class" => "Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken"
   ]

09:14:37  security	User was reloaded from a user provider.
   [▼
    "provider" => "PrestaShopBundle\Security\Admin\EmployeeProvider"
    "username" => "*********@gmail.com"
   ]

09:14:37  doctrine	SELECT t0.id AS id_1, t0.employee AS employee_2, t0.shop AS shop_3, t0.controller AS controller_4,                   t0.action AS action_5, t0.filter AS filter_6, t0.filter_id AS filter_id_7 FROM ar_admin_filter t0 WHERE t0.employee           = ? AND t0.shop = ? AND t0.controller = ? AND t0.action = ? LIMIT 1
    [▼
      7
      1
      "email"
      "index"
    ]

09:14:37 doctrine	SELECT t0.id AS id_1, t0.employee AS employee_2, t0.shop AS shop_3, t0.controller AS controller_4,                             t0.action AS action_5, t0.filter AS filter_6, t0.filter_id AS filter_id_7 FROM ar_admin_filter t0 WHERE                       t0.employee = ? AND t0.shop = ? AND t0.controller = ? AND t0.action = ? LIMIT 1
    [▼
      7
      1
      "email"
      "index"
    ]

09:14:37 doctrine	SELECT m.*, l.name AS language FROM ar_mail m LEFT JOIN ar_lang l ON m.id_lang = l.id_lang ORDER BY                           id_mail desc LIMIT 50 OFFSET 0

09:14:37 doctrine	SELECT COUNT(m.id_mail) FROM ar_mail m LEFT JOIN ar_lang l ON m.id_lang = l.id_lang

09:14:37 security	Stored the security token in the session.

    [▼
      "key" => "_security_main"
    ]

 

I kinda have feeling, that there is something obvious and "ez" solution that im clearly missing. Any help, tips, to point me in the right direction would be highly appreciated! :)

Edited by huhuhu7765 (see edit history)
Link to comment
Share on other sites

  • 4 weeks later...

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