Coding error detected, it must be fixed by a programmer: Block type admin has been disabled by the administrator.
can anyone help me ? what is actually going wrong????
Please see the attachment..
I still get the same error message when creating a new course using the site admin account - I use Moodle 2.0.1.
Anyhow the course is created - I can see it in the course list. When I click on the course, I get a new error message: "Error finding or creating section structures for this course". Clicking the continue button and again cklicking the course in the course list everything seems ok.
I already compared the enrolment settings of my installation with the moodle demo site installation - I cannot find any difference.
The same problem appears with users having the system role of a coursecreator: In Moodle 1.9.+ they could create new courses and automatically got assigned the teacher role in the new course. Now they can create new courses (with all the errors described above), but when they finally click on the course they get the message "You cannot enrol yourself in the course".
Site administration > plugins > Enrolments > manage enrolment plugins: in the settings of both manual enrolments and self enrolment the checkbox "Add instance to new course" ist checked - so I expect that this enrolment plugin is available by default in a new course.
Any help is appreciated!
I found the solution of the problem: I used a Moodle 1.9.+ config file with the following non-default entries:
$CFG->defaultblocks_override = 'activity_modules,recent_activity,search_forums:participants,admin';
$CFG->defaultblocks_topics = 'activity_modules,recent_activity,news_items:participants,admin';
$CFG->defaultblocks_weeks = 'activity_modules,recent_activity,news_items:participants,admin';
Everything works fine after uncommenting these lines.
Seems that these settings are no longer available in Moodle 2.0+.
Gisela, glad you managed to solve the problem. Thanks for your feedback.
Thank you Gisela,
I had exactly the same problem and your solution quickly lead me to the fix. I just had the single line in my config.php
$CFG->defaultblocks_override = 'calendar_month,admin:news_items,calendar_upcoming,recent_activity';
Once I removed admin from the string and left
$CFG->defaultblocks_override = 'calendar_month:news_items,calendar_upcoming,recent_activity';
Hi, I'm using Moodle 2.0.3 and have tried to add default blocks in the site congig page. I added:
$CFG->defaultblocks_site_override = 'various blocks' ;
$CFG->defaultblocks_topics_override = 'various blocks'; $CFG->defaultblocks_weeks_override = 'various blocks';
But although I no longer get errors, when I add courses blocks not specified in the override still apprear and other blocks added to the list still do not apprear... Does anyone have any suggestions?
for those of you who might have had the same problem, I found that the course/format/social/cofig in scorm and social were overriding the default blocks added in the main config page! I commented all of those out and set my default blocks in the formats I use, which are week and topic.
hope this helps someone else!
If you have the same error "Block type xxxx has been disabled by the administrator" with another block type like news_items or calendar_upcoming, check if a "space" is not in the line.
For example, I wrote this line in my config.php :
$CFG->defaultblocks_topics = 'participants:online_users,news_items,recent_activity, calendar_upcoming';
and I got the error "Block type calendar_upcoming has been disabled by the administrator" when creating course, because of the space behind calendar_upcoming.
Many thanks. This have to be in documentation or in moodle config.php file comments.
Thanks for bring this to attention Santiago,
https://docs.moodle.org/31/en/Block_layout#Default_block_layout_for_new_courses has been updated to reflect this.
For some reason we have just run into this error. No site wide changes have been implemented.
It only happens when we try to edit Forums.
We're still getting this problem.
The suggestions described here have been implemented, latest Moodle code updated, all the plugins updated, without success. This is only affecting the Forums. You can create a forum, post to a forum but not edit which is when the error message appears. TIA
I think I encounter this issue to. If a User tries to access a assignment. That error occurs to. The strange thing is, that assignment is not shown in grade book. alle other assignments in the course or other courses does works. only this one occurs the error.
These are the errors I receive: