mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #36149
[Bug 1598990] Re: Cannot instantiate abstract class PluginImport
After I applied the above changes, and restored the DB to my Dev
enironment:
* updated the MNET setting to point to my Moodle Dev environment from the front-end;
* updated the host field in import_queue table to my Moodle Dev
* deleted the cron lock in the config table.
I get the following error:
Running core cron import_process_queue
[WAR] b5 (api/xmlrpc/lib.php:1366) Undefined index: keypair_PEM
Call stack (most recent first):
* log_message("Undefined index: keypair_PEM", 8, true, true, "/var/www/mahara/htdocs/api/xmlrpc/lib.php", 1366) at /var/www/mahara/htdocs/lib/errors.php:489
* error(8, "Undefined index: keypair_PEM", "/var/www/mahara/htdocs/api/xmlrpc/lib.php", 1366, array(size 7)) at /var/www/mahara/htdocs/api/xmlrpc/lib.php:1366
* OpenSslRepo->openssl_open("xxx", "xxx", true) at /var/www/mahara/htdocs/api/xmlrpc/lib.php:1093
* xmlenc_envelope_strip(object(SimpleXMLElement), true) at /var/www/mahara/htdocs/api/xmlrpc/client.php:95
* Client->send("http://d.general.moodle") at /var/www/mahara/htdocs/import/lib.php:626
* MnetImporterTransport->prepare_files() at /var/www/mahara/htdocs/import/lib.php:102
* PluginImport->prepare() at /var/www/mahara/htdocs/import/lib.php:341
* import_process_queue() at /var/www/mahara/htdocs/lib/cron.php:151
A simple check of in openssl_open():
* if (isset($keyset['keypair_PEM'])) {
should be wrapped around the call.
--
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/1598990
Title:
Cannot instantiate abstract class PluginImport
Status in Mahara:
New
Bug description:
Mahara: 16.04.1
OS: Linux
DB: Postgres
Browser: Firefox
During the cron task run for core_import_process_queue, we are getting
this error:
PHP Fatal error: Cannot instantiate abstract class PluginImport in
/var/www/site-anu/import/lib.php on line 191
The import_queue table has a few record with format = ''.
It is trying to import leap2A data into Mahara from Moodle.
The Moodle version is 2.7 which is using an older version of the
submission plugin. But, that shouldn't matter.
I think we need 2 things:
1) Check that the format is correct in
PluginImport::class_from_format(). If it's not correct, default it to
leap.
2) When the importer is created in import_process_queue(), it should
be wrapped in the try/catch block.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1598990/+subscriptions
References