Forums

session expire notice when trying to delete image from gallery on post editor (6 posts)

  1. Andres Richero
    Member
    Posted 8 months ago #

    You do not have permission. Has your session expired?

    I´m getting that notice every time I try to delete an image uploaded from the post editor to a post/page/custom_post_type.

    This doesn´t happen if i delete the image from the media manager.

    Is there a way to fix this.
    I have a lot of editors in my site who wouldn´t reach the media manager to be able to delete an image they´ve uploaded to a post and are getting a bit too frustrated :(

    Thanks for any help you can provide on fixing this.

  2. Andres Richero
    Member
    Posted 8 months ago #

    Back here! Has anybody faced this kind of trouble?
    Any help out there?

    Thanks again

  3. esmi
    Theme Diva & Forum Moderator
    Posted 8 months ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Eleven theme to rule out any theme-specific problems.

    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

  4. DaneMorgan
    Member
    Posted 7 months ago #

    I had this across several blogs and found the problem to be caused by disabling the trash 'feature' in wp-config.php. When the trash 'feature' is enabled I can delete images from the media box, when I disable it I cannot.

  5. Andres Richero
    Member
    Posted 7 months ago #

    Thanks a lot Dane.
    That´s exactly what´s happening on my blogs.
    Switched to define ('MEDIA_TRASH', false); and it all worked like a charm.
    Unfortunately we miss the feature but I preferr that to not letting my users delete their own images :)
    Thanks again,
    Andrés

  6. jcow
    Member
    Posted 4 months ago #

    Yes. I had the same problem, and to make sure this clear for others

    You can't set EMPTY_TRASH_DAYS to zero in wp_config.php

    I have always liked the ability to have media get deleted imediately, but that will break deleting files from within a post edit panel. You can most likely still delete them from the Media section though.

    # Comment this out:
    #define('EMPTY_TRASH_DAYS', 0);

Reply

You must log in to post.

About this Topic