Moodle
  1. Moodle
  2. MDL-29319

Duplicating activity, throws uasort (textlib) warning

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Component/s: Libraries
    • Labels:
    • Affected Branches:
      MOODLE_22_STABLE
    • Rank:
      18855

      Description

      When testing the modifications developed for MDL-28488, using the "x2" (duplicate activity) feature seems to work ok but it shows the following warning:

      Warning: uasort() [function.uasort]: Array was modified by the user comparison function in /lib/textlib.class.php on line 691
      Call Stack
      #	Time	Memory	Function	Location
      1	0.0001	639248	{main}( )	../modduplicate.php:0
      2	1.6617	12957176	restore_controller->execute_plan( )	../modduplicate.php:90
      3	1.6619	12957176	restore_plan->execute( )	../restore_controller.class.php:302
      4	1.6622	12957176	base_plan->execute( )	../restore_plan.class.php:157
      5	1.6624	12972656	base_task->execute( )	../base_plan.class.php:148
      6	1.6790	13060864	restore_execution_step->execute( )	../base_task.class.php:153
      7	1.6790	13060864	restore_create_included_users->define_execution( )	../restore_execution_step.class.php:34
      8	1.6791	13060864	restore_dbops::create_included_users( )	../restore_stepslib.php:691
      9	1.6792	13062592	get_list_of_themes( )	../restore_dbops.class.php:738
      10	1.6989	14762160	collatorlib::asort_objects_by_method( )	../moodlelib.php:6763
      11	1.6990	14763040	uasort ( )	../textlib.class.php:691
      

      Haven't investigated it but seems to be happening in the new stuff from textlib related to collations.

      Ciao

        Issue Links

          Activity

          Hide
          Eloy Lafuente (stronk7) added a comment -

          Adding Sam here to let him know. Not sure if this is caused by the new stuff or by something on restore but...

          Show
          Eloy Lafuente (stronk7) added a comment - Adding Sam here to let him know. Not sure if this is caused by the new stuff or by something on restore but...
          Hide
          Michael de Raadt added a comment -

          Thanks for reporting this issue.

          We have detected that this issue has been inactive for over a year. It was reported as affecting versions that are no longer supported.

          If you believe that this issue is still relevant to current versions (2.5 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

          Michael d.

          TW9vZGxlDQo=

          Show
          Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year. It was reported as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.5 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d. TW9vZGxlDQo=
          Hide
          Michael de Raadt added a comment -

          I'm closing this issue as it has been inactive for over a year has been recorded as affecting versions that are no longer supported.

          This is being done as part of a bulk annual clean-up of issues.

          If you still believe this is an issue in supported versions, please create a new issue.

          Show
          Michael de Raadt added a comment - I'm closing this issue as it has been inactive for over a year has been recorded as affecting versions that are no longer supported. This is being done as part of a bulk annual clean-up of issues. If you still believe this is an issue in supported versions, please create a new issue.

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: