dbnschools / moodle-theme_fordson

Theme for Moodle 3.3+
42 stars 40 forks source link

Invalid param AJAX error on admin pages #97

Closed DavidVogel-NC closed 4 years ago

DavidVogel-NC commented 4 years ago

I just installed Fordson on several sites using Moodle 3.8. It's working fine on most of them, but on one of them every time an admin page loads with Fordson as the active theme I get this error:

Invalid parameter value detected File: /lib/externallib.php Line: 332 Missing required key in single structure: year Error code: invalidparameter

I assume Fordson is running some sort of AJAX call on admin pages which is returning unexpected params?

DavidVogel-NC commented 4 years ago

Clearing theme caches did not help. The error does not occur with Boost. The site is running Moodle 3.8+ (Build: 20191212), and I'm using the latest Fordson v3.8 release 1.2 which I just downloaded today.

dbnschools commented 4 years ago

I would suggest you review what is different on the site having issues over the other ones that function normally. I cannot reproduce this issue and it is odd that it doesn't occur on your other sites.

marinaglancy commented 4 years ago

Hello. This happens on all pages that have layout columns2.php , for example "admin" and "coursecategory". They forgot to set the $hascourseblocks variable and the block slider does not show.

To reproduce:

On other pages there is a block slider that displays all blocks, on admin pages it is missing. The javascript for the calendar block is loaded on the page but the html is not rendered

jtsafran commented 2 years ago

Also want to add for anyone that comes across this error but is using Boost and are seeing it in the grader (as I did when googling): https://tracker.moodle.org/browse/MDL-73491

The work around in either case here is to set the offending block_calendar to display on "Any course page" or "Any type of course main page" instead of "Any page".