Tagged: multisite
Website: TheBusinessCore.com/tester
Hello,
I’m getting this error when user are trying to upload a media file (image, pdf, etc) from the Add Media button.
“An error occurred in the upload. Please try again later.”The image is actually uploaded to the media library and if the user refreshes the page it will appear in the Add Media – Upload from Library. So the image is being uploaded.
Adding the media from the media library works fine.
When I log in as a Super Admin I can upload the image with no problems. It’s when the user logins that the error is happening. Each user is the Admin of their own site.
Any help would be appreciated.
Hi Jay,
I am sorry for the inconvenience.1. Which version of MediaPress are you using? Is it 1.0.3?
2. Is MediaPress network active or only enabled on the main site?
Please let me know these details and I will have some idea.
Thank you
BrajeshHey Brajesh,
thanks for the quick response.
1. I have version 1.0.3 installed.
2. MediaPress is not currently Network activated or activated on the main site.It appears to be a multisite/wordpress issue. I can upload media to directly to the library but not from the page. (Add Media) button. I will get the error loading image. Try again later, but the image will be uploaded to the library but I have to refresh the page or check the media library to see it.
This doesn’t happen when I’m logged in as SuperAdmin. Everything works fine. It’s when my students login or on my test account that I get the error.
It’s happening on a couple of my Multisite student networks.
Please let me know if you need more info or screenshots.
Thanks,
Jay
Hi Jay,
My mistake. I thought It was MediaPress issue.1. It seems there are some notices being generated when you are uploading from post/page screen that is causing the json response to be corrupted. That’s why Media is being uploaded bu response is not correct.
Can you please check in console if that is the case?
I’m looking in the Console in FireFox in FireBug.
I’m not exactly sure what I’m looking for. I don’t get any errors but there are quite a few warnings. Is there something specific that I should be looking for?
Sorry I don’t know more about this.
Jay
I still left your account active from the last time you helped me out on the site. (Chinook.school-core.com)
If that would be of any help.
Jay
Hi Jay,
I logged in. Since I am superadmin, I can not see the error. Both uploader Works for me.Can you please make my account admin of a sub site and I will be able to test better.
PS: Please remove my super admin privilege and just make it admin of one of the site.
Thank you
BrajeshSet you up on the site chinook.school-core.com/jayanderson
Please ignore the email sent. I added you without the email.
Hi Jay,
Thank you.As I suspected, The error is due to notices being generated by divi theme for non super admins.
here is what I see<br /> <b>Warning</b>: preg_replace_callback(): Requires argument 2, '_et_pb_sanitize_code_module_content_regex' , to be a valid callback in <b>wp-content/themes/Divi/includes/builder /core.php</b> on line <b>703</b><br /> <br /> <b>Warning</b>: preg_replace_callback(): Requires argument 2, '_et_pb_sanitize_code_module_content_regex' , to be a valid callback in <b>wp-content/themes/Divi/includes/builder /core.php</b> on line <b>704</b><br />
Please post this message to elegantthemes foum, They should be able to help in removing notices.
This notice causes the reponse json to be corrupted that’s why you are seeing problem.
A temporary fix that may work is by disabling WP_DEBUG if it is enabled.
The topic ‘ [Resolved] GETTING "AN ERROR OCCURRED IN THE UPLOAD. PLEASE TRY AGAIN LATER."’ is closed to new replies.