NETLINK Posted May 28, 2015 Report Share 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); Link to comment Share on other sites More sharing options...
Tyson Posted May 28, 2015 Report Share Posted May 28, 2015 Client controllers require login. How are you accessing the method? Link to comment Share on other sites More sharing options...
NETLINK Posted May 28, 2015 Author Report Share 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. Link to comment Share on other sites More sharing options...
Tyson Posted May 28, 2015 Report Share Posted May 28, 2015 Thanks for the update. What version of Blesta are you using? CORE-1688 Link to comment Share on other sites More sharing options...
NETLINK Posted May 29, 2015 Author Report Share Posted May 29, 2015 No problem! I have version 3.4.3. Link to comment Share on other sites More sharing options...
Tyson Posted May 29, 2015 Report Share Posted May 29, 2015 Interesting. I don't experience this on v3.4.3; just the beta for 3.5. Link to comment Share on other sites More sharing options...
Tyson Posted May 29, 2015 Report Share Posted May 29, 2015 This is fixed for v3.5 NETLINK 1 Link to comment Share on other sites More sharing options...
Recommended Posts