Leap2A self-import throws warnings

Bug #1321444 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Son Nguyen

Bug Description

I wanted to import a portfolio into an existing account. I got the following warning messages trying it on 1.10 dev. The import was from a 1.6 Mahara site. I can provide the file (for my own reference, it's kristina_knox_portfolio_20130124.zip). The import succeeded and I had the pages but maybe some things didn't work alright. I did not import any files or the journal. I just imported the pages.

[WAR] 7d (blocktype/externalfeed/lib.php:253) Illegal string offset 'submittedvalue'
Call stack (most recent first):

    log_message("Illegal string offset 'submittedvalue'", 8, true, true, "/home/kristina/code/mahara/htdocs/blocktype/extern...", 253) at /home/kristina/code/mahara/htdocs/lib/errors.php:433
    error(2, "Illegal string offset 'submittedvalue'", "/home/kristina/code/mahara/htdocs/blocktype/extern...", 253, array(size 1)) at /home/kristina/code/mahara/htdocs/blocktype/externalfeed/lib.php:253
    PluginBlocktypeExternalfeed::instance_config_save(array(size 4)) at /home/kristina/code/mahara/htdocs/blocktype/externalfeed/lib.php:572
    PluginBlocktypeExternalfeed::import_create_blockinstance(array(size 3), array(size 11)) at Unknown:0
    call_user_func_array(array(size 2), array(size 2)) at /home/kristina/code/mahara/htdocs/lib/mahara.php:1562
    call_static_method("PluginBlocktypeExternalfeed", "import_create_blockinstance", array(size 3), array(size 11)) at /home/kristina/code/mahara/htdocs/lib/view.php:2919
    View::import_from_config(array(size 11), "2", "leap") at /home/kristina/code/mahara/htdocs/import/leap/lib.php:1000
    PluginImportLeap->import_view_from_request(object(stdClass)) at /home/kristina/code/mahara/htdocs/import/leap/lib.php:969
    PluginImportLeap->import_from_requests() at /home/kristina/code/mahara/htdocs/import/leap/lib.php:318
    PluginImportLeap->do_import_from_requests() at /home/kristina/code/mahara/htdocs/import/index.php:294
    do_import() at /home/kristina/code/mahara/htdocs/import/index.php:76

[WAR] 7d (blocktype/externalfeed/lib.php:253) Uninitialized string offset: 0
Call stack (most recent first):

    log_message("Uninitialized string offset: 0", 8, true, true, "/home/kristina/code/mahara/htdocs/blocktype/extern...", 253) at /home/kristina/code/mahara/htdocs/lib/errors.php:433
    error(8, "Uninitialized string offset: 0", "/home/kristina/code/mahara/htdocs/blocktype/extern...", 253, array(size 1)) at /home/kristina/code/mahara/htdocs/blocktype/externalfeed/lib.php:253
    PluginBlocktypeExternalfeed::instance_config_save(array(size 4)) at /home/kristina/code/mahara/htdocs/blocktype/externalfeed/lib.php:572
    PluginBlocktypeExternalfeed::import_create_blockinstance(array(size 3), array(size 11)) at Unknown:0
    call_user_func_array(array(size 2), array(size 2)) at /home/kristina/code/mahara/htdocs/lib/mahara.php:1562
    call_static_method("PluginBlocktypeExternalfeed", "import_create_blockinstance", array(size 3), array(size 11)) at /home/kristina/code/mahara/htdocs/lib/view.php:2919
    View::import_from_config(array(size 11), "2", "leap") at /home/kristina/code/mahara/htdocs/import/leap/lib.php:1000
    PluginImportLeap->import_view_from_request(object(stdClass)) at /home/kristina/code/mahara/htdocs/import/leap/lib.php:969
    PluginImportLeap->import_from_requests() at /home/kristina/code/mahara/htdocs/import/leap/lib.php:318
    PluginImportLeap->do_import_from_requests() at /home/kristina/code/mahara/htdocs/import/index.php:294
    do_import() at /home/kristina/code/mahara/htdocs/import/index.php:76

[WAR] 7d (artefact/file/lib.php:1130) Undefined property: stdClass::$oldextension
Call stack (most recent first):

    log_message("Undefined property: stdClass::$oldextension", 8, true, true, "/home/kristina/code/mahara/htdocs/artefact/file/li...", 1130) at /home/kristina/code/mahara/htdocs/lib/errors.php:433
    error(8, "Undefined property: stdClass::$oldextension", "/home/kristina/code/mahara/htdocs/artefact/file/li...", 1130, array(size 2)) at /home/kristina/code/mahara/htdocs/artefact/file/lib.php:1130
    ArtefactTypeFile::new_file("/var/lib/maharadata/master/temp/import/ulearn02-14...", object(stdClass)) at /home/kristina/code/mahara/htdocs/artefact/file/lib.php:1169
    ArtefactTypeFile::save_file("/var/lib/maharadata/master/temp/import/ulearn02-14...", object(stdClass), object(User), true) at /home/kristina/code/mahara/htdocs/artefact/file/import/leap/lib.php:464
    LeapImportFile::create_file_from_entry_data(object(stdClass), object(PluginImportLeap), "portfolio:artefact175") at /home/kristina/code/mahara/htdocs/artefact/file/import/leap/lib.php:421
    LeapImportFile::create_file_from_request(object(PluginImportLeap), object(stdClass), 121) at /home/kristina/code/mahara/htdocs/artefact/file/import/leap/lib.php:124
    LeapImportFile::import_folder_and_children_from_request(object(PluginImportLeap), object(stdClass), 120) at /home/kristina/code/mahara/htdocs/artefact/file/import/leap/lib.php:99
    LeapImportFile::import_from_requests(object(PluginImportLeap)) at Unknown:0
    call_user_func_array(array(size 2), array(size 1)) at /home/kristina/code/mahara/htdocs/lib/mahara.php:1562
    call_static_method("LeapImportFile", "import_from_requests", object(PluginImportLeap)) at /home/kristina/code/mahara/htdocs/import/leap/lib.php:293
    PluginImportLeap->call_import_method_plugins("import_from_requests") at /home/kristina/code/mahara/htdocs/import/leap/lib.php:308
    PluginImportLeap->do_import_from_requests() at /home/kristina/code/mahara/htdocs/import/index.php:294
    do_import() at /home/kristina/code/mahara/htdocs/import/index.php:76

Changed in mahara:
assignee: nobody → Son Nguyen (ngson2000)
Revision history for this message
Son Nguyen (ngson2000) wrote :

As it is a small bug, I set its milestone to 1.10

Changed in mahara:
milestone: none → 1.10.0
status: New → In Progress
Revision history for this message
Son Nguyen (ngson2000) wrote :
Changed in mahara:
importance: Undecided → Medium
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/3664
Committed: http://gitorious.org/mahara/mahara/commit/cab7b4b5886e0ee0c8671f3a095701ec366c28e0
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit cab7b4b5886e0ee0c8671f3a095701ec366c28e0
Author: Son Nguyen <email address hidden>
Date: Tue Aug 26 11:06:15 2014 +1200

Fix the issue when importing an external RSS block (Bug 1321444)

Change-Id: I639de4ced44bd6fe87362a72d0efe98fb6fa4704
Signed-off-by: Son Nguyen <email address hidden>

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
Aaron Wells (u-aaronw)
Changed in mahara:
status: Fix Committed → Fix Released
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.