I have upgraded to Moodle 4.0.2 (Build: 20220711)
I get the error below when I try to update any activity or resource:
Coding error detected, it must be fixed by a programmer: The 'name' value must be set in other.
What should I do?
What's the PHP version? And what's the database type (MySQL, MariaDB, PostgreSQL or SQL Server) and version?
When updating a label update_moduleinfo() is called which in turn calls label_update_instance() and this function sets the 'name' property that gets passed to the course_module_updated event. This property is set to either the first 50 characters of the label text, or "Label" if the label has no text. So either way 'name' should never be blank.
Can you tell us some other activities that also result in this error?
$plugin->version = 2019120200; // The current module version (Date: YYYYMMDDXX).
$plugin->release = '3.7.0'; // Human-friendly version name.
$plugin->requires = 2019052000; // requires Moodle 3.7.
$plugin->maturity = MATURITY_STABLE; // Stable branch MOODLE_37_STABLE
I installed the scheduler plugin and now the Forum Edit settings error has changed to the following:
Coding error detected, it must be fixed by a programmer: The 'name' value must be set in other.
More information about this error
Debug info:Did you read the page for "more info' link?
https://docs.moodle.org/400/en/error/debug/codingerror
where is says:
"Coding errors (or coding_exceptions) are problems that are probably caused by incorrect code. For example, a plugin that does not communicate correctly with Moodle core."
That page also suggest that purging caches might make the error go away.
The environment check in Moodle checks for PHP version + extensions, MySQL/DB version, DB character set/collation, etc. Core stuff. It doesn't check for compatibility of addons ... such as mod_scheduler.
Admin user should make a list of addons installed (like your /local/o365) and check the plugins site @ https://moodle.org/plugins/ to see if there is a compatible version of the plugin for the destination version of core.
The link to the mod_scheduler plugin shows it's compat up version 3.11 of moodle core code ... not the 4.0.2 to which you've upgraded.
Please see: https://moodle.org/plugins/mod_scheduler/versions
An incompatible plugin could cause above.
If you can login, go to: /admin/plugins.php?updatesonly=0&contribonly=1 and see what addons are installed and if any are in need of updating.
Mind sharing from what older version of Moodle did you upgrade to 4?
'SoS', Ken
One thing to check: you have some files and folders from previous Moodle versions. For example if you check the plugins overview page you probably have Health center (tool_health) and Quiz results (block_quiz_results) installed. Unless you installed these separately they shouldn't be present with Moodle 4.0.x – they were both present in Moodle 3.11.
So make sure you have got the Moodle 4.0.2 source code only. This is normally a process of:
When you upgraded, you did remember to copy from old code mods/blocks/themes addon directories to new code mods/blocks/themes addon directories?
mod_scheduler shows to be compatible up to 3.11
https://moodle.org/plugins/mod_scheduler/versions
'SoS', Ken
The problem is in the Unicheck code - in the file plagiarism/unicheck/lib.php. In line "310 return" should be "return $data" .
I think you're correct, following change MDL-74533 in Moodle 4.0.2 there are some plagiarism plugins causing this problem. I think that's also the cause in this thread, your reply pointed me to the likely cause.