GerardoRitchey
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: [Profile Pic] [Plugin: Profile Pic] Profile pic wont upload in 3.2You must have some other plugin interfering
Forum: Fixing WordPress
In reply to: [Profile Pic] [Plugin: Profile Pic] Profile pic wont upload in 3.2Hi.
You can delete the code I pasted above.
I wrote a plugin to fix this. I haven’t had a chance to get it into the WP repository, but you can grab it here.
https://gerardoritchey.com/wordpress-profile-pic-plugin-fix/
Forum: Fixing WordPress
In reply to: [Profile Pic] [Plugin: Profile Pic] Profile pic wont upload in 3.2It just needs to be inside of the functions.php file, but make sure you put it before the closing
?>
tag
Forum: Fixing WordPress
In reply to: [Profile Pic] [Plugin: Profile Pic] Profile pic wont upload in 3.2It works perfectly fine for me, and the other two people.
Can you post the contents of your functions.php file?
Forum: Fixing WordPress
In reply to: [Profile Pic] [Plugin: Profile Pic] Profile pic wont upload in 3.2Check 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.
Forum: Fixing WordPress
In reply to: [Profile Pic] [Plugin: Profile Pic] Profile pic wont upload in 3.2This 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 }
Forum: Fixing WordPress
In reply to: [Profile Pic] [Plugin: Profile Pic] Profile pic wont upload in 3.2For some reason the $_FILES information is not being sent.