Moodle Community Sites

User with no existing image in their profile can't upload new images.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Component/s: moodle.org
  • Labels:
    None

Description

I have also tried to update my profile over the past few days and I have tried everything from different file formats to perfectly cropped images without success, please see http://moodle.org/mod/forum/discuss.php?d=70187.

Attached is the file that was used when attempting to update my profile. I have never had a profile image before.

Issue Links

Activity

Hide
Mauno Korpelainen added a comment -
Show
Mauno Korpelainen added a comment - Duplicate here: http://tracker.moodle.org/browse/MDLSITE-180
Hide
A Knight added a comment -

I investigated the 'can't upload profile image' on my server for a user having that problem and it's looking like a Unix permissions / file ownership problem. This is what I found:

The subdirectories of <moodle-data-directory>/users/ corresponding to the user ids fell into one of two categories.

Category 1 had
an owner / group of 612/48
permissions (Linux) set to 755
These had been created on one server, then later moved to a new server (different hosting package) and Moodle was then upgraded to 1.6 (from 1.5.x).

Category 2 had
an owner / group of 48/48
permissions (Linux) set to 777

It was a user in the first category that had problems.

I couldn't change the ownership of the directory (no unix-level access to server), but when I:
(1) changed the permissions to 777
(2) renamed the f1.jpg and f2.jpg files already in the directory, and also with permissions set to 755 (now no good because different owner!)
the problem was resolved (for that one user at least!).

Show
A Knight added a comment - I investigated the 'can't upload profile image' on my server for a user having that problem and it's looking like a Unix permissions / file ownership problem. This is what I found: The subdirectories of <moodle-data-directory>/users/ corresponding to the user ids fell into one of two categories. Category 1 had an owner / group of 612/48 permissions (Linux) set to 755 These had been created on one server, then later moved to a new server (different hosting package) and Moodle was then upgraded to 1.6 (from 1.5.x). Category 2 had an owner / group of 48/48 permissions (Linux) set to 777 It was a user in the first category that had problems. I couldn't change the ownership of the directory (no unix-level access to server), but when I: (1) changed the permissions to 777 (2) renamed the f1.jpg and f2.jpg files already in the directory, and also with permissions set to 755 (now no good because different owner!) the problem was resolved (for that one user at least!).

People

Dates

  • Created:
    Updated:
    Resolved: