Title: Insert Into Post Error
Last modified: August 21, 2016

---

# Insert Into Post Error

 *  [settoloki](https://wordpress.org/support/users/settoloki/)
 * (@settoloki)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/insert-into-post-error/)
 * Hi I just had a call from a customer that can no longer insert attachments into
   the page using default page editor, since updating to WordPress 3.6.1 she had
   no issues previously to this.
 * She clicks “Add Media” and then successfully uploads her content (in this case
   a pdf, but attempted with images jpeg/png also) but when she hits insert into
   post nothing happens.
 * I looked into the problem myself and find when using “insert into post” wordpress
   makes an ajax call to “/wp-admin/admin-ajax.php” which returns the message “Security
   check failed” looking into the ajax call I’ve found that it successfully calls
   the function “wp_ajax_send_attachment_to_editor” (line 1974 of /wp-admin/includes/
   ajax-actions.php) and this is where I am not sure what is failing the only security
   call I can see is “if ( current_user_can( ‘edit_post'” (line 1987) and the current
   user has the correct permissions and is able to edit the post, it only fails 
   when trying to add media to the page, she can add text save and publish.
 * If anybody can spread some light onto why this might be happening I would be 
   very grateful.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/insert-into-post-error/#post-4182634)
 * What’s thee error message?
 *  Thread Starter [settoloki](https://wordpress.org/support/users/settoloki/)
 * (@settoloki)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/insert-into-post-error/#post-4182708)
 * There is no error message on screen, it just doesn’t do anything. I get the message“
   Security check failed” when looking at the ajax response using the developer 
   tools in Chrome.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/insert-into-post-error/#post-4182710)
 * 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 default theme to rule out any theme-specific problems.
 * – [resetting the plugins folder](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)
   by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause
   problems.
 * – re-uploading all files & folders – **except** the wp-content folder and wp-
   config.php & root .htaccess files – from a **fresh** download of WordPress. Make
   sure that you delete the old copies of files & folder before uploading the new
   ones.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Insert Into Post Error’ is closed to new replies.

## Tags

 * [add image](https://wordpress.org/support/topic-tag/add-image/)
 * [add media](https://wordpress.org/support/topic-tag/add-media/)
 * [add pdf](https://wordpress.org/support/topic-tag/add-pdf/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/insert-into-post-error/#post-4182710)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
