← Back to team overview

mahara-contributors team mailing list archive

[Bug 1598990] Re: Cannot instantiate abstract class PluginImport

 

** Changed in: mahara
     Assignee: (unassigned) => Ghada El-Zoghbi (ghada-z)

-- 
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