User Avatar Upload Error?! Solved
-
Hi There,
at first, a big thank you to the Mingle Developers! It’s a great Plugin for WordPress and if I ever earn money with it you will be honored for your work!
I try to build a community with wordpress without programming skills. That’s hard, but I think it’s possiblew ??
I think I found an Error in mingle/classes/models/MnglUser.php (line 479)
When a user Uploads an avatar that is either bigger than 600px in height or in width, file conversion will be stopped without an error message and a “pseudo image name” with an encrypted char string and a .bin file extension will be used for the profile image (avatar), that – of course – cannot be found.
In mingle/classes/models/MnglUser.php line 479
The code is:$resized_image = image_resize( $tmp_image, 600, 600, false, null, $target_path );
I replaced the numbers “600” with the image_resize function variables $orig_w and $orig_h.
Now the code is:
$resized_image = image_resize( $tmp_image, $orig_w, $orig_h, false, null, $target_path );
Now a user can upload any size of valid image file types and it works ??
I don’t know if this is an elegant solution from a programmer’s view, but it works for me and I want to tell the community, if anyone has the same problem.
Best regards, be nice,
Scorp
- The topic ‘User Avatar Upload Error?! Solved’ is closed to new replies.