• I have WP MU and I have a page on main domain from where blog admins can update/manage their pages/posts. so it looks like: http://www.MainDomain.com/members On that page I am check if user is blog admin and I am gathering infos I need and doing this:

    switch_to_blog($userblog_id);
    wp_enqueue_script('post');
    wp_enqueue_media( array( 'post' => $post_id ) );
    wp_editor( $post_content, 'post_content', $settings = array(textarea_rows => 15, media_buttons => true) );

    $userblog_id is actually ID of the blog that user is assigned to. $post_id is ID of the post that user is editing on member page.

    Now when blog admin clicks on Upload Media button it shows media upload popup, but the media gallery is always empty and when admin tried to upload something it is always failing with this error “An error occurred in the upload. Please try again later.”

    I saw that MainDomain.com/wp-admin/admin-ajax.php is called when I click Add Media button and that json response is: {“success”:false}

    Now when I am logged in as superadmin – it works properly.

    Does anybody have an idea what’s wrong here ?

Viewing 2 replies - 16 through 17 (of 17 total)
  • Moderator Bet Hannon

    (@bethannon1)

    Hmm… the GF post form WAS in single site.

    Would Post-by-Email and Multisite play more nicely if the site is domain-mapped with it’s own domain? (Just for future refernce…)

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    The post-by-email screen is hidden on Multisite. You have to add this to make it even show up:

    define( 'POST_BY_EMAIL', true );

    But last I heard, it wasn’t working fully. I haven;t tested it. I suppose I should check the new plugin one of these days, but I just use my ipHone 🙂

Viewing 2 replies - 16 through 17 (of 17 total)

The topic ‘Media Uploader issue’ is closed to new replies.