Upgrade problem from moodle 4.0 to 4.1 and 4.2

Upgrade problem from moodle 4.0 to 4.1 and 4.2

дэргэд Max Woodtli -
Хариу нийтлэлийн тоо: 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

Үнэлгээний дундаж: -
Max Woodtli-н хариуд

Re: Upgrade problem from moodle 4.0 to 4.1 and 4.2

дэргэд 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+)
Max Woodtli-н хариуд

Re: Upgrade problem from moodle 4.0 to 4.1 and 4.2

дэргэд Martin Dougiamas -
Core developers зураг Documentation writers зураг Moodle HQ зураг Particularly helpful Moodlers зураг Plugin developers зураг 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.