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

Error: too much data passed as arguments to js_call_amd

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 4.0.6, 4.1.1
    • Themes
    • None
    • MOODLE_400_STABLE, MOODLE_401_STABLE

      I get an error message in debug mode at the bottom of a settings page.

      ```
      Too much data passed as arguments to js_call_amd("core/showhidesettings", "init"). Generally there are better ways to pass lots of data from PHP to JavaScript, for example via Ajax, data attributes, ... . This warning is triggered if the argument string becomes longer than 1024 characters.

          line 1066 of /lib/outputrequirementslib.php: call to debugging()
          line 173 of /admin/settings.php: call to page_requirements_manager->js_call_amd()
      ```

      I send this error to the maintainer of the plugin theme_boost_union because the error came up on two of its settings pages. Alex Bias wrote that this is an error in the Moodle core. It should be fixed in core code.

      https://github.com/moodle-an-hochschulen/moodle-theme_boost_union/issues/198

            Unassigned Unassigned
            krause Ralf Krause
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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