Welcome Guest, Not a member yet? Register   Sign In
XML error: Invalid document end at line 1
#1

Under PHP 7 XML-RPC no longer works. You will see this error.
The two reasons:

XML-RPC expects its data in $HTTP_RAW_POST_DATA, which isn't available in PHP 7
in CI_Xmlrpcs::parseRequest() find its usage and get the data from
PHP Code:
file_get_contents("php://input"
instead.

PHP 7 doesn't understand this no longer:
PHP Code:
$CI->$method_parts['1']($m); 
use
PHP Code:
call_user_func(array($CI$method_parts[1]), $m); 
instead.

The same probably holds for:
PHP Code:
$this->object->$method_parts['1']($m); 
use
PHP Code:
call_user_func(array($this->object$method_parts[1]), $m); 

Well, I don't know, whether this is fixed in CI3 ...

Hope this helps.
joergy
Reply


Messages In This Thread
XML error: Invalid document end at line 1 - by joergy - 04-25-2017, 09:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB