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

Unable to access manage files within HTML block on Page resource in Clean theme

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Test in Clean.

      1. Log in as Admin.
      2. Create a Course.
      3. Create a page resource in the Course.
      4. Go to the Page resource.
      5. In the Add a block dropdown, select HTML to add a HTML block in the Page resource.
      6. Configure the HTML block (click the cog icon on the new HTML block, and select the Configure option).
      7. Click on the 'Manage files' option in the Content text editor.
        • make sure errors are NOT displayed.
      Show
      Test in Clean. Log in as Admin. Create a Course. Create a page resource in the Course. Go to the Page resource. In the Add a block dropdown, select HTML to add a HTML block in the Page resource. Configure the HTML block (click the cog icon on the new HTML block, and select the Configure option). Click on the 'Manage files' option in the Content text editor. make sure errors are NOT displayed.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE
    • Pull 3.5 Branch:
    • Pull Master Branch:
      MDL-58063-master

      Description

      When adding a HTML block within a page resource the below error occurs.

      Steps to replicate -

      1. Create a page resource in a course
      2. Enter the page resource
      3. Add a new HTML block
      4. Click the 'Manage files' option in the text editor

      Invalid get_string() identifier: 'pluginadministration' or component 'moodle'. Perhaps you are missing $string['pluginadministration'] = ''; in lang/en/moodle.php?

      • line 349 of /lib/classes/string_manager_standard.php: call to debugging()
      • line 6679 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
      • line 3971 of /lib/navigationlib.php: call to get_string()
      • line 3469 of /lib/navigationlib.php: call to settings_navigation->load_module_settings()
      • line 719 of /lib/pagelib.php: call to settings_navigation->initialise()
      • line 768 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
      • line 3114 of /lib/navigationlib.php: call to moodle_page->__get()
      • line 3158 of /lib/navigationlib.php: call to navbar->has_items()
      • line 55 of /theme/bootstrapbase/renderers/core_renderer.php: call to navbar->get_items()
      • line 4071 of /lib/outputrenderers.php: call to theme_bootstrapbase_core_renderer->navbar()
      • line 68 of /theme/bootstrapbase/layout/popup.php: call to core_renderer->full_header()
      • line 1018 of /lib/outputrenderers.php: call to include()
      • line 948 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
      • line 111 of /lib/editor/atto/plugins/managefiles/manage.php: call to core_renderer->header()

      Notice: Trying to get property of non-object in /home/user/domains/moodlesiteurl/public_html/lib/navigationlib.php on line 3976

      Coding error detected, it must be fixed by a programmer: PHP catchable fatal error

      Debug info: Argument 2 passed to has_capability() must be an instance of context, null given, called in [dirroot]/lib/navigationlib.php on line 3976 and defined
      Error code: codingerror

      Stack trace:
      • line 418 of /lib/setuplib.php: coding_exception thrown
      • line 365 of /lib/accesslib.php: call to default_error_handler()
      • line 3976 of /lib/navigationlib.php: call to has_capability()
      • line 3469 of /lib/navigationlib.php: call to settings_navigation->load_module_settings()
      • line 719 of /lib/pagelib.php: call to settings_navigation->initialise()
      • line 768 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
      • line 3114 of /lib/navigationlib.php: call to moodle_page->__get()
      • line 3158 of /lib/navigationlib.php: call to navbar->has_items()
      • line 55 of /theme/bootstrapbase/renderers/core_renderer.php: call to navbar->get_items()
      • line 4071 of /lib/outputrenderers.php: call to theme_bootstrapbase_core_renderer->navbar()
      • line 68 of /theme/bootstrapbase/layout/popup.php: call to core_renderer->full_header()
      • line 1018 of /lib/outputrenderers.php: call to include()
      • line 948 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
      line 111 of /lib/editor/atto/plugins/managefiles/manage.php: call to core_renderer->header()

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Jul/18

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 15 minutes
                15m