Title: plugin.php warning
Last modified: August 22, 2016

---

# plugin.php warning

 *  [h4mm3r0g0d](https://wordpress.org/support/users/h4mm3r0g0d/)
 * (@h4mm3r0g0d)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/pluginphp-warning-1/)
 * I am getting this warning showing on my debug.log I have actually counted the
   times it comes in succession and found it matches the exact number of plugins
   so its something to do with wordpress’ plugin.php and the plugins themselves.
 * `PHP Warning: Invalid argument supplied for foreach() in /<DIR ABRIVATED>/wp-
   includes/plugin.php on line 646`
 * any clue what is causing this? if you need that line of code from the file I 
   can post it from what I read of the code its just taking the directory names 
   for the plugins so wordpress can list the plugins.

Viewing 1 replies (of 1 total)

 *  Thread Starter [h4mm3r0g0d](https://wordpress.org/support/users/h4mm3r0g0d/)
 * (@h4mm3r0g0d)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/pluginphp-warning-1/#post-5885640)
 * bump

Viewing 1 replies (of 1 total)

The topic ‘plugin.php warning’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [h4mm3r0g0d](https://wordpress.org/support/users/h4mm3r0g0d/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/pluginphp-warning-1/#post-5885640)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
