can't upload Images in user profile

can't upload Images in user profile

by amal barathi -
Number of replies: 25
I am not able to upload Images for recognizing users in thier profile.

Its a jpg file with 1MB size.

When I upload the file I receive this message "Cannot unzip pictures file."

And the Image file doesn't get uploaded.

Can anyone help me on this.

Thanks

Average of ratings: -
In reply to amal barathi

Re: can't upload Images in user profile

by John White -
Amal,

This is probably a question of which upload tool you are using!

If you are using Moodle 1.9 you have...

Tool 1:
Site Administration->Users->Accounts->Browse List of Users

When you want to upload just one picture for one user, go into 'edit' in that user's profile,
find the 'New Picture' field, click Browse, and pick up your .jpg file.
When you click Save Changes the file is uploaded.

Tool 2:
Site Administration->Users->Accounts->Upload User Pictures

When you have lots of pictures to upload to users, use this bulk upload tool.
In this case every picture file has to be named to match the user (typically matched by Username),
and then all the picture files have to be zipped into one file (a .zip file).

So, for example,

user01.jpg
user02.jpg
user03.jpg

...all sit in one zip file user_pictures.zip.

Because you are using Tool 2 to do Tool 1's job, it is saying it can't unzip what actually is already a .jpg file!

Well, thats my guess anyway.

Regards,

John
In reply to John White

Re: can't upload Images in user profile

by amal barathi -


Thanks John

I am useing moodle 1.9

I couldn't use the 1st tool , as the 'New Picture' field doesn't seem to exist.

I tried the 2nd Tool. I uploaded 2 pictures using zip file. I recieved this error.

Upload user picturesHelp with Upload user pictures (new window)

Cannot save picture for user USER1. Check original picture file.
Cannot save picture for user USER2. Check original picture file.
Users updated: 0
Errors: 2


I have not uploaded any picture's for the respective users.

I am not sure what it means by check Original file.

Can anyone help me on this.


In reply to amal barathi

Re: can't upload Images in user profile

by Filipe Carneiro -
I also don’t have the avatar option ('New Picture' field) in the user profile.

I’vechecked $CFG->disableuserimagesin in config.php and it was ok (I’ve tried removing the entry and with FALSE value)

Did you solve your problem? I'm using Moodle 1.9.1+(Build 20080625), mySQL 5.0.51, PHP 5.2.5 and Apache on Windows 2008.


In reply to amal barathi

Re: can't upload Images in user profile

by Ado Evangelisti -
It's the same for me.
I don't have the New Picture in the user profile.

Also accessing my profile as a course user, there is no way to upload the picture (no field asking for it).

In reply to amal barathi

Re: can't upload Images in user profile

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Amal - I've seen cases when the user has provided invalid directory for the zip/unzip files and thus the zips and unzips fail. Another possibility is that its a files permission error. Could you start by verifying if there is anything listed for the paths to the zip and unzip files in Server -> System paths in the Site Administration block? Are the jpg files named appropriate such that for each filename.jpg there is a username that corresponds to the username. In other words, from the pic it indicates that you should have a username of user1 and user2 in your system. If you have a student with a username of smartguy then there should be a file in the zip file called smartguy.jpg. Let me know if any of this helps. Peace - Anthony
In reply to Anthony Borrow

Re: can't upload Images in user profile

by Gary Barclay -

To Bump this thread I'm having the same problem also.

No option in the edit user profile to upload images, and the same error when bulk uploading.

Any ideas?

In reply to amal barathi

Re: can't upload Images in user profile

by Marty Billingsley -
I'm seeing the exact same problem.

I get the same errors as above when I try tool #2.

Can't use tool #1, as there is no "Picture Of" section in a users profile. (This is what I'd really like to get working, as I want my students to upload their own photos.)

Moodle 1.9.3 on MacOS X server, Daarwin Kernel Version 9.6.0, Apache 2.2.9

This seems like it might be a config issue, as so many folks are reporting the same problem. Suggestions?

Thanks
In reply to amal barathi

Re: can't upload Images in user profile

by Justin Tiernan -
same here
In reply to Justin Tiernan

Re: can't upload Images in user profile

by Apar Suri -
I am having the same issue. There seems to be no field to actually upload profile image in the edit profile section and if I try to use the tool 2 as specified above, I get the exact same error.

Please reply if someone has a clue as to what the issue can be.
Thanks.
In reply to Apar Suri

