Bug Report: Cant Make A Purchase

Cant Make A Purchase

I cant make a purchase, it gives me ksort error something.

EH

Einnlleinhatt Ha

Reported

I cant make a purchase, it gives me ksort error something.

  • MS

    Mian Saleem

    Answered

    That is due to email failing. Did you update the mail settings?

  • EH

    Einnlleinhatt Ha

    Answered

    Mian 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)); 
                }
            }
    
  • MS

    Mian Saleem

    Answered

    I mean your email settings from MPS settings page. You can check the MAIL_FROM_ADDRESS in .env files. Thank you

  • EH

    Einnlleinhatt Ha

    Answered

    Mian 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=
    
  • MS

    Mian Saleem

    Answered

    Hello,

    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

  • EH

    Einnlleinhatt Ha

    Answered

    Mian Saleem Alright, i will get back to you later.

  • EH

    Einnlleinhatt Ha

    Answered

    @Mian Saleem now its green but the quantity after purchase is still not fixed.

  • MS

    Mian Saleem

    Answered

    Let me check. Is there any error logs in storage/logs/ folder. Did you check this on live demo?

  • EH

    Einnlleinhatt Ha

    Answered

    Mian 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

  • EH

    Einnlleinhatt Ha

    Answered

    Any news about this bug ?

  • Login to Reply