Two issues
-
Hi there
First of all, thanks so much for this plugin – it’s been a lifesaver for this Events Manager Pro project I’m working on!
I’m using the latest version and have found three problems. Not sure if either are because of my lack of expert knowledge, something wrong with the crappy client site I’ve taken over and am trying to fix, or a bug with the plugin.
1. The plugin was throwing an error at (IIRC) line 84 of class.EwayPaymentsEventsManager.php, which converts country codes to country names. I am not using Beagle and so my understanding is that Country is not a required field in the registration form, is that not correct? I’ve gotten around the problem by hardcoding $countryCode in that same getCountryName function to AU, as I assume it was being passed in as blank. Should it even be calling this function if Beagle is not set-up in the admin?
2. I am working in localhost, and when submitting the payment to eWay I was getting an error of “SSL certificate problem, verify that the CA cert is OK”. I hardcoded $this->sslVerifyPeer to FALSE on line 178 of class.EwayPaymentsPayment.php which fixes the problem. Keen not to compromise security when I go live though – is this likely to fail when live if I revert to TRUE?
3. Trying to work out why the payment wasn’t going through because of the above two problems was tricky because the Events Manager Pro AJAX submit would just crash out with a 500 error. WP logs show “Call to undefined method EwayPaymentsEventsManager::set_error_message() in C:\xampp\htdocs\konnect-learning\wp-content\plugins\eway-payment-gateway\class.EwayPaymentsEventsManager.php on line 395” which was the function supposed to show me the eWay error of course. I can’t find the function set_error_message anywhere either – is this old error handling?
Again thanks so much for this brilliant plugin! Glad I got it working, but I’d love to make it work in an upgrade safe manner with all security intact!
Cheers
Josh
- The topic ‘Two issues’ is closed to new replies.