Title: &quot;Attach id not integer&quot; error
Last modified: August 22, 2016

---

# "Attach id not integer" error

 *  [wpwpwilly](https://wordpress.org/support/users/wpwpwilly/)
 * (@wpwpwilly)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/attach-id-not-integer-error/)
 * Sometimes when I visit my website, the page prints the following code on the 
   top of my page:
 *     ```
       1
   
       Attach Id ( 1497 ) not integer for post_thumbnail 1166
   
       1
   
       Attach Id ( 1498 ) not integer for post_thumbnail 1166
       ```
   
 * Can anyone tell me what this means and how I can fix this? Thanks in advance!

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

 *  Thread Starter [wpwpwilly](https://wordpress.org/support/users/wpwpwilly/)
 * (@wpwpwilly)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/attach-id-not-integer-error/#post-5652430)
 * Can anyone help me with this? 🙂
 *  [emalave](https://wordpress.org/support/users/emalave/)
 * (@emalave)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/attach-id-not-integer-error/#post-5652584)
 * I also found out that this is the best and safest way for the error to go away.
   It does not mess around with the debug or the logic in the plugin.
 * Go back to the original code, unmodified then comment out the line that produce
   the debug.
 * comment out the lines…
 * FOLDER LOCATION OF FILE:
    PLUGINS/FAF/
 * LINE 154 of the IMAGES_FILTER.PHP file
 * COMMENT OUT THE LINE LIKE I DID BELOW…
 * else {
    //faf_debug( is_numeric($attach_id) ); // faf_debug(“Attach Id ( $attach_id)
   not integer for post_thumbnail $post_id”);
 * May the force be with you! =)

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

The topic ‘"Attach id not integer" error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [emalave](https://wordpress.org/support/users/emalave/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/attach-id-not-integer-error/#post-5652584)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
