Weird Critical Error

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #34085
    vesaros
    Participant

      Hey olly,

      time for me again to write something. ๐Ÿ˜€

      For the beginning: After update from 3.2.2. to 3.2.3 my custom opening times are now duplicated. (it’s not a big deal)

      But yesterday i just get this email:

      Subject: Warning: [COD] – Payment Error
      [2018-01-03 18:30:12] – Bravo Pizzeria
      URL: https://www.bravo-pizzaservice.de

      BLOG ID: 1 – ORDER ID: 470

      ERROR – CRITICAL: 10003 | EMAIL TO SHOP FAILED: Could not instantiate mail function.
      WPDB LAST QUERY (*might* be related): SELECT option_value FROM 4Wlj5dD3si_options WHERE option_name = ‘wppizza_templates_emails’ LIMIT 1

      So that i just to investigate (troubleshoot/debug and log sniffing)
      But i couldn’t find anything for that. So i just wonder, cause this Mail was sent from wordpress@ Adress.
      (When i think about it, then the testmail from wppizza sends over the adress “wordpress@”)
      However, i checked the the strace from sendmail where it starts and transfer to smtp-relay to the receiving mailserver.

      I don’t belive this is a problem of the plugin. But i was just wondering since when i never get such emails and i’m a lil bit confused of ” EMAIL TO SHOP FAILED ” what dies it exactly mean? So if you have any experience of such mails.

      And then i just wanted ask about the order number. Should the order number not looks like 1,2,3,4,5,6,7…ect?
      When i look at the ordernumbers, it seems like that it jumps at the height of each dish in every order.
      Example: Customer XYZ which should have the order ID 400 buys 4 pizzas. < Everything Okay.
      But then: Customer ABC which should have the order ID 401 and buy only 1 salad, has the order ID 404.

      Is this correct in this way? (just wanted to know the system behind and if this is right or someone disturb my system)

      Just for the record: I love your plugin and all extensions around it. My boss and all his customers are happy how easy it is to order food with this plugin. So well it’s awesome! ๐Ÿ™‚

      #34086
      vesaros
      Participant

        Okay forget about the error.
        I dig a way deeper and found out why i get this email. > Damn this plugin is awesome as hell! ๐Ÿ˜€

        However, my question about the counting of the order number is still in the room.
        Can you please explain me how it works? ๐Ÿ™‚

        Kind regards,
        Vesaros~

        #34087
        Olly
        Admin & Mod

          everytime someone goes to the order page an entry gets created in the database with it’s unique id

          they are not sequential because not everybody that goes to the order page will also actually go through with the order

          #34527
          onlieidltd
          Participant

            Hi Vesaros
            I have this error as well
            ERROR: 10003

            EMAIL TO SHOP FAILED: Could not instantiate mail function.
            Could you tell me what did you found to fix this error?

            #34571
            Olly
            Admin & Mod

              @onlieidltd
              see : https://www.wp-pizza.com/topic/order-issue/ for a starting point
              “Could not instantiate mail function.” is not a plugin issue but a setup/server issue

              #34572
              vesaros
              Participant

                Hi,

                this is nothing u can fix.
                Your customer mistyped his mail adress and your server get a bounce wich the plugin responds to with this error. ๐Ÿ™‚

                Check /var/log/mail.log at the timestamp u get this error. ๐Ÿ™‚

                Greetz Vesaros

                #34573
                Olly
                Admin & Mod

                  by “customer” you mean your “customer” that has the website and the settings in (admin) wppizza->order settings->emails, right?
                  (as opposed to the “normal” website visitor/customer mistyping his email address in the checkout page …?)

                  #34575
                  vesaros
                  Participant

                    Erm, how to explain with my shitty English.

                    Okay รคhm i mean the customer who order something on my website.

                    I dunno exactly which detects that the customer type in a wrong mail adress at the checkout page.

                    How i found it out? As i saw this error i checked all my logs, even the mail.log. My server is configured to send mails over relay and so i saw at the same timestamp like the error, that there was a bounce. Just a wrong mailadress “@gmai.com” and so i checked the orders at the same time and then i saw a order one minute later from a customer with the same mail adress, but then it was wrote correctly.

                    After i get this error message a week later, i did the same research progress and found out that it was again a wrong mailadress and the recipient server bounced back that the mailadress doesn’t exist.

                    The order goes through when the customer wrote his mail correctly.

                    Greetz Vesaros

                    #34576
                    Olly
                    Admin & Mod

                      Also: (and then i shut up for now)

                      I’ll investigate:
                      >After update from 3.2.2. to 3.2.3 my custom opening times are now duplicated
                      though i don’t think this will make any difference as such to the functionality, it nevertheless should be fixed (assuming it’s a bug in the plugin – which seems quite possible from what you are describing – and not caused by something totally different)
                      thanks for flagging it

                      #34577
                      Olly
                      Admin & Mod

                        > how to explain..
                        that’s fine

                        thing is, a wrong email by the customer should not trigger this email (i’ll spare you the details why not)
                        as the error is – as it says – “EMAIL TO SHOP FAILED” which is about the email to the shop, not the customer
                        let me see if i can reproduce this here with that @gmai.com

                        (i might have to ask you for some admin screenshots at some point , but will try to reproduce this first )

                        #34578
                        Olly
                        Admin & Mod

                          actually , let me ask you another way first

                          can you do an order on YOUR site with this kind of wrong email – i.e [email protected] – and let me know if you still get the same error /warning email ?

                          maybe it’s a one-off due to caching issues (as you have removed version numbers from resources)

                          #34615
                          vesaros
                          Participant
                            This reply has been marked as private.
                            #34616
                            vesaros
                            Participant
                              This reply has been marked as private.
                              #34618
                              Olly
                              Admin & Mod

                                thanks for those
                                could you also please post (or send to dev[at]wp-pizza.com) a screenshot of
                                wppizza->templates ?
                                thanks

                                #34624
                                vesaros
                                Participant
                                  This reply has been marked as private.
                                  #34692
                                  Olly
                                  Admin & Mod

                                    you see, the issue is, that i do not understand how your mail.log / program can say

                                    “….. recipients : [email protected], [email protected] ….. recipient address not accepted by server etc etc ”

                                    if the plugin simply does not do that.
                                    the email entered by the customer (i.e for this example [email protected]) is never in the main recipients list , but in the cc (unless you setup a separate template – which you have not – to send to the customer of course)
                                    so the mail sending program is failing the ENTIRE email even if only the cc is invalid ?
                                    surely , it should still send the stuff (and will get a bounce from the cc)

                                    can you talk to whoever administers your mailserver about this please as this makes no sense to me
                                    (PS wppizza 3.2.5 will also add a little more detail to those 10003 error emails to be able to dig a bit deeper if needs be )

                                  Viewing 16 posts - 1 through 16 (of 16 total)
                                  • The topic ‘Weird Critical Error’ is closed to new replies.