BuddyDev

Search

[Resolved] GETTING "AN ERROR OCCURRED IN THE UPLOAD. PLEASE TRY AGAIN LATER."

Tagged: 

  • Participant
    Level: Enlightened
    Posts: 78
    Jay Anderson on #2803

    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.

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #2804

    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
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 78
    Jay Anderson on #2807

    Hey 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

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #2808

    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?

  • Participant
    Level: Enlightened
    Posts: 78
    Jay Anderson on #2809

    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

  • Participant
    Level: Enlightened
    Posts: 78
    Jay Anderson on #2811

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #2812

    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
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 78
    Jay Anderson on #2814

    Set you up on the site chinook.school-core.com/jayanderson

    Please ignore the email sent. I added you without the email.

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #2815

    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.

  • Participant
    Level: Enlightened
    Posts: 78
    Jay Anderson on #2816

    Thanks Brajesh

The topic ‘ [Resolved] GETTING "AN ERROR OCCURRED IN THE UPLOAD. PLEASE TRY AGAIN LATER."’ is closed to new replies.

This topic is: resolved