foz1234 Posted September 1, 2016 Share Posted September 1, 2016 i noticed about 4-5 days ago my received order email was not being received, I've been relying on the PayPal email for order confirmation until I've had time to look at it, i noticed the contact us was not working yesterday with red error message, so i fixed the contact us page yesterday and thought that would have fixed the issue with received order email, not sure what the actual problem was i cleaned the cache in the shop, changed my smtp sending port from 26 to 25 with it being locally hosted, but it gets redirected anyway, restarted the server and mail washer etc seem to fix the contact us page. but the received order email its still not hitting the server, checked the contact us page and that's working but i have noticed that the captcha is not showing in the contact us page any longer but sends the message without any captcha? its just not showing, clean cache on pc but still not showing. its like something has corrupted something, the shop all seems to be working fine. any ideas where i should start to look? or the quickest option to fix this? my thoughts would be to reinstall cubecart over the excising files to see if this fixes it, unless the problem is MySQL? i never seem to get any errors showing in system error log? thanks Quote Link to comment Share on other sites More sharing options...
bsmither Posted September 1, 2016 Share Posted September 1, 2016 There is a problem with the Admin and Cart Order Received email template. It may be crashing the template rendering engine, especially and specifically if you have ever edited those templates. If you have edited those templates, then there is a conversation on the forums that talks about removing nested braces. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted September 1, 2016 Share Posted September 1, 2016 19 minutes ago, bsmither said: There is a problem with the Admin and Cart Order Received email template. It may be crashing the template rendering engine, especially and specifically if you have ever edited those templates. If you have edited those templates, then there is a conversation on the forums that talks about removing nested braces. Quote Link to comment Share on other sites More sharing options...
foz1234 Posted September 1, 2016 Author Share Posted September 1, 2016 1 hour ago, bsmither said: There is a problem with the Admin and Cart Order Received email template. It may be crashing the template rendering engine, especially and specifically if you have ever edited those templates. If you have edited those templates, then there is a conversation on the forums that talks about removing nested braces. I've never actually change the order received, the only template i have edited was the order complete and that was a good while ago, could this still be causing the problem? Quote Link to comment Share on other sites More sharing options...
bsmither Posted September 1, 2016 Share Posted September 1, 2016 For the customer, yes. Not having edited the Admin: Order Received email, you should be receiving that email, unless (I do not recall which happens first) you have set CubeCart to send an Order Received email at Processing (as opposed to Pending). Then, if CubeCart faults/crashes at sending the customer email, the admin email won't happen either (again, depending which email gets sent first). In admin, Store Settings, Advanced tab, click the Test button and see what happens. Quote Link to comment Share on other sites More sharing options...
foz1234 Posted September 1, 2016 Author Share Posted September 1, 2016 i do receive a test email from cc and i get the output in admin no errors Quote Link to comment Share on other sites More sharing options...
bsmither Posted September 1, 2016 Share Posted September 1, 2016 Then we can eliminate everything outside of CubeCart as a suspect. That leaves making sure you have made the fix with respect to the nested braces as having edited that email template may be causing the template rendering engine to crash - thus no email having been sent. Quote Link to comment Share on other sites More sharing options...
foz1234 Posted September 1, 2016 Author Share Posted September 1, 2016 7 minutes ago, bsmither said: Then we can eliminate everything outside of CubeCart as a suspect. That leaves making sure you have made the fix with respect to the nested braces as having edited that email template may be causing the template rendering engine to crash - thus no email having been sent. thanks again Bsmither for your fast reply where do i replace the code? thanks Should be replaced with this: </table> {if !empty({$DATA.note_to_customer})} <p>"{$DATA.note_to_customer}"</p> {/if} Quote Link to comment Share on other sites More sharing options...
bsmither Posted September 1, 2016 Share Posted September 1, 2016 The above is what you need to fix. From: {if !empty({$DATA.note_to_customer})} To: {if !empty($DATA.note_to_customer)} for both templates - the HTML Content and Plain Text Content tabs. Quote Link to comment Share on other sites More sharing options...
foz1234 Posted September 1, 2016 Author Share Posted September 1, 2016 hmm this could well be the problem as mine is currently like this </table> {if !empty({$DATA.note_to_customer} <p>)}</p> <p>"{$DATA.note_to_customer}"</p> {/if} Quote Link to comment Share on other sites More sharing options...
bsmither Posted September 1, 2016 Share Posted September 1, 2016 Look at my post here (on July 16):https://forums.cubecart.com/topic/51483-resolved-order-confirmation-email-query/ Quote Link to comment Share on other sites More sharing options...
foz1234 Posted September 1, 2016 Author Share Posted September 1, 2016 i have changed the source code now to </table> {if !empty($DATA.note_to_customer)} <p>"{$DATA.note_to_customer}"</p> {/if} and the plain text looks like this hopefully this is correct? {if !empty($DATA.note_to_customer)} "{$DATA.note_to_customer}"{/if} hopefully that's correct i will forever be in your debt thank you I've just noticed the captcha is back in the contact us page now Quote Link to comment Share on other sites More sharing options...
foz1234 Posted September 13, 2016 Author Share Posted September 13, 2016 i am still getting this problem where i do not receive all my received order email to admin email, i get some but not everyone, about 1 in 3 i seem to get. i have checked all email templates and i have only edited the order complete template as stated above, if i run a test email it gets received every time. any other thoughts? i must add that the problem seem to start about 4 months on from when i edited the completed order email which i find most odd. thanks Quote Link to comment Share on other sites More sharing options...
foz1234 Posted September 15, 2016 Author Share Posted September 15, 2016 I've also noticed tonight 4 customer reviews that I have not received email notifications on, but everytime I send a test email it gets received. I've just enabled debugging hopefully that may show something. Quote Link to comment Share on other sites More sharing options...
foz1234 Posted September 16, 2016 Author Share Posted September 16, 2016 i have imported clean email templates i will test this now to see if this sorts the problem out.. added:- ok its not the email templates causing the problem, I've just received another order but no email from cc confirming it only PayPal. anybody any ideas ? I've eliminated the email templates now as there new untouched imported templates, I've eliminated my email with sending a test mail as stated above that goes through every time. i am now stumped as i thought it must have been an issue with template.. thanks in advance Quote Link to comment Share on other sites More sharing options...
foz1234 Posted September 22, 2016 Author Share Posted September 22, 2016 No body any other ideas about my problem? would it help me or cause me more problems if i upgraded/reinstalled 6.0.12 over 6.0.12 like a upgrade ? thanks Added... I've noticed the captcha is missing in ie browser from the contact us page but still sends without one? should this send without one? if i clean ie cache it's back and is required before it will send. Quote Link to comment Share on other sites More sharing options...
bsmither Posted September 22, 2016 Share Posted September 22, 2016 Once CubeCart has an established session, and has accepted a Captcha challange, CubeCart no longer requires any more captchas for this session. So, having logged out or having told your browser to clear out any cookies for this site, the session is no longer established. Thus, CubeCart will display the captcha challenge again. Getting every odd email from CubeCart, and suspecting CubeCart, would require a deep trace of program flow to see what is and is not happening. We can work on this offline. If you want, send me a PM with your email address. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.