I was updating 4 sites on the same host and I accidentally copied the 6.22 upgrade to 1 site that was not off-line yet. It started locking up immediately after so I put 6.20 back in but still get these errors.
http://example.com/?q=user fails with: Fatal error: Call to undefined function user_access() ... sites/all/modules/admin_menu/admin_menu.module on line 82 since the mistake.
?q=admin/settings/site-maintenance and update.php?op=info give the same error.
If I rename the admin module, the next modules does the same thing, if I rename the modules directory, I get Fatal error: Call to undefined function user_access() from one of the core modules.
No idea what to do next.
I gave up, trashed it and rebuilding from a backup. Would still like to know how the file copy trashed the DB.