meglio/wp-upgrademe

Errors when viewing details of plugin

Closed this issue · 3 comments

Excellent plugin - going to use it with www.wpsymposium.com

All is working, except here:

There is a new version of WP Symposium Alerts available. View version 2 details or update automatically.

When clicking on View version 2 details I get the following:

Notice: Trying to get property of non-object in /Users/simongoodchild/Documents/Sites/dev/wp-admin/includes/plugin-install.php on line 255

Notice: Trying to get property of non-object in /Users/simongoodchild/Documents/Sites/dev/wp-admin/includes/plugin-install.php on line 258

Notice: Undefined property: stdClass::$author in /Users/simongoodchild/Documents/Sites/dev/wp-admin/includes/plugin-install.php on line 258

Notice: Undefined property: stdClass::$requires in /Users/simongoodchild/Documents/Sites/dev/wp-admin/includes/plugin-install.php on line 258

Notice: Undefined property: stdClass::$tested in /Users/simongoodchild/Documents/Sites/dev/wp-admin/includes/plugin-install.php on line 258

Notice: Undefined property: stdClass::$homepage in /Users/simongoodchild/Documents/Sites/dev/wp-admin/includes/plugin-install.php on line 258

Notice: Undefined property: stdClass::$downloaded in /Users/simongoodchild/Documents/Sites/dev/wp-admin/includes/plugin-install.php on line 258

Notice: Undefined property: stdClass::$slug in /Users/simongoodchild/Documents/Sites/dev/wp-admin/includes/plugin-install.php on line 258

Notice: Undefined property: stdClass::$sections in /Users/simongoodchild/Documents/Sites/dev/wp-admin/includes/plugin-install.php on line 262

Notice: Undefined property: stdClass::$sections in /Users/simongoodchild/Documents/Sites/dev/wp-admin/includes/plugin-install.php on line 267
FYI

Notice: Undefined property: stdClass::$sections in /Users/simongoodchild/Documents/Sites/dev/wp-admin/includes/plugin-install.php on line 347

My JSON file is as follows (using local host to test which seems to work nicely with the upgrade test):

{
"new_version":"2",
"url":"http://www.wpsymposium.com",
"package":"http://localhost:8888/latest/wp-symposium-alerts.zip",
"info":{
"name":"WP Symposium Alerts",
"author":"WP Symposium",
"author_profile":"http://www.wpsymposium.com/about",
"requires":"3.0",
"tested":"3.2.1",
"rating":0,
"num_ratings":0,
"downloaded":0,
"last_upated":"",
"added":"",
"homepage":"http://www.wpsymposium.com",
"tags":{
"wordpress":"wordpress",
"symposium":"symposium",
"alerts":"alerts"
},
"sections":{
"description":"WP Symposium Alerts plugin",
"installation":"Extract in plugins folder, activate in administration panel",
"screenshots":"",
"changelog":"",
"faq":""
}
}
}

Your JSON file looks OK.

  1. What WP version are you testing with?
  2. Have you first tried short version of JSON with missing fields and then filled them all? If yes, then you have to clear cached http response with query:
DELETE FROM `wp_options` WHERE option_name='_site_transient_update_plugins'

Thanks meglio, and great work on the plugin. Thought I had run the SQL at the right time, ran it a lot, must have skipped it. Working 100% now.

What would you recommend is the best way to use upgrade me with my plugins? As I have a reasonably large user base the easiest way would be to wrap it up as a plugin for WP Symposium and pop it on Wordpress.org as "WP Symposium Upgrade Plugin" - does this fit in with your licence? Of course you would be include in the meta information as the author.

Fell free to reuse it in any way, . I'll appreciate if you can include me in meta.