WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 10 months ago

#34695 new defect (bug)

class-wp-plugins-list-table.php Undefined Offset

Reported by: ShellaRDee Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.3.1
Component: Plugins Keywords: reporter-feedback close
Focuses: ui Cc:

Description

Undefined offset: 3 in wp-admin/includes/class-wp-plugins-list-table.php on line 598.
get_column_info does not return $primary.

I fixed this by changing
list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info();

TO
list( $columns, $hidden, $sortable ) = $this->get_column_info();
$primary = 'users';

Change History (4)

#1 @boonebgorges
2 years ago

  • Keywords reporter-feedback added

Hi ShellaRDee - Thanks for the report, and welcome to Trac!

I can't reproduce this issue on the latest trunk. I suspect that you may have a plugin filtering manage_plugins_columns, and wiping out the fourth option. Are you able to test on a vanilla installation of WordPress - ie, no plugins installed? If you can't reproduce the problem on an installation with no plugins/customizations, can you start testing to see whether one of your plugins is to blame, by switching them off and retesting?

#2 @swissspidy
23 months ago

  • Component changed from General to Plugins
  • Focuses ui added
  • Keywords close added

@ShellaRDee Does this bug still occur? Please let us know how things currently look like.

#3 @ShellaRDee
23 months ago

I searched all plugins for "manage_plugins_columns" and none have that in it.
I'm in the midst of a complex programming code and will test on vanilla version shortly - perhaps after the new year?

Speaking of New Year - have a wonderful one full of peace, harmony and happiness!

#4 @swissspidy
10 months ago

@ShellaRDee I know it's been a while, but it would be great to know if this issue still occurs or not.

Note: See TracTickets for help on using tickets.