Title: Static Picture ID in Post Command
Last modified: February 17, 2018

---

# Static Picture ID in Post Command

 *  [deadeye5589](https://wordpress.org/support/users/deadeye5589/)
 * (@deadeye5589)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/static-picture-id-in-post-command/)
 * Hello Forum,
 * I’ve encountered the following problem:
    Using a picture from the Mediathek (
   media library) will fail due to a problem with the code that is executed when
   pressing the “Beitragsbild festlegen” (set article picture) button. With a man
   in the middle attack of this code, I have figured out that the Picute ID in the
   code is always set to “-1”. When I modify the Picutre ID before the execution
   of the command the picture will be used correctly in the article afterwards. 
   So the problem is definitly the fact that the Picture ID is not parsed correctly
   in the code behind the button press. My problem now is, to find out where in 
   the word press source code this code for the button is generated and why is it
   set static to -1.
 * To complete your picture of the wordpress environment the following plug ins 
   are also installed. And the problem exists not only with Version 4.94 but also
   with older versions like 4.7x
 * Add Categories to Pages
    Contact Form 7 Disable Comments Image Widget Members
   NextGEN Gallery Simple Custom CSS Sponsors Weekly Class Schedule Widgetize pages
   Light WP-Piwik
 * BR Chris

The topic ‘Static Picture ID in Post Command’ is closed to new replies.

## Tags

 * [id](https://wordpress.org/support/topic-tag/id/)
 * [picture/](https://wordpress.org/support/topic-tag/picture/)
 * [update](https://wordpress.org/support/topic-tag/update/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [deadeye5589](https://wordpress.org/support/users/deadeye5589/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/static-picture-id-in-post-command/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
