user icon problems after update from 5.4 to 7.2

user icon problems after update from 5.4 to 7.2

by David Mead -
Number of replies: 4

After my upgrade from 5.4 to 7.2 my user icons stopped working correctly. The default icon displays correctly however any user icons have an extra pix.php in its source directory info.

ex:  <site name>/moodle7/user/pix.php/5/f2.jpg

I have tried several themes with the same result. Anyone have any ideas because I don't want to have to hard code the source code!

Average of ratings: -
In reply to David Mead

Re: user icon problems after update from 5.4 to 7.2

by Jez H -
Hello David,

The inclusion of pix.php in the path is normal, I assume this is a php file used to process images.

You mention a sub folder in your path, "moodle7, I assume this is correct?

What is failing regards the images? Is it not displaying or is there a problem with the upload?

Have you got gd library installed within PHP with the necessary image file extensions? (phpinfo will tell you this).

Jeremy
In reply to Jez H

Re: user icon problems after update from 5.4 to 7.2

by Richard Enison -

JH,

FYI: line 2 of pix.php says what its purpose is:

// This function fetches user pictures from the data directory

RLE

In reply to David Mead

Re: user icon problems after update from 5.4 to 7.2

by Mauno Korpelainen -

David,

go to

Administration -> Server -> HTTP

and unselect Use slash arguments

The new address for that image <site name>/moodle7/user/pix.php?file=/5/f2.jpg should be visible.

In reply to Mauno Korpelainen

Re: user icon problems after update from 5.4 to 7.2

by David Mead -
I am extremely grateful for your help! That did the trick. I have my production server off line for maintenance and am trying to test possible upgrades before returning it to service and am trying to learn/solve as much as possible.