What is this error? Can someone explain me? And help me in the solution?
The plugin error is normally caused by en empty directory - block/admin in this case.
How can I fix this? Could you explain me?
Start by telling us what you did that caused this error?
I have a platform in version 1.9.19 with some backup of courses, students and etc.
My boss asked me to learn to migrate from 1.9.19 to the current version, one version at a time (1.9.19, 2.0, 2.1 and so on).
When trying to do the migration from 1.9.19 to 2.0 gave this problem, among others in other plugins like books, excercise, lams, hotspot among others.
Right... so what did you actually DO?
It seems like you are missing some of the Moodle .php files. Did you copy the 2.0 code over the 1.9 folder (i.e. into the same folder)?
I would do the upgrade this way:
- Backup your Moodledata folder and Moodle database. Check the backups!
- Stop your web server (IIS / Apache).
- Download the Moodle 2.0 code .zip file and then extract it to c:\sites\salavirtural2\moodle20.
- Rename the existing c:\sites\salavirtural2\moodle folder to c:\sites\salavirtural2\moodle19.
- Rename the c:\sites\salavirtural2\moodle20 folder to c:\sites\salavirtural2\moodle.
You've effectively "replaced" the 1.9 code with the 2.0 code. - Copy your config.php file from the 19 folder to the 20 folder. Or use the 2.0 config-dist.php to make a new config.php file.
- Get the 2.0 versions of any non-core plugins that you have in 1.9 and extract them to the relevant folders in the new c:\sites\salavirtural2\moodle folder.
- I don't recall that far back if the 1.9 themes are compatible with 2.0. I think you'll need a new theme. Pick one and copy it to your Moodle c:\sites\salavirtural2\moodle\theme folder.
- Start your web server (IIS / Apache).
- Open your Moodle site. It should detect the new version and begin the upgrade.
In case your intention is to march forward towards a Moodle version which is still maintained, the route does not include the version 2.0. Please read https://moodle.org/mod/forum/discuss.php?d=373203#p1504933.