ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Error at uploading a photo


  • 2009-08-30 23:18:40

    Error at uploading a photo

    When I try to add a picture to some user's profile I get this:

    Warning: move_uploaded_file(/home/emprenau/public_html/aula/content/profile_pictures/originals/7.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/emprenau/public_html/aula/include/html/profile_picture.inc.php on line 121

    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpMw36ki' to '/home/emprenau/public_html/aula/content/profile_pictures/originals/7.jpg' in /home/emprenau/public_html/aula/include/html/profile_picture.inc.php on line 121

    Warning: Cannot modify header information - headers already sent by (output started at /home/emprenau/public_html/aula/include/html/profile_picture.inc.php:121) in /home/emprenau/public_html/aula/include/html/profile_picture.inc.php on line 123

    Thanks.

    ATutor Version: 1.6.2. Check Latest Version.
    PHP Version: 5.2.9
    MySQL Version: 5.0.81-community-log
    OS: Linux 2.6.18-128.1.16.el5

  • 2009-08-31 08:45:39

    Re: Error at uploading a photo.

    Are you able to upload other files, through the file manager for instance.

  • 2009-08-31 18:01:04

    Re: Error at uploading a photo.

    Hi Greg, I'dont have problem uploading files through the file manager.

    What are the permissions for profile_pictures at content directory(read, write, owner, etc.)?

    Thanks.

  • 2009-08-31 18:15:03

    Re: Error at uploading a photo.

    Not uploading, instead, creating files.

    Click on Create New File in the submenu when the file manager is open.


    Folders under the content/ directory, including profile_pictures, should be set at 755 and owned by the Web server user (nobody, apache etc.). These directories are usually setup during installation, or the first time they are used, and you should not need to touch them after that.

  • 2009-08-31 18:26:01

    Re: Error at uploading a photo.

    Thanks greg,
    I've created a file without problems.

  • 2009-08-31 18:33:34

    Re: Error at uploading a photo.

    New information

    When I try to load a file in the File Storage I get this error:

    Warning: move_uploaded_file(xxxxx/content/file_storage/1/1) [function.move-uploaded-file]: failed to open stream: No such file or directory in xxxxxx/file_storage/index.php on line 370

  • 2009-09-01 08:32:40

    Re: Error at uploading a photo.

    It sounds like the permissions on the content directory are not set properly. The content directory should be 777, and owned by your user account, and everything under the content directory should be 755, and owned by the Webserver user.

  • 2009-09-02 10:59:12

    Re: Error at uploading a photo.

    Aparently There was a problem with the instalation, I made a fresh instalation and all its working good.

    Thanks for your help