Can't add activity or resource

Can't add activity or resource

by Aurimas Žagunis -
Number of replies: 5

Hi,

We are facing the problem that we can't add an activity or resource after the moodle upgrade.

When we try to add activity or resource the screen just freezes and nothing happens



We also tried to apply other themes and upgrade to the newest version (3.9.1+) but we are stuck with the same result.

Moodle version - 3.9.1 on Linux

Theme - Lambda

PHP version - 7.3.19


Average of ratings: -
In reply to Aurimas Žagunis

Re: Can't add activity or resource

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

It looks like JavaScript is broken on that page. Are there errors in the browser's console?

Has the site been recently upgraded from an earlier major version (e.g. 3.8, 3.7)? If so were the instructions followed? Or was a third party service like Softaculous used? The latter may have left files behind that must not exist for 3.9 to work. If this is the case ensure that the source code folder contains only Moodle 3.9.1 files, e.g. by moving the existing files to a backup folder and replace them with the official Moodle download, and copy config.php and additional plugins/themes across.

In reply to Leon Stringer

Re: Can't add activity or resource

by Aurimas Žagunis -
We upgraded from 3.7.1 version and followed all of the instructions.

We now installed clean 3.9.1 version without any additional plugins or themes because we thought that they might cause this problem.

But the problem still exists.
In reply to Aurimas Žagunis

Re: Can't add activity or resource

by Ken Task -
Picture of Particularly helpful Moodlers

IF Leon's advice doesn't fix it, try adding a line to your config.php file:

$CFG->modchooserdefault=0;

That should return the old behavior of picking.

'SoS', Ken

Average of ratings: Useful (1)
In reply to Ken Task

Re: Can't add activity or resource

by Aurimas Žagunis -
We added this line to file and this happened:

* "Add activity or resource" link disappeared in every course
* This error occurs in every course

In reply to Aurimas Žagunis

Re: Can't add activity or resource

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hello,

There have been two bugs reported recently regarding upgraded sites and the activity chooser - MDL-69076 and MDL-69079.

MDL-69076 is closed as deferred, though I understand from the comments that the fix is included in MDL-69079, which has a fix version of Moodle 3.9.2 and will be available on 14 September 2020.