• When I’m trying to add a media, like images, via shortlink-image above the post edit form, the following error will be shown:

    Are you sure you want to do this?

    Please try again.

    it’s the ajax-called link to:
    /wp-admin/media-upload.php?post_id=193&type=image&TB_iframe=1&width=640&height=876

    I’ve deactivated all plugins and tried out other installations of WordPress, but the error still occurs.

    Anyone has an idea how to solve this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Have you tried:

    – switching to the Twenty Ten 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.

    – re-uploading the wp-admin and wp-includes folders from a fresh download of WordPress?

    Thread Starter straightvisions GmbH

    (@matthias-reuter)

    yep, I’ve tried all of that. On a clean, fresh installation this problem doesn’t occur. but I don’t know how to fix the existing installation.

    Try:

    – re-uploading the wp-admin and wp-includes folders from a fresh download of WordPress.

    – increasing the memory available to PHP.
    https://www.ads-software.com/support/topic/253495#post-1017842

    – adding define('CONCATENATE_SCRIPTS', false ); to the bottom of your wp-config.php file (just before the require_once line).

    Thread Starter straightvisions GmbH

    (@matthias-reuter)

    I’ve tried all of that, but nothing helps :-/

    it’s really weird.

    btw: memory limit is on 128M

    Thread Starter straightvisions GmbH

    (@matthias-reuter)

    I’ve found a hotfix, but I don’t think that this is the right way for a stable solution:

    File /wp-admin/includes/media.php
    line 405
    change
    check_admin_referer(‘media-form’);
    to
    #check_admin_referer(‘media-form’);

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Adding Media via post form doesn't work’ is closed to new replies.