Hi David
This sounds like the xml file is too big
Can you make sure that the PHP ini file allows big files to be processed
and you could try editing the places where 'new SimpleXMLElement' is
called, eg api/xmlrpc/lib.php file on line 1124 and change
$xml = new SimpleXMLElement($payload);
to
$xml = new SimpleXMLElement($payload, LIBXML_PARSEHUGE);
to allow for large xml files to be parsed
Let me know if any of that helps
Cheers
Robert
** Changed in: mahara
Status: New => Incomplete
** Changed in: mahara
Importance: Undecided => Medium
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1729908
Title:
Cron error on MnetImporterTransport
Status in Mahara:
Incomplete
Bug description:
Mahara: 17.04.3
DB: MySQL
OS: Linux
We get lots of these messages from our cron (we have an MNET
connection to a Moodle) :
[WAR] 4a (api/xmlrpc/lib.php:1124) SimpleXMLElement::__construct(): Entity:
line 17: parser error : internal error
Call stack (most recent first):
* log_message(string(size 79), integer, true, true, string(size 45),
integer) at /app/apache2/htdocs/mahara/lib/errors.php:513
* error(integer, string(size 79), string(size 45), integer, array(size 1))
at Unknown:0
* SimpleXMLElement->__construct(string(size 22033302)) at
/app/apache2/htdocs/mahara/api/xmlrpc/lib.php:1124
* parse_payload(string(size 22033302)) at
/app/apache2/htdocs/mahara/api/xmlrpc/lib.php:1118
* xmlenc_envelope_strip(object(SimpleXMLElement), true) at
/app/apache2/htdocs/mahara/api/xmlrpc/client.php:95
* Client->send(string(size 28)) at
/app/apache2/htdocs/mahara/import/lib.php:622
* MnetImporterTransport->prepare_files() at
/app/apache2/htdocs/mahara/import/lib.php:102
* PluginImport->prepare() at /app/apache2/htdocs/mahara/import/lib.php:337
* import_process_queue() at /app/apache2/htdocs/mahara/lib/cron.php:151
[WAR] 4a (api/xmlrpc/lib.php:1124) SimpleXMLElement::__construct():
PC9zdHJpbmc+CiAgPC92YWx1ZT4KIDwvcGFyYW0+CjwvcGFyYW1zPgo8L21ldGhvZFJlc3BvbnNlPgo=
Call stack (most recent first):
* log_message(string(size 113), integer, true, true, string(size 45),
integer) at /app/apache2/htdocs/mahara/lib/errors.php:513
* error(integer, string(size 113), string(size 45), integer, array(size 1))
at Unknown:0
* SimpleXMLElement->__construct(string(size 22033302)) at
/app/apache2/htdocs/mahara/api/xmlrpc/lib.php:1124
* parse_payload(string(size 22033302)) at
/app/apache2/htdocs/mahara/api/xmlrpc/lib.php:1118
* xmlenc_envelope_strip(object(SimpleXMLElement), true) at
/app/apache2/htdocs/mahara/api/xmlrpc/client.php:95
* Client->send(string(size 28)) at
/app/apache2/htdocs/mahara/import/lib.php:622
* MnetImporterTransport->prepare_files() at
/app/apache2/htdocs/mahara/import/lib.php:102
* PluginImport->prepare() at /app/apache2/htdocs/mahara/import/lib.php:337
* import_process_queue() at /app/apache2/htdocs/mahara/lib/cron.php:151
[WAR] 4a (api/xmlrpc/lib.php:1124) SimpleXMLElement::__construct():
^
Call stack (most recent first):
* log_message(string(size 113), integer, true, true, string(size 45),
integer) at /app/apache2/htdocs/mahara/lib/errors.php:513
* error(integer, string(size 113), string(size 45), integer, array(size 1))
at Unknown:0
* SimpleXMLElement->__construct(string(size 22033302)) at
/app/apache2/htdocs/mahara/api/xmlrpc/lib.php:1124
* parse_payload(string(size 22033302)) at
/app/apache2/htdocs/mahara/api/xmlrpc/lib.php:1118
* xmlenc_envelope_strip(object(SimpleXMLElement), true) at
/app/apache2/htdocs/mahara/api/xmlrpc/client.php:95
* Client->send(string(size 28)) at
/app/apache2/htdocs/mahara/import/lib.php:622
* MnetImporterTransport->prepare_files() at
/app/apache2/htdocs/mahara/import/lib.php:102
* PluginImport->prepare() at /app/apache2/htdocs/mahara/import/lib.php:337
* import_process_queue() at /app/apache2/htdocs/mahara/lib/cron.php:151
[DBG] 4a (import/lib.php:343) an error occurred on import: Encrypted payload
is not a valid XML document
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1729908/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to : [email protected]
Unsubscribe : https://launchpad.net/~mahara-contributors
More help : https://help.launchpad.net/ListHelp