After upgrade cannot add activity or resourse

After upgrade cannot add activity or resourse

by Dream Glish -
Number of replies: 7

Hello,

I upgraded to the last moodle version (3.8.2+) 2 days ago and now I cannot add activities or resources. I see the link, but it is actually not a link. More or less it happens like the following topic: https://moodle.org/mod/forum/discuss.php?d=252193



I've tried different things and I kind of found the problem but I don't know how to solve it.

There are 2 cases where the "Add activity or resources" is clickable:

So it seems to me it has to do with AJAX, but I have no idea how to fix it.

Thanks in advanced.


EDIT: I already tried to change the theme just in case. I tried the classic and the boost. The problem persists.

Average of ratings: -
In reply to Dream Glish

Re: After upgrade cannot add activity or resourse

by Dream Glish -
I cannot change positions / move up or down pages and exercises inside a course.

And disabling "Activity Editing Menu" doesn't solve this.


In the inspector there is an error:

Uncaught TypeError: M.course.format.get_section_selector is not a function
    at /lib/requirejs.php/1585738440/core/first.js:102
    at YUI._notify (yui_combo.php:9)
    at yui_combo.php:9
    at YUI._notify (yui_combo.php:9)
    at YUI.T (yui_combo.php:9)
    at e.Loader._finish (yui_combo.php:16)
    at e.Loader._onSuccess (yui_combo.php:16)
    at e.Loader.p (yui_combo.php:17)
    at e.Loader.onSuccess (yui_combo.php:17)
    at s._finish (yui_combo.php:12)
In reply to Dream Glish

Re: After upgrade cannot add activity or resourse

by Dream Glish -
Please, can anyone help with this? It is urgent I've spent hours with no luck. I will re-update moodle but I'm not sure that solves the problem.

Thanks.
In reply to Dream Glish

Re: After upgrade cannot add activity or resourse

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
You must have tried the basic things. You said "tried different things", unless we know what those things are, we have to start from the beginning.
- cleared Cache, in the server and on browser?
- changed the theme to Boost?
- tried changing Activity chooser default (modchooserdefault)
- as a normal user in Teacher role rather than 'admin'
In reply to Visvanath Ratnaweera

Re: After upgrade cannot add activity or resourse

by Dream Glish -
Hi Visvanath,

Yes, cache has been cleared (Moodle and cloudflare).
I also tried Boost and Classic to make sure it wasn't the theme.
Teacher and admins cannot add activities either.

And as I explained in the first message when I untick modchooserdefault, then I see the tabs instead of the links to add activities and I can add activities. BUT I still cannot move lessons and activities up and down inside the course by dragging them, which is essential in Moodle.

So I'm assuming the problem with AJAX or JS persists.

THANKS SO MUCH for answering. I thought I was alone in this, hehe
In reply to Dream Glish

Re: After upgrade cannot add activity or resourse

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators

In the other thread your have linked to your OP, the experts point to JavaScript errors, possibly a bug. I am not familiar with the subject.

In my area, performance, I have seen Moodle sites on very week servers being unable to load these widgets - most notoriously the File picker. That is why I asked "as a normal user in Teacher role rather than 'admin' ". Is your server from a cheap mass hosting?

P.S. Dream Gilsh, I prefer talking to real people during the day time. Dreams are for night time. Unless you come up with a convincing persona, I am out. sad

In reply to Visvanath Ratnaweera

Re: After upgrade cannot add activity or resourse

by Dream Glish -
I'm with an advanced plan in ecowebhosting. They are a small company that works pretty well and everything has worked perfectly with moodle and Wordpress. I don't think it has to do with them.

Should I redo the upgrade? I'm trying to avoid because it takes time and I'm not sure it will solve the problem.
In reply to Dream Glish

Re: After upgrade cannot add activity or resourse

by Dream Glish -
Fixed. I just re-upgraded moodle adding my theme and it works.
Average of ratings: Useful (1)