One of the things an admin should do prior to attempting upgrade of any lower version to most recently release (latest and greatest) Moodle is to check plugins prior to upgrade attempt.
Attached file generated on date shown in filename by moosh.
Those plugins not showing 4.0 could cause issues with an upgrade from 3.x to 4.0.
'SoS', Ken