PHP 7.2 error when bulk importing people via Leap2A

Bug #1842997 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
In Progress
High
Lisa Seeto
19.04
Confirmed
High
Unassigned
19.10
In Progress
High
Lisa Seeto

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.

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.