← Back to team overview

mahara-contributors team mailing list archive

[Bug 1598990] Re: Cannot instantiate abstract class PluginImport

 

Hi Ghada,

Thanks for the information. Now that they have the new plugin, can they
please test again? I'd hate to test against an old out of date code that
is not going to be fixed up when we have a new plugin. I still don't
understand what the submission plugin has to do with it because that
isn't supposed to touch the export from Moodle the Mahara. But anyway,
if this problem can still be replicated with the new plugin on the
initial environment, maybe that'll give a better test case.

Thank you
Kristina

-- 
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:
  In Progress

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