Jump to content

Calling The Clientmain::getstates() Method Causes An Error


NETLINK

Recommended Posts

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

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...