|
Hi,
I've been doing some testing in preparation for upgrading from 1.8.2 to 1.9 (20080409) and I am experiencing a similar problem to the one mentioned above. After upgrading, some, but not all, of the user pictures display the default image instead of the one that they uploaded. I did a diff on the two versions of pix.php and I've pasted the results below: -------------------------------------------------- Now, out of curiosity I changed the $pathname assignment in the new file back to the old definition and the user pictures display properly. So it seems that something is not working properly for us with the new definition. Any ideas? Hi Andrew,
changing to the old $pathname works because old images are left in the original place ("users" dir). But all the new images and so on will go to the new "user" dir, so won't display ok using the old $pathname. Anyway, it's seems that we are receiving more than one reports about missing images. Andrew, could you, please:
Thanks! Ok, I've gone into the new user directory and it looks like all of the users with id's higher than 169 are missing. I changed the pix.php script back to the new $pathname definition and copied a couple people over from the users directory and their images appear properly.
To answer your other question, I did not get any error in the upgrade process (at least none that I saw). I have also attached a screen shot of the old users directory and the new user directory. Cheers, -Andrew Screen shot showing old and new users directories after upgrade to 1.9
same issue when upgrading from 1.8.3 to 1.8.7 and 1.9.3 (some of the user images are missing, no Error-Message during upgrade). Bigger and smaller user ids are affected.
I tried the silly php snippet in the attachement to copy missing directories I tried the snippet as well but no luck. In fact, I've tried a number of things to resolve this issue and have had little success.
I'm really suprised that this is listed as "Minor" - it may not create a functionality problem, but it really does look unprofessional. Agree... I'm raising this to Major... perhaps we could try another upgrade step, or at least provide a fix_missing_images php script to help with this problem, Nico?
Nicolas is working on such a script ...
A new script, admin/fixuserpix.php, has been added to 1.8 and 1.9. It can either be run in the browser (if logged as admin user) or from CLI (with admin user credentials).
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
as part of the migration from 1.8 to 1.9 user images have been moved from the old "users" dir to a new "user" dir, using one extra level in the new storage to prevent some problems in BIG sites.
Curiously, it sees that the new "user" structure was properly generated in your site (from screenshot), with user 2 images ready to be served.
Can you confirm what version of this script:
moodle/user/pix.php
are you using? Just to be 100% sure you aren't running a outdated version.
Assigning this to Nicolas... hi worked on the user-images migration and has more knowledge about what can be failing... ciao