• Resolved pumpkinslayer

    (@pumpkinslayer)


    Very odd issue with the media uploader.

    For super admin, all uploading works as expected.

    For other users, the media uploader appears to work, the image appears in the uploader and they can change the description etc, but inserting into the post does nothing. They can also not view previously uploaded images. The images are uploaded, as can be confirmed by checking the media menu.

    This is quite whacked. I’ve scoured the fora and tried define(‘CONCATENATE_SCRIPTS’, false ) which didn’t help.

    Any suggestions of what to try?

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter pumpkinslayer

    (@pumpkinslayer)

    Just reporting what I’ve noticed and found since the original post.

    I’ve disabled all plugins on the test site. It’s now a domain mapped (via Ron and Andrea plugin) site with no active plugins. Running a Genesis child theme.

    Super admin image uploading works as expected as before.

    Other users…
    — Uploading works, previously uploaded images only shown when when doing one, then uploading another. The first image will appear when the second is uploaded. But neither time will they insert into the post.
    — Uploading an image and then choosing “create a gallery” with the images does insert the correct shortcode and these images are shown as expected.

    Other observations:
    TinyMCE goes blank after attempting to upload a new image, clicking to “Text” and then back to “Visual” shows the content again.

    For reference:
    site: https://obliterate.co.za (domain mapped)
    base site: https://pumpkintracker.com (main site)

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Is this only happening on mapped domains? Have you tried on a subsite that isn’t mapped?

    Thread Starter pumpkinslayer

    (@pumpkinslayer)

    @ipenstu The behavior is the same on an unmapped subsite.

    here: https://odeptest.pumpkintracker.com

    PS. I’m checking if this is a permissions issue (just a guess). I’m double-checking that the default roles are intact and have default settings.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Ooooh

    https://odeptest.pumpkintracker.com/files/2013/03/Take-a-Walk.jpg is a 404

    Check your httpd.conf file and make sure AllowOverride is set to All (or Options All)

    Thread Starter pumpkinslayer

    (@pumpkinslayer)

    Sorry, this site was replicated from another site on the network. No image files were copied over, hence the 404. I’ve deleted all old posts and image files to avoid confusion now. The ones on the front page now were added during my current testing.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I don’t think mapping is the issue, then, if it’s happening on an unmapped site.

    Can you try reinstalling the WP core files?

    Thread Starter pumpkinslayer

    (@pumpkinslayer)

    I had reinstalled through the dashboard already. I’ve now done a reinstall using FTP.

    Same issues as before.

    Thread Starter pumpkinslayer

    (@pumpkinslayer)

    Here are two screenshots of the situation. I used the regular admin account to upload a picture to this post. I then attempted to insert an image from the media library.

    Logged in as super admin I see this (all images appear) https://www.flickr.com/photos/pumpkinslayer/8624136192/

    Same site, same post, but logged in as regular admin (no images appear) https://www.flickr.com/photos/pumpkinslayer/8624136214/

    Thread Starter pumpkinslayer

    (@pumpkinslayer)

    I think this is a Javascript issue. Or at least a script or two being loaded that shouldn’t be or otherwise

    The scripts in the wp-footer area on the post page are identical (ignoring nonce values) when using super admin or regular admin EXCEPT for the following bits…

    Super Admin see this…

    <script type='text/javascript'>
    /* <![CDATA[ */
    var wpAjax = {"noPerm":"You do not have permission to do that.","broken":"An unidentified error has occurred."};
    /* ]]> */
    </script>
    <script type='text/javascript' src='https://pumpkintracker.com/wp-includes/js/wp-ajax-response.min.js?ver=3.5.1'></script>

    while regular admin have this…

    <script type='text/javascript' src='https://pumpkintracker.com/wp-includes/js/jquery/jquery.schedule.js?ver=20m'></script>
    <script type='text/javascript'>
    /* <![CDATA[ */
    var wpAjax = {"noPerm":"You do not have permission to do that.","broken":"An unidentified error has occurred."};
    /* ]]> */
    </script>
    <script type='text/javascript' src='https://pumpkintracker.com/wp-includes/js/wp-ajax-response.min.js?ver=3.5.1'></script>
    <script type='text/javascript'>
    /* <![CDATA[ */
    var autosaveL10n = {"autosaveInterval":"60","savingText":"Saving Draft\u2026","saveAlert":"The changes you made will be lost if you navigate away from this page."};
    /* ]]> */
    </script>
    <script type='text/javascript' src='https://pumpkintracker.com/wp-includes/js/autosave.min.js?ver=3.5.1'></script>

    Above and below these snippets, everything is identical (apart from nonce value), but I don’t really know what these bits do, so that’s what I’m looking into now.

    Any guidance would be appreciated.

    Thread Starter pumpkinslayer

    (@pumpkinslayer)

    Well, I added this to disable autosave, but it didn’t help.

    function disable_autosave() {
            wp_deregister_script( 'autosave' );
    }
    add_action( 'admin_init', 'disable_autosave' );

    Back to checking where the uploader checks capabilities and the like.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Did this ever work?

    Thread Starter pumpkinslayer

    (@pumpkinslayer)

    Nope, no success. Problem persists as before. Really don’t know where to look next.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Sorry, let me rephrase.

    Before you mapped any domains, at the very begining, did this work? Or has it been broken since the moment you went to Multisite?

    Thread Starter pumpkinslayer

    (@pumpkinslayer)

    This site was setup when multisite was first introduced. So, it’s been over a year. Multisite with mapped domains since that time as well. Previously, with the old image uploader, admins were able to upload as expected.

    Thread Starter pumpkinslayer

    (@pumpkinslayer)

    Okay, I’m the idiot.

    Turned on debug mode (never done that before). Deleted two plugins that weren’t activated but were giving notices and warnings. Now works fine.

    @ipstenu thanks for your help and guidance. It is SO appreciated.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Media Uploader uploaded images only displaying for super admin’ is closed to new replies.