Updating to 3.1.1 - Lost permissions

Updating to 3.1.1 - Lost permissions

by Henrique Junger -
Number of replies: 15

Hi,

I recently updated my moodle version from 3.0.3 to 3.1.1. Although the update seems to be okay, recently we realize that we lost permission privileges to several tools and features for the Admin users. We realize that when we try to access Administration > Users > Accounts > Upload users.

The message is "Invalid permissions detected when trying to create a directory. Turn debugging on for further details.", but I can access the Debugging as well, with the same error message.

Moodle is running in a CentOS server. I tried to give 777 and 755 permissions to the moodle folders and files, but it didn't solve my problem.


Can anyone help me? Does anyone had the same problem?

Attachment error-message.PNG
Average of ratings: -
In reply to Henrique Junger

Re: Updating to 3.1.1 - Lost permissions

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

There are several places this error can be generated plus more info is available from the error itself, so to avoid guesswork you need to enable Debugging.

You can do this by copying (and uncommenting) the debugging settings from config-dist.php to your config.php. 

In reply to Howard Miller

Re: Updating to 3.1.1 - Lost permissions

by Henrique Junger -

Hi,

I did what you said and this is the error it shows:


Duplicate admin category name: users
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 30 of /admin/settings/top.php: call to admin_category->add()
  • line 7266 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: courses
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 31 of /admin/settings/top.php: call to admin_category->add()
  • line 7266 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: grades
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 32 of /admin/settings/top.php: call to admin_category->add()
  • line 7266 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: competencies
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 33 of /admin/settings/top.php: call to admin_category->add()
  • line 7266 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: badges
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 34 of /admin/settings/top.php: call to admin_category->add()
  • line 7266 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: location
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 35 of /admin/settings/top.php: call to admin_category->add()
  • line 7266 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: language
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 36 of /admin/settings/top.php: call to admin_category->add()
  • line 7266 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: modules
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 37 of /admin/settings/top.php: call to admin_category->add()
  • line 7266 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: security
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 38 of /admin/settings/top.php: call to admin_category->add()
  • line 7266 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: appearance
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 39 of /admin/settings/top.php: call to admin_category->add()
  • line 7266 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: frontpage
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 40 of /admin/settings/top.php: call to admin_category->add()
  • line 7266 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: server
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 41 of /admin/settings/top.php: call to admin_category->add()
  • line 7266 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: mnet
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 42 of /admin/settings/top.php: call to admin_category->add()
  • line 7266 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: reports
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 43 of /admin/settings/top.php: call to admin_category->add()
  • line 7266 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: development
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 44 of /admin/settings/top.php: call to admin_category->add()
  • line 7266 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: unsupported
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 47 of /admin/settings/top.php: call to admin_category->add()
  • line 7266 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: themes
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 12 of /admin/settings/appearance.php: call to admin_category->add()
  • line 7277 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: backups
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 162 of /admin/settings/courses.php: call to admin_category->add()
  • line 7277 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: experimental
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 8 of /admin/settings/development.php: call to admin_category->add()
  • line 7277 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: gradereports
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 194 of /admin/settings/grades.php: call to admin_category->add()
  • line 7277 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: gradeimports
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 207 of /admin/settings/grades.php: call to admin_category->add()
  • line 7277 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: gradeexports
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 222 of /admin/settings/grades.php: call to admin_category->add()
  • line 7277 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: mnetpeercat
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 18 of /admin/settings/mnet.php: call to admin_category->add()
  • line 7277 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: accounts
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 5 of /admin/settings/users.php: call to admin_category->add()
  • line 7277 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: roles
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 6 of /admin/settings/users.php: call to admin_category->add()
  • line 7277 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: modsettings
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 34 of /admin/settings/plugins.php: call to admin_category->add()
  • line 7279 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: modassignfolder
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 29 of /mod/assign/settings.php: call to admin_category->add()
  • line 89 of /lib/classes/plugininfo/mod.php: call to include()
  • line 45 of /admin/settings/plugins.php: call to core\plugininfo\mod->load_settings()
  • line 7279 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: assignsubmissionplugins
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 287 of /mod/assign/settings.php: call to admin_category->add()
  • line 89 of /lib/classes/plugininfo/mod.php: call to include()
  • line 45 of /admin/settings/plugins.php: call to core\plugininfo\mod->load_settings()
  • line 7279 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: assignfeedbackplugins
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 290 of /mod/assign/settings.php: call to admin_category->add()
  • line 89 of /lib/classes/plugininfo/mod.php: call to include()
  • line 45 of /admin/settings/plugins.php: call to core\plugininfo\mod->load_settings()
  • line 7279 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: modltifolder
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 57 of /mod/lti/settings.php: call to admin_category->add()
  • line 89 of /lib/classes/plugininfo/mod.php: call to include()
  • line 45 of /admin/settings/plugins.php: call to core\plugininfo\mod->load_settings()
  • line 7279 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: formatsettings
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 49 of /admin/settings/plugins.php: call to admin_category->add()
  • line 7279 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: blocksettings
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 59 of /admin/settings/plugins.php: call to admin_category->add()
  • line 7279 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: messageoutputs
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 67 of /admin/settings/plugins.php: call to admin_category->add()
  • line 7279 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: authsettings
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 76 of /admin/settings/plugins.php: call to admin_category->add()
  • line 7279 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()
