Get PHP simpleXMLElement

Hi evrbody!
I’ve used PHP Binding to get queryresult from WolframAlpha api server and all works fine on my local web server, where PHP version running is 5.4.
So I put the application on a remote web server running the same PHP version, but I get an error sounds as the method I use to get the query result is applied on a non-object where the method is waiting for an object.
Please, someone can help me to address the solution to fix this error?
Many thanks in advance.