Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-27824

Add/ Editing Categories / Courses / Sub courses and it crashes with a coding error detected. "paging_bar requires a perpage value"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3, 2.2.1, 2.2.5, 2.3.2, 2.4
    • Fix Version/s: 2.2.6, 2.3.3
    • Component/s: Administration
    • Labels:
    • Environment:
      Windows Server 2008
    • Database:
      Any
    • Testing Instructions:
      Hide
      1. access your DB and select the config table, rename 'coursesperpage' to 'coursesperpagexyz'
      2. as admin, access site admin > courses > add/edit courses
      3. select one of the categories
      4. make sure there's no error occurs
      5. access config table again and rename 'coursesperpagexyz' to 'coursesperpage'
      Show
      access your DB and select the config table, rename 'coursesperpage' to 'coursesperpagexyz' as admin, access site admin > courses > add/edit courses select one of the categories make sure there's no error occurs access config table again and rename 'coursesperpagexyz' to 'coursesperpage'
    • Workaround:
      Hide

      Merely to go back up a level and then return down the path but its not really achieving the objective.

      Show
      Merely to go back up a level and then return down the path but its not really achieving the objective.
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      Coding error detected, it must be fixed by a programmer: paging_bar requires a perpage value.
       
      Stack trace:
      line 1936 of \lib\outputcomponents.php: coding_exception thrown
      line 2212 of \lib\outputrenderers.php: call to paging_bar->prepare()
      line 70 of \lib\outputrenderers.php: call to core_renderer->render_paging_bar()
      line 2201 of \lib\outputrenderers.php: call to renderer_base->render()
      line 261 of \course\category.php: call to core_renderer->paging_bar()
       
      Stack trace:
      line 1936 of \lib\outputcomponents.php: coding_exception thrown
      line 2212 of \lib\outputrenderers.php: call to paging_bar->prepare()
      line 70 of \lib\outputrenderers.php: call to core_renderer->render_paging_bar()
      line 2201 of \lib\outputrenderers.php: call to renderer_base->render()
      line 261 of \course\category.php: call to core_renderer->paging_bar()

      Home / ⟩ Courses / ⟩ A / ⟩ Course 1

      You should really redirect before you start page output
      line 562 of \lib\outputrenderers.php: call to debugging()
      line 2495 of \lib\weblib.php: call to core_renderer->redirect_message()
      line 699 of \mod\scorm\locallib.php: call to redirect()
      line 14 of \course\format\scorm\format.php: call to scorm_course_format_display()
      line 240 of \course\view.php: call to require()

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rwijaya Rossiani Wijaya
              Reporter:
              adrianrj Adrian Jones
              Peer reviewer:
              Ankit Agarwal
              Integrator:
              Aparup Banerjee
              Tester:
              Aparup Banerjee
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Nov/12