Hi Scott,
Sounds to me like a WordPress rights issue. Test uploading of the images through other means:
1. Attach the same images to a WordPress post and see whether that works
2. Upload the images directly to the media library
If these two upload methods work then the image upload on the plugin should work too.
Alex.
Hi Alex,
Thanks for responding…
I just tried adding the same images I was testing earlier to a new post, and that worked. I then tried directly in the media library, also worked.
What else can I try?
Thanks,
Scott
Is the folder ‘wp-content/uploads/profiles’ empty? This may cause a permissions issue.
Also are you using the image field on a custom form? If so ensure that the form’s encoding is enctype="multipart/form-data"
. There’s some good explanation of this here: https://stackoverflow.com/q/4526273/212076
-
This reply was modified 3 years, 10 months ago by
Alex Githatu.
Hi Alex,
I just checked ‘wp-content/uploads/profiles’ — it appears that all of my attempts to upload worked, the images are there.
However, I’m still getting the error messages and the images aren’t showing in the user profiles.
I’m using the BuddyPress profile fields, even putting the in the “Base” grouping just to be sure.
Thanks,
Scott
Hi Scott,
Is there a “Delete” button next to the image field (even if the image is not showing). If so, click on it and save changes to clear the image data. Then remove the images from “wp-content/uploads/profiles”. Try the upload again and see if it works.
What version of WP/BP are you working with?
Kind regards,
Alex
Hi Alex,
No, there is no “Delete” button next to the image field… after the seemingly failed attempt to upload upon saving the form, everything looks the same except for the presence of the error message.
This is WP 5.3.2 and BP 5.1.2
Thanks,
Scott
PS. My wife has decided she doesn’t want a full membership system afterall (the site I’m building is for her high school reunion)… so, we probably won’t end up using BP… but if you’d like us to keep troubleshooting this issue, I’m fine with keeping it loaded up and testing.
Hi Scott,
It could be a version problem. The plugin is tested up to WP 5.3 and BP 5.0. If possible you could try downgrading to these and see whether that works. I’m some ways away from running tests on the latest versions of WP/BP.
Essentially, from the behaviour you’ve described, the image is being uploaded successfully but somewhere after that a fatal error is being encountered that prevents the image data from being saved (thus no image shows).
You could also take a look at the error log to get a more detailed depiction of the error. Here’s how to enable/access it: https://snapcreek.com/blog/wordpress-error-log-friend/
RE: Reunion site – specs from clients change all the time. It’s an accepted hazard of this trade.
Thanks…
Alex
Hi Scott,
I finally found time to run tests against WP 5.3.2/BP 5.1.2 and everything works as expected.
Kind regards,
Alex
Hi Alex,
Thanks for the update. We’re still back-and-forth a bit on the site, so if we do end up using BP, I’ll do some additional trouble-shooting to see if there’s some other server config issue or something.
Thanks,
Scott