← Back to team overview

mahara-contributors team mailing list archive

[Bug 1842997] Re: PHP 7.2 error when bulk importing people via Leap2A

 

*** This bug is a duplicate of bug 1843149 ***
    https://bugs.launchpad.net/bugs/1843149

** Changed in: mahara/19.10
       Status: Confirmed => In Progress

** Changed in: mahara/19.10
     Assignee: (unassigned) => Lisa Seeto (lisaseeto)

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

Title:
  PHP 7.2 error when bulk importing people via Leap2A

Status in Mahara:
  In Progress
Status in Mahara 19.04 series:
  Confirmed
Status in Mahara 19.10 series:
  In Progress

Bug description:
  I received the following error on Ubuntu 18.04 with PHP 7.2 running
  Postgres. Robert said it was a PHP 7.2 bug:

  [WAR] d3 (artefact/internal/import/leap/lib.php:490) count(): Parameter must be an array or an object that implements Countable
  Call stack (most recent first):

      log_message("count(): Parameter must be an array or an object t...", 8, true, true, "/home/kristina/code/mahara/htdocs/artefact/interna...", 490) at /home/kristina/code/mahara/htdocs/lib/errors.php:521
      error(2, "count(): Parameter must be an array or an object t...", "/home/kristina/code/mahara/htdocs/artefact/interna...", 490, array(size 11)) at /home/kristina/code/mahara/htdocs/artefact/internal/import/leap/lib.php:490
      LeapImportInternal::import_author_data(object(PluginImportLeap), "portfolio:artefactinternal") at /home/kristina/code/mahara/htdocs/lib/mahara.php:1817
      call_static_method("LeapImportInternal", "import_author_data", object(PluginImportLeap), "portfolio:artefactinternal") at /home/kristina/code/mahara/htdocs/import/leap/lib.php:691
      PluginImportLeap->import_from_load_mapping() at /home/kristina/code/mahara/htdocs/import/leap/lib.php:188
      PluginImportLeap->process() at /home/kristina/code/mahara/htdocs/admin/users/bulkimport.php:253
      import_next_user("/var/lib/maharadata/master/import/1/1567737296/use...", "admin_", "1") at /home/kristina/code/mahara/htdocs/admin/users/bulkimport.php:165
      bulkimport_submit(object(Pieform), array(size 6)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:544
      Pieform->__construct(array(size 2)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:166
      Pieform::process(array(size 2)) at /home/kristina/code/mahara/htdocs/lib/mahara.php:5400
      pieform(array(size 2)) at /home/kristina/code/mahara/htdocs/admin/users/bulkimport.php:325


  To replicate:

  1. Go to the bulkimport page in master /admin/users/bulkimport.php
  2. Upload the attached Leap2A file that is a bulk export file.
  Expected result: No error messages on the screen.
  Actual result: You get the above error.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1842997/+subscriptions


References