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

Impossible to toggle the state of AI placement actions

XMLWordPrintable

    • 1
    • Team Hedgehogs 2025 Sprint 1.1

      Experimenting with AI providers for my project week, I discovered that the toggle for AI placement actions is broken - trying to use them currently produces the following exception in WS request:

      [
      	{
      		"error": true,
      		"exception": {
      			"message": "Invalid parameter value detected",
      			"errorcode": "invalidparameter",
      			"backtrace": "* line 345 of /lib/external/classes/external_api.php: core\\exception\\invalid_parameter_exception thrown\n* line ? of unknownfile: call to core_external\\external_api::validate_parameters()\n* line 228 of /lib/external/classes/external_api.php: call to call_user_func()\n* line 83 of /lib/ajax/service.php: call to core_external\\external_api::call_external_function()\n",
      			"link": "http://localhost:8000/admin/settings.php?section=aiplacement_editor",
      			"moreinfourl": "https://docs.moodle.org/500/en/error/debug/invalidparameter",
      			"debuginfo": "Missing required key in single structure: pluginaction\nError code: invalidparameter"
      		}
      	}
      ]
      

      Broken by MDL-82977 because the parameter name was changed, but the caller still passes "plugin"

            pholden Paul Holden
            pholden Paul Holden
            Huong Nguyen Huong Nguyen
            Jun Pataleta Jun Pataleta
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 7 minutes
                1h 7m

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