Support » Fixing WordPress » [Plugin: Profile Pic] Profile pic wont upload in 3.2

Viewing 15 replies - 1 through 15 (of 21 total)
  • I’m having the same problem. The image is not getting uploaded (the profile-pics directory remains empty… and it has all the required permissions to upload into).

    Any who knows what is wrong ? 🙂

    I have asked Hannah Gray.
    If I get an answer, I will inform You.

    For some reason the $_FILES information is not being sent.

    This is not an issue with Hanna’s code, at least as far as I can tell. I don’t know if something got changed in the way 3.2 handles file upload forms.

    I noticed the form inside user-edit.php file in the wp-admin directory did not have enctype = “multipart/form-data’ – Older versions did not either, which leads me to believe that the wordpress guys made some changes.

    I have no idea how secure this is, but if you drop this bit of code into your functions.php file, the plugin will work again.

    add_action( 'show_user_profile', 'addENCtoForm' );
    add_action( 'edit_user_profile', 'addENCtoForm' );
    function addENCtoForm(){ ; ?>
    <script type="text/javascript"> window.onload = function(){
    document.getElementById('your-profile').enctype = 'multipart/form-data';
    </script> <?php

    This bit of code, added to the funktions.php, solved the problem.
    I have no idea too how secure it is.

    This fixed it for me! Thanks!

    It is working 🙂

    Hi its working for me too, but in comments, the image appears broken..I have installed bbpress forum.Same case there..please help me out

    Check your paths inside of the setup section of the plugin. I had the same problem too because I had a funky install. I changed by path’s and it started working.

    UULosAlamos Webmaster


    Sorry but which functions.php file?

    I get a call to undefined function when I add this code. Can you be a bit more specific please.


    It works perfectly fine for me, and the other two people.

    Can you post the contents of your functions.php file?

    I tried out this code in my functions.php file and cause a parse error – so my question as a relative newbie to all things WP is, where exactly shall I drop this code? Can I put it at the very end of the whole file or does is still have to be contained in any other brackets?

    Any help is very much appreciated.

    It just needs to be inside of the functions.php file, but make sure you put it before the closing



Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘[Plugin: Profile Pic] Profile pic wont upload in 3.2’ is closed to new replies.