Re: can't upload Images in user profile

by Morris Gabriel -
same problem here.
In reply to Morris Gabriel

Re: can't upload Images in user profile

by Morris Gabriel -
UPz this thread in case anyone resolved this issue and can share the solution. Thanks!
In reply to Morris Gabriel

Re: can't upload Images in user profile

by jim richardson -
Having same issue with our site. In seeking the solution, I made the mistake of ticking the box to delete my old image...now I have none, and can't load my own or any other user's either. Tried bulk upload correctly but that fails also.
Moodle 1.9.4+ , PHP = 5.1.2, Mysql=5.0.18, running on Windows 2003 IIS.
Anyone found the answer yet?
In reply to jim richardson

Re: can't upload Images in user profile

by Morris Gabriel -
another affected site... we need help here....
In reply to Morris Gabriel

Re: can't upload Images in user profile

by Terri Ann Bennett -
We do not have this option either. We did, but now we don't

Terri Ann Bennett
In reply to Terri Ann Bennett

Re: can't upload Images in user profile

by jim richardson -
Bump...any answer yet?
In reply to jim richardson

Re: can't upload Images in user profile

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
I am happy to work with folks but it would need to be one person at a time. I am not sure exactly what problem folks are having or why. It sounds like it could be a variety of issues and while it is helpful to know that a number of folks are struggling here in order to help identify the problem we need more information about your installations. It is a safe bet to always include your Moodle version number (1.9.x) as that is usually the first question. Next will be your OS, PHP version, database. I am a big fan of screen shots so that I can see exactly what page you are looking at. So feel free to provide more information so that we can figure out what is happening. I do not think it is everyone experiencing the same issue. I suspect there are various issues that need to be addressed so let's track them down in a nice controlled manner. Peace - Anthony
Average of ratings: Useful (1)
In reply to Anthony Borrow

Re: can't upload Images in user profile

by Morris Gabriel -
im using windows 2003, moodle 1.9.3, php 5.2.5, mysql 5.

i get the same error as posted earlier when it comes to uploading pictures for users.

as for individuals uploading their own image, that option is not even present. there is no "Picture of" option for the user to upload his image. As u can see, i managed to upload a photo here of my daughter, but in my moodle setup, the feature is just not there.
In reply to Anthony Borrow

Re: can't upload Images in user profile

by zainudin ghazali -
I am having same problem with Mr. amal with no "Picture Of" section in Edit Profile.

I solve mine with this step;

1) check for my gd version at Server > PHP Info (mine is version 2.0.34)

2) go to Server > System Path, i saw the default as "GD not installed". So i change it to "GD 2.x installed" and press [Save Change]

After that the "Picture Of" appear.

Hope that help.


Attachment my_gd.JPG
Average of ratings: Useful (1)
In reply to zainudin ghazali

Re: can't upload Images in user profile

by Chad Outten -
ZG is correct. for those moodlers who don't have the ability to upload images to user profiles: you need to ensure the gd2 library is included and enabled as part of your php build.

Chad
In reply to Chad Outten

Re: can't upload Images in user profile

by miquel àngel amengual -
Mr Outten,

problem fixed on my 1.9.4 Moodle with your piece of advice.

Thanks
In reply to miquel àngel amengual

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

Re: can't upload Images in user profile

by andy giles -

Hi All,

My GD info is correct and all the other requirements to this feed are correct to my knowledge, however i still cant upload pictures. when i try to manually add a photo it will allow me to select etc but it doesnt seem to respond and when I update my profile there still isnt a photo, any ideas i am sure its something simple!

In reply to andy giles

回复: Re: can't upload Images in user profile

by Hongliang Ma -

I had the same problem once, but I solve it now. My solution is that make sure the "moodledate" files in sever has the write permission for internet users. 

However, I don't know whether my solution will cause any danger to our sever?

In reply to andy giles

回复: Re: can't upload Images in user profile

by Hongliang Ma -

It seems that you'd better only enable the write permission to the files "Moodledate\user\0\", instead of the whole Moodledate files.

In reply to amal barathi

Re: can't upload Images in user profile

by Luis Cojulun -

Hey there!!!

Im having this issue: users and admin upload pictures kbs/mbs no more than 1mb, as *.jpeg(jpg),*.png. GD version 2.0.34 Compatible its installed on the php info and appears on Moodle as well. But User´s pictures/imagenes appears X, cant be seen.

Any idea, please.

Best regards,