General help

Cannot upload or change profile pictures

 
Picture of Pat OKeefe
Cannot upload or change profile pictures
 
Hello,
I am not able to update profile pictures for some reason. I am able to browse , select and click upload however the picture never shows up in the profile.

Any suggestions on where to start?

I am using:

moodle 1.9.7
mysql 5.1.22
apache 2.2.8
php 5.2.6

maybe I need to re-compile/install php?

Thanks in advance for any ideas......

cheers

Pat
 
Average of ratings: -
Picture of Mohammed Al-shaqsi
Re: Cannot upload or change profile pictures
 
Hellow Pat ..

What is the max size you can upload ?

Check ... and tell me..

 
Average of ratings: -
Picture of Pat OKeefe
Re: Cannot upload or change profile pictures
 
screenshot


I must be missing something simple in my config somewhere......

While poking around I found several images that have been uploaded in ~moodledata/user[1-4]000/<various>/ dirs....... they are just not visable in the page.....
 
Average of ratings: -
Jon
Re: Cannot upload or change profile pictures
 
If the files are there it is possible you need to delete your cookies/cache. Then log in again and see if they are present.
 
Average of ratings: -
Picture of Jeff Odachowski
Re: Cannot upload or change profile pictures
 
We are having the same issue on our site. Once they are up we are unable to change them.

Our file size and picture size are below the requirements and I have tired the refresh screen, delete cookies and even restart. I have even checked the database for some clue. Are you going to file a bug? Let me know if you find a solution.
 
Average of ratings: -
Picture of Pat OKeefe
Re: Cannot upload or change profile pictures
 
I have never submitted a bug report but would be happy to do so. Anyone know where to start?
 
Average of ratings: -
Picture of Vidar Gudmundsson
Re: Cannot upload or change profile pictures
 
Hello. I have the same problem on moodle 1.9.7. Some users have pictures but can not upload new. I can delete the old picture but when i upload a new picture the old one appears ??
 
Average of ratings: -
Common Dolphin
Re: Cannot upload or change profile pictures
 

I have a similar problem where I can delete a profile picture but when going back to upload a new picture it just loads the old one.  I am not sure where the cache memory is.  I logged out and in again but no luck.  However it does work when I logged out of Firefox and in via Google Chrome - so maybe it is a cache memory problem within the browser for moodle.

 
Average of ratings: -
Bob Singletary
Re: Cannot upload or change profile pictures
 

All, if you are still having the issue with the profile pictures, please contribute to this tracker ticket by commenting and voting for it.

http://tracker.moodle.org/browse/MDL-13322

 
Average of ratings: -
Picture of Mauno Korpelainen
Re: Cannot upload or change profile pictures
 

There are several possible reasons for these missing profile images - not just one issue that explains all cases. If you search the forums similar questions have been asked every year.

For example (not a complete list):

If users can upload image once but can't change it check that Administration > Security > Site policies >  Disable User Profile Images is not checked

If users can upload images to subfolders of moodledata/user/0/ - and the files are there but are not shown the problem might be for example wrong value in Administration > Server > HTTP > Use slash arguments (can be checked or unchecked) or site config.php might have some white spaces.

If user images are not at all in subfolders of moodledata/user/0 the subfolders might miss write permissions or some server side limitation (number of folders etc) might prevent writing to profile picture folders - or creating of new folders.

Or for example both server and browser cache might keep the old images unchanged even if the new ones were uploaded.

 
Average of ratings: Useful (2)
Luke Burton
Re: Cannot upload or change profile pictures
 
Administration > Server > HTTP > Use slash arguments

THAT DID IT! I just un-checked the box and my profile pics came through! I have been trying to figure this out for two weeks and am glad to know it was such a small thing!
 
Average of ratings: -
Christy Tucker
Re: Cannot upload or change profile pictures
 
Just wanted to thank you for sharing this solution. I had the same problem and was pleasantly surprised to find out it was such a quick fix. I would never have found this on my own.

