Upgrade problem from moodle 4.0 to 4.1 and 4.2

Upgrade problem from moodle 4.0 to 4.1 and 4.2

by Max Woodtli -
Number of replies: 3

After having updated the files I receive the following messages:

Parse error: parse error in /srv/www/moodle.elearn.ch/doc/moodle/lib/db/mysql.php on line 219

 

Fatal error: Call to undefined function: main_upgrade() in /srv/www/moodle.elearn.ch/doc/moodle/admin/index.php on line 161

So I went back to version 4.0

Has anybody an idea what to do?

Thanks

Max

Average of ratings: -
In reply to Max Woodtli

Re: Upgrade problem from moodle 4.0 to 4.1 and 4.2

by Penny Leach -
Did you get the upgrade from CVS? Or did you download a zip or tgz from moodle's download page?

Can you paste what the code is on line 219 of

/srv/www/moodle.elearn.ch/doc/moodle/lib/db/mysql.php?

If you upgraded with CVS, did you see any conflicts during the upgrade? Are you running a customised copy at all?

Also, I guess you mean 1.4.0 to 1.4.1 and 1.4.2

Cheers
Penny

// edit: also did you download 142 or 14stable (1.4.2+)
In reply to Max Woodtli

Re: Upgrade problem from moodle 4.0 to 4.1 and 4.2

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Yes, sounds like you have an incomplete set of Moodle files.

If you used CVS to update, there may have been a conflict somewhere ... watch the CVS messages carefully for notices about conflicting files.  Those files will contain lines like
 
<<<<<<<<<<<<<<

that indicate the conflicting areas.
In reply to Martin Dougiamas

Re: Upgrade problem from moodle 4.0 to 4.1 and 4.2

by Max Woodtli -
Thank your for this hint.  I updated the files via FTP. I will now try again and copy the files perhaps in an empy directory.