Duplicate admin category name: enrolments
  • line 955 of /lib/adminlib.php: call to debugging()
  • line 117 of /admin/settings/plugins.php: call to admin_category->add()
  • line 7279 of /lib/adminlib.php: call to require()
  • line 3671 of /lib/navigationlib.php: call to admin_get_root()
  • line 3537 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
  • line 724 of /lib/pagelib.php: call to settings_navigation->initialise()
  • line 773 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 3124 of /lib/navigationlib.php: call to moodle_page->__get()
  • line 829 of /lib/pagelib.php: call to navbar->has_items()
  • line 26 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
  • line 1028 of /lib/outputrenderers.php: call to include()
  • line 958 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 2809 of /lib/outputrenderers.php: call to core_renderer->header()
  • line 387 of /lib/setuplib.php: call to core_renderer->fatal_error()
  • line ? of unknownfile: call to default_exception_handler()

In reply to Henrique Junger

Re: Updating to 3.1.1 - Lost permissions

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Something has gone badly wrong during the upgrade.  I hope you have a backup!!

How did you do the upgrade? Is there any chance you have copied new code over the top of the old (rather than moving the old out of the way)?

Sounds a bit like... https://moodle.org/mod/forum/discuss.php?d=337051

In reply to Howard Miller

Re: Updating to 3.1.1 - Lost permissions

by Henrique Junger -

Humm... Yes I followed a script that says to me that after extracting the tgz file, I had to copy two themes and the config.php, for example:

 - cp -pr moodle.backup/theme/mytheme moodle/theme/mytheme

After this I opened moodle and it started the database update.

I do have a backup from the files, but when I tried to use it, I got an error saying that the CODE i'm running is older than the database was built for. I have a backup from the DB as well, but I did last week and some users had already used it, so I was trying to solve the problem without restoring it, so they don't miss everything they have done.

I'm attaching the files for the themes and the config.php I used. Is there any way to come back the database?

Thanks for all the help.

(Edited by Helen Foster to remove the attached config file. Please change the db username and password for security reasons. Original submission Wednesday, 3 August 2016, 2:01 PM)

In reply to Henrique Junger

Re: Updating to 3.1.1 - Lost permissions

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I'm confused... did you upgrade the whole Moodle site or just a theme? 

In reply to Howard Miller

Re: Updating to 3.1.1 - Lost permissions

by Henrique Junger -

No, what I did was:

 - Downloaded the new tgz file;

 - Changed the name of the old moodle folder to moodle.backup;

 - Extracted the tgz file;

 - Copy two themes from the backup to the current;

 - Copy the config.php to the new moodle;

 - Start bone, which triggered the database update, and updated the database.


In reply to Henrique Junger

Re: Updating to 3.1.1 - Lost permissions

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
Did you change permissions on the downloaded moodle folder..?  Recursively?  
In reply to Emma Richardson

Re: Updating to 3.1.1 - Lost permissions

by Henrique Junger -

Not before today, after realizing several tools in the adminstration weren't open, I start to look for a solution... One of the things I tried to do was change the permission of the files and folders, that's when I tried to use the chmod command to 777... but that didn't worked...

In reply to Henrique Junger

Re: Updating to 3.1.1 - Lost permissions

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

chmod -R 777?  You need the -R to make it recursive...

I would suggest, redownloading the code (hopefully there is a newer version out to trigger another upgrade) and trying again.  If that  doesn't work, then you are going to have to restore to prior to the upgrade and start again.

In reply to Emma Richardson

Re: Updating to 3.1.1 - Lost permissions

by Henrique Junger -

Yes, I used the -R, I did: "chmod -R 777 moodle"... I also tried with 755, just in case... :P

In reply to Henrique Junger

Re: Updating to 3.1.1 - Lost permissions

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

If that's what you did then it should have worked. 

If you restore a backup and you get the complaint about a new version it is likely to be true. Is it a backup taken *after* the upgrade? Or perhaps you have found code older than the original version? 

I'm struggling to tell you what to do next. I would figure out a way to restore the site. I would then enable Debugging in the config.php file (lines from section 7 of config-dist.php) and test the site thoroughly. If all was ok, I would re-do the upgrade definitely from the command line upgrade tool. I would check very carefully for errors. 


In reply to Howard Miller

Re: Updating to 3.1.1 - Lost permissions

by Henrique Junger -

I didn't understand your question: "Is it a backup taken *after* the upgrade? Or perhaps you have found code older than the original version?"

What moodle didn't allowed me to do is to come back for the previous version. What I tried to do was change the moodle folder to moodle.current, and the moodle.backup to moodle again. But when I did this I got the error attached, saying that "ERROR!!! The code you are using is OLDER than the version that made these databases!". I believe that happens because after updating moodle, it also update something in the database and now I can't use the old code.


Attachment error-message-db.PNG
In reply to Henrique Junger

Re: Updating to 3.1.1 - Lost permissions

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
What I mean is that I think you can safely assume the message is *true*.  There are really only two possibilities...


- the backup is *newer* than you think
- the Moodle code you are trying to run in *older* than you think
- both sad

I can't tell you which but the Moodle code needs to be the same version as the database contents or newer (in which case it will trigger an upgrade). 

In reply to Howard Miller

Re: Updating to 3.1.1 - Lost permissions

by Henrique Junger -

Well, unfortunately I had to restore my last snapshot, so we did lose a lot of work that we'll have to do it again.... Thanks so much for trying to help!!

In reply to Henrique Junger

Re: Updating to 3.1.1 - Lost permissions

by Robert Brenstein -
As Howard said, the datbase and the Moodle code must match, so doing site backup means not only making a backup copy of the Moodle folder but also a dump of the Moodle database, so you can restore the functional site.