WPPizza – A Restaurant Plugin for WordPress › Support › General Support › Help on email failer
- AuthorPosts
- 2 October, 2017 at 9:28 pm #31399
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, Xin2 October, 2017 at 9:36 pm #31401apart form the fact that your file permissions are not correct
your main problem is thisSMTP 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 with2 October, 2017 at 9:40 pm #31402Well, 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?
3 October, 2017 at 4:37 am #31431Well 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: 7459ERROR – 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
3 October, 2017 at 4:41 am #31432By the way, is PHP version 5.4.32 outdated to best use the wppizza?
3 October, 2017 at 12:40 pm #31443re 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
3 October, 2017 at 1:45 pm #31444re 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.phpre 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).
3 October, 2017 at 3:54 pm #31446This reply has been marked as private.3 October, 2017 at 3:56 pm #31448The 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.
3 October, 2017 at 3:57 pm #31449>“Set as private reply” did not work as it says.
it most certainly does3 October, 2017 at 4:05 pm #31455on 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/3 October, 2017 at 4:13 pm #31456I used other browser without login and could see my private reply.
3 October, 2017 at 4:15 pm #31457maybe 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))6 October, 2017 at 12:17 am #31540I 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.43Here 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 USDI 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=……
ErrorApologies. 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.
6 October, 2017 at 12:25 am #3154115.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.49The last digit should be 8 or 3.
You can place a cash order to see this funny error.
6 October, 2017 at 12:29 am #31542In addition, “Shipping Tax @ 8.25% $ 0.25” is better NOT to show up in the final order confirmation. I think it is a convention.
6 October, 2017 at 1:25 am #31543couple 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 …
6 October, 2017 at 3:50 am #31544http://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.86The 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.64It too complicated to show 3 lines for tax only.
6 October, 2017 at 10:46 am #31545you 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) - AuthorPosts
- The topic ‘Help on email failer’ is closed to new replies.