Title: Error from plugin.php
Last modified: October 11, 2022

---

# Error from plugin.php

 *  [francoc30](https://wordpress.org/support/users/francoc30/)
 * (@francoc30)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-from-plugin-php/)
 * In my error log, I noticed the following error. This message appears usually 
   three times in a roll.
 * PHP Warning: Invalid argument supplied for foreach() in /server_ path/public_html/
   test/wp-admin/includes/plugin.php on line 1928
 * Is there something I can do to prevent this, or it has to be fixed in the WP 
   core?

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-from-plugin-php/#post-16089708)
 * It’s not a core issue. That’s where the error is being noticed, but it’s caused
   by an error in one of your plugins. Does enabling debug give you more info?
 * Enable wp_debug and wp_debug_log and after an error, look at wp-content/debug.
   log to see if anything gets logged there. [https://wordpress.org/support/article/debugging-in-wordpress/](https://wordpress.org/support/article/debugging-in-wordpress/)
 * You can also try this: Please attempt to disable all plugins, and use one of 
   the default (Twenty*) themes. If the problem goes away, enable them one by one
   to identify the source of your troubles.
 *  Thread Starter [francoc30](https://wordpress.org/support/users/francoc30/)
 * (@francoc30)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-from-plugin-php/#post-16089743)
 * Hi Steve,
    Thanks for the speedy reply. I’ll try what you suggested to see if
   it can be nail down.

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

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

## Tags

 * [plugin.php](https://wordpress.org/support/topic-tag/plugin-php/)

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

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
