Title: Invalid Argument posts.php
Last modified: August 20, 2016

---

# Invalid Argument posts.php

 *  Resolved [aptharsia](https://wordpress.org/support/users/aptharsia/)
 * (@aptharsia)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/invalid-argument-postsphp/)
 * I tried WP Better Security and it didn’t work out. Since uninstalling it, I’ve
   gotten this warning:
 * Warning: Invalid argument supplied for foreach() in /*/*/*/wp-includes/post.php
   on line 3588
 * Looking at post.php on line 3588, this is the code, the $inclusions is line 3588,
   there’s a blank line after that and the ‘if’ is line 3587:
 *     ```
       if (!empty($inclusions))
       		$inclusions .= ')';
       ```
   
 * I’m not sure how to fix it. I’ve reinstalled WP 3.5 and it did not help. I’m 
   clueless, of course.

Viewing 1 replies (of 1 total)

 *  Thread Starter [aptharsia](https://wordpress.org/support/users/aptharsia/)
 * (@aptharsia)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/invalid-argument-postsphp/#post-3270117)
 * Fixed it. When I had installed Better Security, I had to fix my database and 
   for some reason it didn’t complete, so I just uploaded the backup and it fixed
   it. No more error.

Viewing 1 replies (of 1 total)

The topic ‘Invalid Argument posts.php’ is closed to new replies.

## Tags

 * [WP better security](https://wordpress.org/support/topic-tag/wp-better-security/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [aptharsia](https://wordpress.org/support/users/aptharsia/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/invalid-argument-postsphp/#post-3270117)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
