Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#23676 closed defect (bug) (invalid)

warning 'Invalid argument supplied for foreach()' at /wp-admin/includes/class-wp-list-table.php 344:

Reported by: scott-s's profile Scott S Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.5.1
Component: Plugins Keywords:
Focuses: Cc:

Description

The problem only appears on the "Must Use" and "Drop ins" tables in the plugins page, does not effect normal plugins view, and doesn't seem to affect mu/drop-in functionality

Only happens on 3.5.1

Tried on 6 different 3.5.1 installs, all show the same error

Debug trace results:

Backtrace from warning 'Invalid argument supplied for foreach()' at /opt/lampp/htdocs/themedev/wp-admin/includes/class-wp-list-table.php 344:

1. /opt/lampp/htdocs/themedev/wp-admin/includes/class-wp-plugins-list-table.php 400 calling row_actions()
2. /opt/lampp/htdocs/themedev/wp-admin/includes/class-wp-plugins-list-table.php 296 calling single_row()
3. /opt/lampp/htdocs/themedev/wp-admin/includes/class-wp-list-table.php 796 calling display_rows()
4. /opt/lampp/htdocs/themedev/wp-admin/includes/class-wp-list-table.php 736 calling display_rows_or_placeholder()
5. /opt/lampp/htdocs/themedev/wp-admin/plugins.php 431 calling display()

Attachments (1)

download.png (83.1 KB) - added by Scott S 12 years ago.

Download all attachments as: .zip

Change History (4)

@Scott S
12 years ago

#1 @SergeyBiryukov
12 years ago

  • Keywords reporter-feedback added

Could not reproduce on a clean install neither in 3.5.1 nor in 3.6-alpha.

Do you have a plugin that hooks into plugin_action_links filter? Looks like the only way to get this warning is to hook into that filter and return something other than an array:
http://core.trac.wordpress.org/browser/tags/3.5.1/wp-admin/includes/class-wp-plugins-list-table.php#L364

#2 @Scott S
12 years ago

  • Keywords close added
  • Resolution set to fixed
  • Status changed from new to closed

Ah yes, it would seem my co-admin updated some plug-ins shortly after I updated the WP install - the issue is being caused by http://wordpress.org/extend/plugins/wp-editor/ this plugin. I'll notify the author.

That'll teach me to check the logs prior to reporting a bug!

#3 @SergeyBiryukov
12 years ago

  • Keywords reporter-feedback close removed
  • Milestone Awaiting Review deleted
  • Resolution changed from fixed to invalid
Note: See TracTickets for help on using tickets.