-Christy
 
Average of ratings: -
Picture of Carrie C
Re: Cannot upload or change profile pictures
 

Hi,

Sorry, I'm still a bit lost.  Where can I find this Administration > Security > Site policies > and  Administration > Server > HTTP > ?

Appreciate your enlightenment or from anyone.

Thanks heaps!

 
Average of ratings: -
Picture of Curtis Barker
Re: Cannot upload or change profile pictures
 
A variation on a theme -

I have some users that can upload files and get replies that JPEG (GIF, etc.) is not supported by the server, while others have no problems at all. The files are uploaded, etc.
 
Average of ratings: -
Picture of Shariq Ahmed
Re: Cannot upload or change profile pictures
 

Hi,

I am unable to get the CURRENT PICTURE to show up in the Edit Profile page. In other words all users have the default smiley and when they go to EDIT profile there is no option for them to add a picture.

There has to be a setting in the Admin area to enable the option for users to be able to add their pictures???? Pls help!

 
Average of ratings: -
Picture of Colin Wheelhouse
Re: Cannot upload or change profile pictures
Plugin developers

Shariq,

Go to Admin > Security > Site Policies near the bottom there is an option to Disable User Profile Images the default is no so maybe you have the box checked, if so uncheck it. I have found that when you delete a user image sometimes it requires a few f5 refreshes of your screen or even a logout/in to clear the old image.

Cheers

Wheelie.

 
Average of ratings: -
Picture of Diane Wells
Re: Cannot upload or change profile pictures
 

I added my symptoms to the tracker and, a few days later, added the fix that worked for me. Thought I should add those things here as well.

Here in student users were able to upload and display profile pictures but the Administrator or Course Creator could not.  I checked and unchecked the slash dot argrument and verified that Admin>Security allows users to change is enabled, and the GD extension installed and enabled in PHP.

Our problem arose after an upgrade. The Admin and CC had profile pictures that displayed after the upgrade, but each used the delete option prior to selecting an alternate image. Then,  only the Moodle default image would appear for them even though the image upload process appeared to work.  I found that the Administrator's original profile image jpgs were in \moodledata\user\0\2 even though they would not display.

Eventually, I deleted the jpgs from the \moodledata\user\0\2 folder. Then, I was able to upload a new Administrator profile image through Moodle's Edit Profile interface and have the image display successfully. The key seemed to be deleting the existing image directly from the folder because the Edit Profile screen showed Current Picture as None so offered no Delete function.

Another thing I've noticed is that in order to change to a different profile image for any user, I have to Edit Profile, Delete the existing image, Update Profile, Edit Profile again to upload the new image, Update Profile, and then reload/refresh the Profile screen to display the new image.

We're running Moodle 1.9.9 on IIS 7.5 with PHP 5.2.12.

Hope this info helps someone along the way. Thanks to all who have taken the time to document their experiences. I've certainly benefitted from your efforts.

 
Average of ratings: -
Picture of Chad Outten
Re: Cannot upload or change profile pictures
Moodle Course Creator Certificate holdersTesters
for anyone else who gets stuck with this issue. check your php environment settings and ensure GD extension is installed, enabled as part of php build. if not, you'll need to recompile php.
 
Average of ratings: -
Picture of shiju kumar
Re: Cannot upload or change profile pictures
 
any one could you please tell how to recompile php... bcasue I am still facing the problem with profile image as black and I tried all the above mentioned things...
 
Average of ratings: -
Picture of Emanuel Delgado
Re: Cannot upload or change profile pictures
TestersTranslators

Hello,

You can find PHP information about PHP  installation and configuration in this link:

http://php.net/manual/en/install.php

ed

 
Average of ratings: -
Picture of Jonathan Muzumara
Re: Cannot upload or change profile pictures
 

Thank you all for the solution

i had to enable the gd extnsion for it to work.

 

 
Average of ratings: -