Error upgrading from 3.x to 4

Error upgrading from 3.x to 4

by Gabri Z -
Number of replies: 6

I am upgrading a Moodle website.

What I have done:

1) Moved Moodle files to a different directory
2) Copied Moodle 4 files in their place
3) Unzipped plugins (latest versione) where they should be
4) Copied config.php from the backup directory to website root

If I visit website I'm redirected to /admin/index.php and get this error:

Eccezione - Argument 1 passed to MatthiasMullie\Minify\JS::getKeywordsForRegex() must be of the type array, bool given, called in [dirroot]/lib/minify/matthiasmullie-minify/src/JS.php on line 338
Eccezione - Argument 1 passed to MatthiasMullie\Minify\JS::getKeywordsForRegex() must be of the type array, bool given, called in [dirroot]/lib/minify/matthiasmullie-minify/src/JS.php on line 338

I've searched for it and found this page:
https://tracker.moodle.org/browse/MDL-65392

It says to put keywords_before.txt in folder 'lib/minify/matthiasmullie-minify/data/js'.

But... where I can get the missing txt file?

Average of ratings: -
In reply to Gabri Z

Ri: Error upgrading from 3.x to 4

by Gabri Z -
Ok, it seems I've managed to update Moodle to 4,1

It seems that Boost doesn't have anymore the drawer on the left (the access to admin area is in top menu, now)... is this correct or there's something going wrong in my website?
In reply to Gabri Z

Re: Ri: Error upgrading from 3.x to 4

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers
You are correct. There are probably some videos showing Moodle 4 and its new features.
Average of ratings: Useful (1)
In reply to Gabri Z

Re: Ri: Error upgrading from 3.x to 4

by Ken Task -
Picture of Particularly helpful Moodlers

Rick has already answered .... am just gonna point out that one must be more exacting with what you are doing.   You don't  have 4.1 because that is still in development and hasn't been released for production servers.   What you do have is a 4.0.1 - maybe a 4.0.1+ (+ has significance as well).

With the 4 branch of code being brand new (.0), there will be updates ... to code that fixes things as well as security updates as well.

Now I know that sounds nitpicky ... and it is ... but when reporting issues and asking assistance the 'devil' is in the detail! smile

'SoS', Ken

Average of ratings: Useful (1)