Help on email failer

Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #31399
    xin zhang
    Participant

      Orders
      This is from the user side:

      ERROR: 10003

      EMAIL TO SHOP FAILED: SMTP Error: Could not authenticate. | Array
      (
      [type] => 2
      [message] => file_put_contents(/opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wppizza/logs/mail-error-40d9a119da631669c9e837dd285f258f.log): failed to open stream: Permission denied
      [file] => /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wppizza/classes/class.wppizza.email.php
      [line] => 331
      )

      Below is from the “use SMTP” “SMTP test” backend by clicking “To test your smtp settings, enter your email address on the left and click here. results will appear below”.

      Array
      (
      [error] => FAIL – check details below

      [error-info] => Array
      (
      [last-error] => Array
      (
      [type] => 2
      [message] => file_put_contents(/opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wppizza/logs/mail-error-40d9a119da631669c9e837dd285f258f.log): failed to open stream: Permission denied
      [file] => /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wppizza/classes/class.wppizza.email.php
      [line] => 331
      )

      [phpmailer] => SMTP Error: Could not authenticate.
      )

      [debug] =>
      )

      This is related to a previous failure.
      Best, Xin

      #31401
      Olly
      Admin & Mod

        apart form the fact that your file permissions are not correct
        your main problem is this

        SMTP Error: Could not authenticate.

        which means your authentication settings are wrong (obviously)
        only you or your host will know what these are , nothing i can help you with

        #31402
        xin zhang
        Participant

          Well, I have tried multiple SMTP servers with different username/password settings. That does not seem to be a problem.

          How to correct the file permission error?

          #31431
          xin zhang
          Participant

            Well I have solved this problem because I have found I have installed another SMTP plugin which ignores the values in the “use SMTP” “SMTP test” page of wppizza.

            However I have purchased the bundle however there are two new problems.

            1. If I as a customer use Paypal method, I can see the order success page and receive confirmation email. But if I choose Cash method, I cannot see the order success page, though there is confirmation email.

            2. Now the tip box in this version is better than before (customer does not need to click OK button now). However, I hope it can take two values. One is any numerical number from 0 to any real positive number. Another is the word like “cash” , “CASH” or “Cash”. And you can make two click buttons “Cash”, “20%”. If Cash/20% is clicked, Cash and 20% of the total will be displayed on the Tip box. This is common setting for Eat24/Grubhub.

            3. It looks like there is an error email with the following message even there is order success page, successful paypal payment and receiving, successful order emails in both buyer and seller.

            ======================================
            BLOG ID: 1 – ORDER ID: 7459

            ERROR – CRITICAL: 30007 | order not found using order id
            WPDB LAST QUERY (*might* be related): SELECT * FROM wp_wppizza_orders WHERE id=7459 AND payment_status IN (‘INPROGRESS’,’UNCONFIRMED’)
            LAST PHP ERROR (*might* be related): call_user_func_array() expects parameter 1 to be a valid callback, non-static method WP_Feed_Cache::create() should not be called statically IN FILE: “/opt/bitnami/apps/wordpress/htdocs/wp-includes/SimplePie/Registry.php” ON LINE: “215”

            Lastly, If you need the username and password to the website, please give me your email. Thank you. Xin

            #31432
            xin zhang
            Participant

              By the way, is PHP version 5.4.32 outdated to best use the wppizza?

              #31443
              Olly
              Admin & Mod

                re 1) / re 3) : without a link i cannot tell you anything really

                re 2): i’ll make a note of that idea. but it’s not very high on my list of things to do i must admit

                #31444
                Olly
                Admin & Mod

                  re php: generally 5.3+ is fine for wppizza, however , as it is not a standalone thing other things might cause issues for you somwhere
                  5.4 was eol in 2015 http://php.net/supported-versions.php

                  re smtp: the smtp settings in wppizza are deliberately low priority so a dedicated smtp plugin will – in most cases – override them (but of course if the settings in that dedicated smtp plugin are wrong , then that’s nothing i have control over).

                  #31446
                  xin zhang
                  Participant
                    This reply has been marked as private.
                    #31448
                    xin zhang
                    Participant

                      The website is http://www.samscafeonline.com. You can place a test Cash order to see what problems I have.

                      I need a private way to give you the website access. “Set as private reply” did not work as it says.

                      #31449
                      Olly
                      Admin & Mod

                        >“Set as private reply” did not work as it says.
                        it most certainly does

                        #31455
                        Olly
                        Admin & Mod

                          on submitting the order you have a internal 500 error on your ajax request
                          this could be anything
                          i suggest you enable debug and check your debug log
                          http://docs.wp-pizza.com/troubleshooting/

                          #31456
                          xin zhang
                          Participant

                            I used other browser without login and could see my private reply.

                            #31457
                            Olly
                            Admin & Mod

                              maybe you were still logged in for another time ….
                              because when i do this it most certainly says “private reply” or similar
                              anyway, lets not get hung up on this
                              if you want send your credentials to dev[at]wp-pizza.com
                              (but see previous reply first re debug etc))

                              #31540
                              xin zhang
                              Participant

                                I did not see the Cash order problem after I upgraded the PHP to 5.6.

                                But I encounter a new error and I believe it should be already there, not related to version of PHP.

                                Below is a successful order paid by Paypal
                                Subtotal $ 5.00
                                Sales Tax $ 0.42
                                Tip $ 0.01
                                Total $ 5.43

                                Here is a HALF SUCCESFULL order by paypal

                                Description Unit price Qty Amount
                                Minute Maid Orange Juice $3.25 USD 5 $16.25 USD
                                Tip $0.05 USD 1 $0.05 USD
                                Discount – $5.00 USD
                                Subtotal $11.30 USD
                                Shipping and handling $3.00 USD
                                Tax $1.18 USD
                                Total $15.48 USD
                                Payment $15.48 USD

                                I as buyer have paid with paypal and received the notification emails from paypal in the seller email account.

                                But there is no order emails to buyer email or seller email.

                                Below is the ORDER confirmation (if successful) page on the website:
                                ==================Start of page orders/?wpptx=……
                                Error

                                Apologies. There was an error receiving your order. Please try again.

                                Error Details
                                1001: amounts do not match: 15.48 != 15.49

                                ==================End of page orders/?wpptx=……

                                So somehow the wppizza program examines the amount (I guess) returned from Paypal and found ONE CENT difference and caused the error.

                                #31541
                                xin zhang
                                Participant

                                  15.48 is correct (the one submitted to Paypal)

                                  15.49 is wrong. See below copied from email.
                                  Qty Article ——————————————————– Price
                                  5 Minute Maid Orange Juice $ 16.25
                                  Subtotal $ 16.25
                                  Discount – $ 5.00
                                  Delivery Fee $ 3.00
                                  Sales Tax $ 0.93
                                  Shipping Tax @ 8.25% $ 0.25
                                  Tip $ 0.05
                                  coupon used NewSams5
                                  Total $ 15.49

                                  The last digit should be 8 or 3.

                                  You can place a cash order to see this funny error.

                                  #31542
                                  xin zhang
                                  Participant

                                    In addition, “Shipping Tax @ 8.25% $ 0.25” is better NOT to show up in the final order confirmation. I think it is a convention.

                                    #31543
                                    Olly
                                    Admin & Mod

                                      couple of things first of all

                                      – the first thing to find out is why paypal returns 15.49 if 15.48 is being submitted
                                      (the discrepancy is likely to be due to rounding somewhere, but that’s not the point. the amounts MUST match, by a cent or by a million it really does not matter)

                                      – i cannot add “coupon used NewSams5” , as there’s no coupon field, so reproducing your example isnt possible as it stands 🙁

                                      – “The last digit should be 8 or 3.” – sorry , i do not know what you mean by that4

                                      – “Shipping Tax @ 8.25% $ 0.25” is better NOT to show up in the final order
                                      all taxes etc will always show up in final order. if you do not show parts of what the bill is made up of there’s no doubt people will get completely confused as to why the total is not a sum of the parts shown. (and i do not know what “convention” you are referring to that says to not display shipping taxes to be honest – but maybe i am misunderstanding thinsg)

                                      PS: just a personal opinion and not really relevant to the above issue , but : a mandatory tip ? that’s an oximoron …

                                      #31544
                                      xin zhang
                                      Participant

                                        http://www.eat24.com and http://www.grubhub.com are the two most popular websites for online food ordering in the united states.

                                        By placing test orders without actually hitting the submission button at the last step, you will understand what I mean regarding the tip field and the tax on shipping field.

                                        Here is an example which is forwarded to your dev wp-pizza email.
                                        SUBTOTAL $20.45
                                        DELIVERY FEE $1.00
                                        TAX $1.77
                                        TIP $4.64
                                        TOTAL $27.86

                                        The TIP is the default 20% and the customer wants to save time and does not bother to change it.
                                        TAX=(20.45+1.00)*0.0825=$1.77
                                        TIP=(20.45+1.00+1.77)*0.20=$4.64

                                        It too complicated to show 3 lines for tax only.

                                        #31545
                                        Olly
                                        Admin & Mod

                                          you will find that not displaying taxes separately will be illegal in some/many countries which is why they are displayed the way they are
                                          that said, i can probably add an option that only shows the summary if that’s allowed in whatever country you are in (there’s already a filter in the plugin that allows that anyway, so i might as well make it a checkbox)

                                        Viewing 19 posts - 1 through 19 (of 19 total)
                                        • The topic ‘Help on email failer’ is closed to new replies.