databank error upgrade to 3.8

databank error upgrade to 3.8

by Patricia Hazemeijer -
Number of replies: 5

Hello,

I am trying to get help for my problem. First I was using Moodle version 3.4.8 and then I would like to update the version. I have done it and my website still runs. https://www.study247.nl/moodle  (PHP 7.3) For updating I am using Installatron. My webhosting is bhosted

The problem is that my old users, still can use the courses, but when I try to make a new user for a course then it fails. It comes with a databank error and after debugging it showed me: parent doesnot exist.

Plugins are up to date.

What went wrong and how can I fix this?

I have no clue what the error means. Please help me, thanks in advance.

Attachment Knipsel moodle aanmelden gebruiker fout.JPG
Attachment Knipsel moodle aanmelden gebruiker.JPG
Average of ratings: -
In reply to Patricia Hazemeijer

Re: databank error upgrade to 3.8

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

The second screenshot shows a call to /admin/settings/privacy.php. That file isn't part of Moodle 3.8 and shouldn't be there (it was removed in an update to Moodle 3.4).

The problem with third party installers like Installatron is that they're not from Moodle so we don't know exactly what steps they perform which makes it difficult to provide support. Presumably Installatron has left some files behind.

I would start by removing the above file (e.g. rename it to privacy.php.old) and see if the problem still occurs. But you don't know if there are other files left behind. Rogue files in some locations won't cause problems but in locations such as /admin/settings they will. The best way forward would be to move from the current source code folder to one obtained from Moodle.org along with the third party plugins and the original config.php. This task would need planning and I realise that, depending on the skills available, this may not be an easy job.

In reply to Leon Stringer

Re: databank error upgrade to 3.8

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

Attached is a list of files (1,741) from Moodle 3.4.2 that don't exist in Moodle 3.8.3 (I've done some checks I think it's correct).

It may help identify if all of the old files have been left behind or if it's just a few.

If you're removing files be cautious and take backups just in case.

In reply to Patricia Hazemeijer

Re: databank error upgrade to 3.8

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
As I understand your provider has upgraded your Moodle from 3.4 to 3.8 and since then you have this problem. Then they must have make a mistake. Of course we don't know how they upgrade, but you can ask them whether they are aware of the different server requirments:
- https://docs.moodle.org/dev/Moodle_3.4_release_notes#Server_requirements
- https://docs.moodle.org/dev/Moodle_3.8_release_notes#Server_requirements

For example release 3.4 runs with PHP 7.0 but release 3.8 wouldn't. Similar version incompatibilities with MySQL. I maintain a compatibility list here: http://www.syndrega.ch/blog/#php-and-dbms-compatibility-of-major-moodle-releases.
In reply to Visvanath Ratnaweera

Re: databank error upgrade to 3.8

by Patricia Hazemeijer -
Thank you so much! I think I will ask for the back up to replace it back and then slowly upgrad from 3.4 to 3.5 and then to 3.8.