Skip to:
Content
Pages
Categories
Search
Top
Bottom

HTTP error when uploading BuddyPress avatar profile photo


  • cplouffe
    Participant

    @cplouffe

    Hi all,

    I’ve been trying off and on to debug this issue for the last few days and thus far have had no success. I want to use the BuddyPress Extended Profile component so that users on my Web site can upload avatar pictures for their user profile. I thought that the best way to do this would be using the BuddyPress profile photo, but I have hit a roadblock trying to use this feature.

    In the Extended Profile tab of the Users section, when I (or any member) click ‘Edit Profile Photo’, and then ‘Select your File’ under the Upload tab, I am able to select an appropriate profile photo. While the photo is uploaded to the server, I always receive the message ‘HTTP Error’, and am unable to use the photo or continue with the process. In Chrome DevTools, I can see that the error is ‘Failed to load resource: the server responded with a status of 500 (Internal Server Error)’.

    I have access to the server where I am hosting the WordPress site, and I can confirm that the photo is indeed being uploaded (to …/wp-content/uploads/avatars/a_given_number/the_file_name.jpg). I can even access that file by navigating directly to its URL in the browser. I have set the ‘ avatars’ folder permissions using chmod to 755 (I tried 777 but it did not solve the issue). The server is running Windows Server 2008 with IIS 7, and WordPress 4.2.2 with BuddyPress 2.3.2.1. The Web site is currently private (work), so at this time I cannot provide a link to the Web site.

    I have traced the call stack in DevTools and the error seems to be occurring in the file bp-plupload.min.js?ver=2.3.2.1:formatted on line 24.

    If anybody could please help me try to solve this issue it would be GREATLY appreciated. I’m really at a loss as to what to try next, so any suggestions are welcome. If no solution can be found, if an alternative way to upload profile photos for BuddyPress members could be suggested, that would also be appreciated.

    Thanks a lot,

    Cam

Viewing 6 replies - 1 through 6 (of 6 total)

  • sharmavishal
    Participant

    @sharmavishal

    Check if you got php gd installed on your server..my guess is you need it installed on your server


    cplouffe
    Participant

    @cplouffe

    Fantastic. That worked. The PHP GD extension was not enabled. Do you know where I could have found that information out? I was searching for quite a while and never came past anything mentioning GD library.

    Thank you very much for your help!

    Cam


    sharmavishal
    Participant

    @sharmavishal

    No codex for hosting/server requirements for bp per se.

    GD module and/or imagick modules are essential for WP operation in manipulating images re-sizing etc so if you had tested the media library you might have spotted issues with uploading and dealing with images, ( I believe that GD is a core module in later php versions so doesn’t need installing separately so may be worth checking PHP version)

    It’s always wise to establish that WP works fully before enabling testing BP. BP is simply a plugin running under WP as such it will use WP core functionality and in turn follow the server requirements that WP needs.

    There is no BP server requirements codex entry as such for the reasons above we do though very briefly note some requirements here:

    Getting Started


    Not sure if you saw that?

    Server requirements are really a WP aspect, We could re-iterate the WP requirements in a little more detail or perhaps link through to the WP codex though.


    sharmavishal
    Participant

    @sharmavishal

    Thanks @hnla


    cplouffe
    Participant

    @cplouffe

    Sorry for the late reply – I was on vacation. Thank you for referring me to that URL, Hugo. I will admit that I should have visited the ‘Getting Started’ page before installing BuddyPress and looked for big picture issues in the WordPress installation as opposed to zoning in on my specific problem.

    I don’t know if an error message could be added letting the user know when the GD module is not installed on the server (perhaps this could be difficult…), but having some sort of indication of why the error was encountered would be helpful in debugging.

    Thanks again,
    Cam

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘HTTP error when uploading BuddyPress avatar profile photo’ is closed to new replies.
Skip to toolbar