EH
Reported
I cant make a purchase, it gives me ksort error something.
Attachments
- MSAnsweredThat is due to email failing. Did you update the mail settings?
- EHAnswered**[Mian Saleem](/u/saleem)** Yeah i did.
```
if (!$original_purchase || $original_purchase->draft) {
//if (safe_email($this->purchase->supplier->email) && !default_supplier($this->purchase->supplier_id))
if (safe_email($this->purchase->supplier->email)) {
$this->purchase->supplier->notify(new \Modules\MPS\Notifications\PurchaseCreated($this->purchase));
}
}
``` - MSAnsweredI mean your email settings from MPS settings page. You can check the `MAIL_FROM_ADDRESS` in `.env` files. Thank you
- EHAnswered**[Mian Saleem](/u/saleem)** I dont have any email setup, what should i put it in there ?
```
MAIL_FROM_ADDRESS=
MAIL_FROM_NAME=
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=
MAILGUN_DOMAIN=
MAILGUN_SECRET=
MAILGUN_ENDPOINT=
``` - MSAnsweredHello,
Whatever your email settings are. You can configure this from MPS settings page. For testing, you can use the mailtrap.io's smtp as they offer free account.
Thank you - EHAnswered**[Mian Saleem](/u/saleem)** Alright, i will get back to you later.
- EHAnswered[@Mian Saleem](/u/saleem) now its green but the quantity after purchase is still not fixed.
- MSAnsweredLet me check. Is there any error logs in `storage/logs/` folder. Did you check this on live demo?
- EHAnswered**[Mian Saleem](/u/saleem)** Sorry cant check the live demo because of the big shop icon. I can see 3 files inside that ```storage/logs/``` but i dont know how to download it using ssh.
If i check it using laravel forge site, on my site log it said something like this
```[2021-07-04 10:24:19] production.INFO: Unable to generate pdf file for 2996e146-33d7-4ca1-9d08-54bfc65a155c ```Attachments - EHAnsweredAny news about this bug ?
- Login to Reply