upgrade 1.9: Given userid was not a valid integer!

upgrade 1.9: Given userid was not a valid integer!

by Vincent Vijn -
Number of replies: 2
Yay! Today I discovered the new 1.9 final version, so I decided to upgrade immediately. However, on both of the servers on which I tried to upgrade (1 CentOS, 1 Windows 2000, both MySQL 5 + PHP 5) I got the following error message while upgrading:


Taalpakkettenbeheer: nl_utf8 ...

De Moodledatabase van versie 1.8.1 (2007100903) naar versie 1.9 + (Build: 20080318) (2007101509) aan het opwaarderen...

Given userid was not a valid integer! (string upgradelogs)
Main Upgrade failed! See lib/db/upgrade.php


It's partly in Dutch, but you probably get the hang of it: after downloading an updated language pack (nl_utf8) it says it's upgrading the database and then gives the "userid was not a valid integer" error.

Has anyone seen this before? Both Google and Moodle forum search left me clueless.
Average of ratings: -
In reply to Vincent Vijn

Re: upgrade 1.9: Given userid was not a valid integer!

by Vincent Vijn -
Solved! After a long search, I discovered that the error was displayed by a function that creates user directories. For some unkown reason, I discovered a directory named 'upgradelogs' in the moodledata/users folder which was causing the problem.
In reply to Vincent Vijn

Re: upgrade 1.9: Given userid was not a valid integer!

by Petr Skoda -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
see MDL-13990, should be fixed now in cvs, thanks for the follow-up with description of the problem big grin Petr