NETLINK Posted May 28, 2015 Report Posted May 28, 2015 Calling the ClientMain::getStates() method via HTTP request causes an error while error reporting is turned on. Calling the URL http://demo.blesta.com/client/main/getstates/IE, for example, while error reporting is on causes the following error: Oh noes!Undefined property: ClientMain::$client on line 31 in public_html/blesta/app/controllers/client_main.php Relevant code in client_main.php controller: $this->contact = $this->Contacts->getByUserId($this->Session->read("blesta_id"), $this->client->id);
Tyson Posted May 28, 2015 Report Posted May 28, 2015 Client controllers require login. How are you accessing the method?
NETLINK Posted May 28, 2015 Author Report Posted May 28, 2015 From the pay method screen (via the "Pay" link on the invoice emails) /client/pay/method/34/?sid=xxxx When entering credit card details and you change the country, the states did not update, so I used the Javascript console to check for errors in the AJAX request, and found that way that it only works with error reporting off.
Tyson Posted May 28, 2015 Report Posted May 28, 2015 Thanks for the update. What version of Blesta are you using? CORE-1688
Tyson Posted May 29, 2015 Report Posted May 29, 2015 Interesting. I don't experience this on v3.4.3; just the beta for 3.5.
Recommended Posts