WPPizza – A Restaurant Plugin for WordPress › Support › General Support › Weird Critical Error
- AuthorPosts
- 4 January, 2018 at 8:44 am #34085
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.deBLOG 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 1So 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! ๐
4 January, 2018 at 11:43 am #34086Okay 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~4 January, 2018 at 12:42 pm #34087everytime 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
25 January, 2018 at 3:50 pm #34527Hi Vesaros
I have this error as well
ERROR: 10003EMAIL TO SHOP FAILED: Could not instantiate mail function.
Could you tell me what did you found to fix this error?27 January, 2018 at 1:42 am #34571@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 issue27 January, 2018 at 2:08 am #34572Hi,
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
27 January, 2018 at 2:17 am #34573by “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 …?)27 January, 2018 at 2:39 am #34575Erm, 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
27 January, 2018 at 2:39 am #34576Also: (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 it27 January, 2018 at 2:47 am #34577> how to explain..
that’s finething 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 )
27 January, 2018 at 2:51 am #34578actually , 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)
28 January, 2018 at 5:30 pm #34615This reply has been marked as private.28 January, 2018 at 5:36 pm #34616This reply has been marked as private.29 January, 2018 at 1:15 am #34618thanks for those
could you also please post (or send to dev[at]wp-pizza.com) a screenshot of
wppizza->templates ?
thanks29 January, 2018 at 7:59 am #34624This reply has been marked as private.31 January, 2018 at 7:51 pm #34692you 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 ) - AuthorPosts
- The topic ‘Weird Critical Error’ is closed to new replies.