I am trying to:
upload files with a CRED from an iPhone (7) There an error (see image)
Link to a page where the issue can be seen:
hidden link
I expected to see:
Instead, I got:
Hi, can you tell me more about this?
- Is the error consistent with all files and all file types?
- If you try to upload the same file using Safari on a desktop, is the error shown?
- Are any server-side errors logged when the file upload fails? If you are not familiar with server logs, I can show you how to activate them temporarily. Go in your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:
define('WP_DEBUG', true);
Then add these lines, just before it says 'stop editing here':
ini_set('log_errors',TRUE);
ini_set('error_reporting', E_ALL);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');
Try to upload the file again using iOS. If any server-side errors are generated, this will create an error_log.txt file in your site's root directory. Please send me its contents. Once that is done, you can revert the changes you made to wp-config.php.
Hi Christian,
Many thanks for your reply.
I've made changes tot the config. This is what te error logs tells us:
[29-Mar-2018 15:41:45 UTC] event-tickets/common - Log: Tribe Events initialiseren op Mar, 29th at 03:03:45 pm
[29-Mar-2018 15:41:45 UTC] event-tickets/common - Log: Tribe Events initialiseren op Mar, 29th at 03:03:45 pm
I've disabled the event-ticket plugins but the I still can't upload a file or image. Not in IOS an not at the MAC. Both in Safari and Chrome.
Jacques
Okay I don't see anything in the logs that would indicate a server-side error here. Is it possible for me to log in and submit the form so I can watch for any JavaScript errors during submission? If that's okay please provide login credentials in the private reply fields here. If not, I need you to open the browser console in safari and watch for any JavaScript errors during image uploads.
Can you give me some step-by-step directions to reproduce the error? I just created this post with an iPhone and was able to upload an image from my camera roll without any problems: hidden link
I set it to Draft status for now.
Christian,
Oeps I gave You the wrong credentials. Sorry. It was the login of the admin. If you try:
- removed by admin -
It will give you the error.
Jacques
Okay thanks, I am able to replicate the problem now. It doesn't seem to have anything to do with being on an iPhone, because I'm able to replicate the problem on Chrome on my desktop. I looked at your Access Control settings and I can see that the custom role "Leerling" has no permission to publish Media items. This is why the image upload fails for this User. Please go to Toolset > Access Control > Berichttypes and toggle open the "Media" post type. Modify the permissions here so that Leerlings can publish Media, then try again. Let me know if this does not resolve the problem.
Christian,
Many, many thanks. I've overlooked that completely! Its works now and my customer is very happy.
Jacques
Grand and Golden support as always with Christian.