wp-admin Plugin Page Error: Undefined property: stdClass::$slug
-
Undefined property: stdClass::$slug in /wp-admin/includes/class-wp-plugin-install-list-table.php on line 52
When selecting view details for a plugin on plugin page in wp-admin
==================================================================Has anyone else seen this and can you offer any advice and/or a resolution???
I am having an error display when clicking on the “View details” link for plugins. The view details link is underneath the description of the plugin after the version number information.
Relevant page: /wp-admin/plugins.php.The error, as below, displays at the top of the modal window:
Notice: Undefined property: stdClass::$slug in /wp-admin/includes/class-wp-plugin-install-list-table.php on line 52The error occours for each plugin that has a “View details” link.
In the HTML the error appears as below:
<body id=”plugin-information” class=”wp-admin wp-core-ui js iframe plugin-install-php locale-en-gb sticky-menu auto-fold”>Notice: Undefined property: stdClass::$slug in /hsphere/local/home/nestawayboats/nestawayboats.com/wp-admin/includes/class-wp-plugin-install-list-table.php on line 52Content of class-wp-plugin-install-list-table.php around line 52
==================================================================
34 /**
35 * Return a list of slugs of installed plugins, if known.
36 *
37 * Uses the transient data from the updates API to determine the slugs of
38 * known installed plugins. This might be better elsewhere, perhaps even
39 * within get_plugins().
40 *
41 * @since 4.0.0
42 * @access protected
43 *
44 * @return array
45 */
46 protected function get_installed_plugin_slugs() {
47 $slugs = array();
48
49 $plugin_info = get_site_transient( ‘update_plugins’ );
50 if ( isset( $plugin_info->no_update ) ) {
51 foreach ( $plugin_info->no_update as $plugin ) {
52 $slugs[] = $plugin->slug;
53 }
54 }
55
56 if ( isset( $plugin_info->response ) ) {
57 foreach ( $plugin_info->response as $plugin ) {
58 $slugs[] = $plugin->slug;
59 }
60 }
61
62 return $slugs;
63 }
64SYSTEM INFO
==================================================================
Server software Apache
PHP version 5.4.34
MySQL version 5.6.26-cll-lve
WordPress version 4.4.2
Parent theme version 3.1.1
Theme version 1.0
ConfigurationName Value
PHP max. execution time 120s
PHP memory limit 256MB
WordPress memory limit 40MBTROUBLE SHOOTING:
==================================================================
I have deleted and manually reuploaded both the wp-admin and wp-includes folders and the wordpress root folder.Cleared browser cache.
deleted and reuploaded theme files.
- The topic ‘wp-admin Plugin Page Error: Undefined property: stdClass::$slug’ is closed to new replies.