iamafasha
iamafasha

Reputation: 794

Undefined property: stdClass::$name in /opt/.../wp-admin/includes/plugin-install.php

I have been following this tutorial to deploy a WordPress plugin through Github. After setting up everything. I get an error

Undefined property: stdClass::$name in /opt/.../wp-admin/includes/plugin-install.php on line 621

In the plugin infobox. What could I be doing wrong? enter image description here

Upvotes: 0

Views: 824

Answers (1)

Mark
Mark

Reputation: 1039

Try adding $response->name = $this->pluginData["Name"]; to function setPluginInfo. I think you could remove $response->plugin_name.... Perhaps there was a change since that guide was written back in 2014.

Upvotes: 1

Related Questions