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

One-shot coding error happening on first request to site (versioned-caches)

XMLWordPrintable

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-74032-master
    • Hide
      1. Install a fresh Moodle site using Moodle 3.11
      2. Create a course using default settings
      3. Set the course so you can view it without login:
        • Cogwheel / More / Users / Enrolment methods
        • Turn on (click eye icon) 'Guest access'
        • Site administration
        • Search 'autologinguests'
        • Turn it on and save changes.
      4. View the course page and copy the url to clipboard so you can go back there
      5. Log out
      6. Upgrade the code to Moodle 4.0
      7. Visit the course page directly

      EXPECTED: You should not see a coding exception error at this point, but should be redirect to the upgrade process as normal.

      BEFORE FIX: A coding exception appears.

      Show
      Install a fresh Moodle site using Moodle 3.11 Create a course using default settings Set the course so you can view it without login: Cogwheel / More / Users / Enrolment methods Turn on (click eye icon) 'Guest access' Site administration Search 'autologinguests' Turn it on and save changes. View the course page and copy the url to clipboard so you can go back there Log out Upgrade the code to Moodle 4.0 Visit the course page directly EXPECTED: You should not see a coding exception error at this point, but should be redirect to the upgrade process as normal. BEFORE FIX: A coding exception appears.

      This, given then nature of the error message, seems to be related to MDL-72837.

      In a couple of testing sites that I've around (pointing to integration.git repository) and that I had not visited since some good days.

      • Not being logged.in.
      • Visiting the main (/index.php) page.
      • I have got this:

        Error
        Coding error detected, it must be fixed by a programmer: Unexpectedly found non-versioned cache entry
        Debug info: 
        Error code: codingerror
        Stack trace:
        line 464 of /cache/classes/loaders.php: coding_exception thrown
        line 511 of /cache/classes/loaders.php: call to cache::check_version()
        line 1787 of /cache/classes/loaders.php: call to cache->get_implementation()
        line 436 of /cache/classes/loaders.php: call to cache_application->get_implementation()
        line 478 of /lib/modinfolib.php: call to cache->get_versioned()
        line 441 of /lib/modinfolib.php: call to course_modinfo->__construct()
        line 2242 of /lib/modinfolib.php: call to course_modinfo::instance()
        line 65 of /blocks/site_main_menu/block_site_main_menu.php: call to get_fast_modinfo()
        line 787 of /blocks/moodleblock.class.php: call to block_site_main_menu->get_content()
        line 235 of /blocks/moodleblock.class.php: call to block_list->formatted_contents()
        line 1222 of /lib/blocklib.php: call to block_base->get_content_for_output()
        line 1280 of /lib/blocklib.php: call to block_manager->create_block_contents()
        line 377 of /lib/blocklib.php: call to block_manager->ensure_content_created()
        line 4028 of /lib/outputrenderers.php: call to block_manager->region_has_content()
        line 54 of /theme/boost/layout/drawers.php: call to core_renderer->blocks()
        line 1435 of /lib/outputrenderers.php: call to include()
        line 1361 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
        line 120 of /index.php: call to core_renderer->header()
        

      Workaround: Just reload the page and the error is gone. So it seems that it only happens once.

      But it shouldn't happen ever.

            quen Sam Marshall
            stronk7 Eloy Lafuente (stronk7)
            Tim Hunt Tim Hunt
            Ilya Tregubov Ilya Tregubov
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 10 minutes
                10m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.