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

Repeated inclusion of same language file in string manager causes out-of-memory error during upgrade

XMLWordPrintable

      When trying to upgrade (specifically to Moodle 3.5 but may affect other versions): we've seen cases where out-of-memory errors are encountered because the same language file seems to be pulled over and over via include() function within the load_component_strings() method. Once I switch these to include_once the problem is resolved, so my proposed solution is to change all include() calls which are inside loops in that function to include_once() which ensures that the language files are only included once - this prevents getting an out-of-memory error and allows the upgrade to finish normally.

            dobedobedoh Andrew Lyons
            lreynolds Logan Reynolds
            Victor Déniz Falcón Victor Déniz Falcón
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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