Post by Counting Pounds » Sat Apr 14, 2018 6:53 am

here is a fix provided for me by victorj :)

Situation
I completed a fresh plain vanilla install of OC and the checkout bit of OC wouldn't work, even when using a simple "bank transfer" payment method the checkout cart would hang. This was installed on a shared hosting environment which I knew to be good. OC did not advise of any issues prior to installation and the install ran through smoothly.

Fault
It turns out that if OC is unable to send an email during order processing it will cause the cart to hang, but you'll never see that provided as a formal error.

Fix
I eventually accessed an error message talking about illegal characters etc. Buried in this was the following mail(/var/log/phpmail.log): failed to open stream: Permission denied.

Currently OC does not check for read/write permission in the hosting company's system for email. I requested that my hosting Co. adjust these and OC started working as expected.
_______

Note to OC development team: It would be worthwhile checking this directories permissions status during install and flagging up as an advisory advising that it needs to be fixed or SMTP has to be used. Had it been my first attempt to use OC, I'd have scrubbed it and moved on. It would be worth creating an error box for this fault as its fatal to order processing and could occur after a system was commissioned if the mailing service failed.


Posts

Joined
Wed Nov 06, 2013 7:55 am

Post by straightlight » Sat Apr 14, 2018 8:07 am

Note to OC development team: It would be worthwhile checking this directories permissions status during install and flagging up as an advisory advising that it needs to be fixed or SMTP has to be used. Had it been my first attempt to use OC, I'd have scrubbed it and moved on. It would be worth creating an error box for this fault as its fatal to order processing and could occur after a system was commissioned if the mailing service failed.
That would be undistinguishable since there are forum users who are reporting issues with their emails even though it may send from specific locations but not from others while those options from the OC admin are already selected while other forum users are still able to send those emails normally. With those reports being sent, these events do not originate from OC itself but simply rather due to a different email header requirements that needs to be created between servers. Email servers have no standard form-heading structure when sending those emails from the web with Mail protocol. As for SMTP, the protocol has been developed with a more solid concept. Although, it may also be harden to configure, again, between servers.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 4 guests