I got a weird problem: Actually, our Moodle seemed to work just fine - until we stumbled about this... If I make a user course creator or trainer (it does not matter whether globally, within a category or on course level), they can create a course all right, but then they can't fill it with activities and resources, the respective fields just won't show up. Editing is enabled, of course.
If i go to the course as admin, everything looks oK, I can insert activieties etc.
I tried to give them course creator roles on each level (globally down to course), to no avail.
Our Moodle is 1.8.2 (updated from 1.6), apart from this very problem, everything seems to be oK. Any hint where I should lokk for the cause of this?
When you upgraded to Moodle 1.8, did you reset all the predefined roles to default, as recommended in the Upgrading to Moodle 1.8 documentation?
If so, then users assigned the role of course creators need to be assigned the role of teacher too in order to add activities to a course.
thanks for this very quick reply.
Yes, I did reset the roles to default, however, this didn't change thing as far as my problem is concerned.
Regarding assigning a teacher role to course creators: I was under the impression that this happens automatically (according to the setting in administration / users / rights / user settings (sorry, my Moodle is German, so I just translated the terms - they might look somewhat different in a real English installation). There it says (creatornewroleid) that a course creator is automatically made teacher in the respective course - or do I get that one wrong?
And - I assumed that - if I make a newly added user a course creator - he / she really can create a course without being manually made a teacher as well?
Anyway, I followed your advice and assigned one Course creator a teacher role (globally), and - alas - it worked. But actually, I don't want to assign those roles globally, but within the course categories - course creators should only be allowed to create and teach courses within their categories...
Once again, do I get anything wrong here?
Somehow, I'm slightly confused here...
BTW, I switched debugging on to find out what is going wrong - now I get
Notice: Undefined property: stdClass::$modinfo in /srv/www/htdocs/mz/moodle/lib/datalib.php on line 1376
in /my as soon as I log in as a course creator... Might that hint me to the real problem?
Any further help and clarification is greatly appreciated. Thanks again, uwe
Yes, you're right about course creators being automatically assigned the role of teacher (according to the creatornewroleid setting), but only in new courses they create. If you assign a user the role of course creator, either globally or in a category context, then they are NOT automatically assigned the role of teacher in existing courses, only in new courses they create.
You may find it helpful to create a test user account, assign it the role of course creator, then login as the test user and try creating a course.
Please note that it makes no sense to assign a user the role of course creator in a course context because they can't do anything!
thanks. What you said meets my assumptions - but still, I can't get it to work - I'm about to bite into my screen
Here's what I did as a last attempt: I compared the behaviour of our online Moodle with a fresh Moodle installation (1.8) on USB drive. There, I created a new course category, then created a new user, made this user coursecreator for this category. Logged in as this user - and, voila, everything worked just fine: I can create courses, assign teachers, fill the course with activities etc.
This does *not* work in my online installation - I can create courses, but I can't "fill" them.
I then compared the global role permissions for course creators and teachers (before that, I had reset these permissions to their default values in the online Moodle, of course). There were some differences between the two installations, the USB-installation 1.8. seemed to be way more permissive (a lot more values set to "allow" where the online installation had "not set"), so I copied these more permissive settings and made sure that permissions on the non-global levels were set to "inherit".
Then, I created a new user for the online Moodle, made this user coursecreator in a certain category, logged in as this user. Can create courses and assign teachers (including this very user). But, once again, I can not choose activities and resources!
The only way to get around this so far is to assign the role of course creator globally - but for obvious reasons this is not actually what I want to do for all the course creators.
As far as I can see, my procedure as such seems to be correct, so I assume that some settings might be incorrect (compare the error message I posted earlier). But right now I don't have a clue what else to check....
In my desperation, I also ran a system check from within Moodle's administration. This returned a few error messages:
failed: group/simpletest/test_basicgrouplib.php / ► basicgrouplib_test / ► test_get_user / ►
True assertion got False at [/srv/www/htdocs/mz/moodle/group/simpletest/test_basicgrouplib.php line 37]
exception: group/simpletest/test_basicgrouplib.php / ► basicgrouplib_test / ► test_get_user / ►
Unexpected PHP error [Trying to get property of non-object] severity [E_NOTICE] in [/srv/www/htdocs/mz/moodle/group/simpletest/test_basicgrouplib.php] line 
failed: lib/simpletest/slowtestcode.php / ► slow_code_test / ► test_php_syntax / ►
Cannot test PHP syntax because PHP is not on the path. at [/srv/www/htdocs/mz/moodle/lib/simpletest/slowtestcode.php line 34]
failed: lib/simpletest/testdmllib.php / ► datalib_test / ► test_insert_record / ►
Insert bad data - error should have been printed. This is known not to work on MySQL. at [/srv/www/htdocs/mz/moodle/lib/simpletest/testdmllib.php line 286]
Could that perhaps hint at some wrong system settings?
Again, any help is greatly appreciated.
I have exactly the same problem. Did you ever find a solution to it? I'd be grateful to find out what it was if you did.
Every time my user creates a new course, inside a category that she is already assigned both Course Creator and Teacher for, she cannot add any activities or resources, although she does have the Edit button there.
If I add the course for her, inside the category, then she's fine, she has all the options she needs. It's seems like the act of her creating a course somehow corrupts the initial role settings that were placed at a category level. Affecting her Teacher role attributes.
Having the exact same problem here. Did anyone ever find a solution? As far as I can tell, all the permissions are correct. I've created a test user and set them as a course creator, then created a course using that account and although they can turn editing on, there is no option to add resources or activities.
You say they can turn on the editing but there is no option to add resources or activities? That is very strange behaviour.
What happens if you get them to create a new course and then when they get the screen with the option of adding users -they then assign themselves the role of teacher - and then can they edit the course they just made? In theory a course creator is meant to be automatically a teacher in a course they made but for some reason I have found it doesn't always happen.
I had a course creator who I added as a teacher also, and they had no dropdown boxes with editing turned on. I then removed them from the course creator list so they were just a teacher, and still they can't add resources!
Asher, I could create this teacher cannot add resources and activities, by setting choices wrong in >security>.Moodle security.
Could this be the problem? (check: as admin you still can add Res & act..)
Does anybody know how it was solved ? I got th same problem in a brand new 3.2+ Moodle freshly installd after download and cannot find the rason. I followed all suggstions and checked, the roles, the no force group and so on....
Thank you for your answer
I'm having the same "cannot add activities & resources" problem within Moodle 3.2
Can it be related to the chosen theme ? I'm currently using Adaptable.
I have a user with roles Course Creator and Teacher and have Language defined as US ENu, And I am using the Moove theme and Flexible Sections course format. I am not able to add Activities and Resources.
Wondering if anyone has a solution for it.
We are facing same issue in moodle 3.3 and fixed this.
1. Enable debugging mode and check error message.
2. Click plugin overview and check update.
3. Assign writing permission all plugin and other require director.
4. update all required plugin.
5. continue to upgrade database.
Hope its work.
I had the same issue (not being able to 'Add an Activity or Resource' and found a simple solution that worked for me:
-go to the Course page
-select the Settings 'gear'
-select 'edit settings' (1st option)
-scroll to 'Course Format'
-change from 'Single Activity Format' (the default setting, I believe) to 'Topics Format'
-scroll to bottom and select 'Save and Return'
--> voila: I can now 'Add an Activity or Resource'!