I am trying to create a CRED form where users can upload an image to be associated with their account. I have set up a custom user image field, but when uploading an image using a CRED form, I get the error "Please enter a valid URL address pointing to the image file."
I have tried:
- using a 'media' or 'file' field
- uploading via the wp-admin user page
- reinstalling Types
but have had no success. When uploading via the backend, the URL was inserted as 'wp-content/uploads/...', but I had success by manually changing it to 'www.playsteps.com.au/wp-content/uploads/...'
I tried to reproduce this on a local test site but could not.
We have a known issue when you have required image fields on a CRED edit form. I tested a form to register new users, but are you talking about an edit form? Is the image field required?
If your form registers new users and that is not the issue, and as I cannot then replicate it, I would suggest you first try a no-conflict test, which means disabling all non-Toolset plugins and trying again, and if needs be, switching to a default theme such as twentyseventeen and testing again. That would help isolate the problem if it arises from a conflict with 3rd-party code.
Thank you for your reply Nigel. I did some more investigating and fixed the issue without having to do a non-conflict test.
As it turns out, it had nothing to do with the plugin. I inserted the following line into my theme's functions.php file, so that the wordpress media library automatically provides absolute links, rather than relative ones.