Picture of Christian 84
Registered 13 years 102 days
Christian 84 Wednesday, 5 July 2017, 02:31 PM in response to Christoph Künkel (innovaphone)
Re: PHP Soap Problem, PHP isn't handling SoapClient responses
Thanks for your reply.

Yes you are totally right, Reading the innopbx.class.php quickly, I thought the exception would be caught there.

But now writing try - catch block in login.php, like this:

try {
$inno = new innoPBX($server, $httpu, $httpp, $user,
array('classmap' => array("UserInfo" => "innoUserInfo",
"CallInfo" => "innoCallInfo",
"AnyInfo" => "innoAnyInfo",
"Group" => "innoGroup",
"No" => "innoNo",
"Info" => "innoInfo",
)));
}

catch(Exception $e) {
echo "Sorry, there was an error: ".$e->getMessage();
}
if (isset($inno)) {

if ($inno->key() == 0)
die(header("location:index.html?loginFailed=true"));

else
header("location:innopbx.php");
}


Have solved the problem and the error was caught.

thanks again and have a nice day
← You can define your color theme preference here