WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Plugin Upgrade Failure (5 posts)

  1. jonradio
    Member
    Posted 2 years ago #

    On a test site running WordPress 3.4-RC2-21036, I updated my own plugin (which is in the repository) to the latest version and it generated a fatal error to the effect that it could not find the main .php file. Doing the same plugin update on WordPress 3.3.2 works perfectly.

    Unfortunately, I thought it was my plugin at fault so did not capture the exact error message, and I don't know how to reproduce the problem.

    Here is my best summary of what is wrong with 3.4RC2: automatic update of a plugin where the main .php file has been renamed from one plugin version to the next, will generate a fatal error on activation.

    Workaround: uninstall and reinstall the plugin.

    Plugin in question: http://wordpress.org/extend/plugins/jonradio-display-kitchen-sink/
    Upgrade from 1.0 to 1.1 corrects the name to jonradio-display-kitchen-sink/jonradio-display-kitchen-sink.php from jonradio-display-kitchen-sink/jonradio-kitchen-sink.php

  2. You can reproduce that probably by installing the old version and then the new, but I'm willing to bet that'd happen on any version of WP.

    Don't rename the main plugin file unless you have to ;)

  3. jonradio
    Member
    Posted 2 years ago #

    Excuse my ignorance, but I'm not aware of any way to install an old version from the plugin repository. I have, however, made several attempts to load the previous version of the plugin via FTP from my own backups, and then let it update automatically. They all work, with both beta and the current production version of WordPress.

    My best guess is that this was a plugin repository issue, i.e. - for a short period after I'd updated the repository with my new version.

    As a result, I'm closing the issue.

  4. Normally people use tags to mark a completed version, and that makes it very easy to get the older versions.

    http://wordpress.org/extend/plugins/akismet/developers/

    If you make a tag folder for each version, then revision and integration testing is much easier :)

  5. jonradio
    Member
    Posted 2 years ago #

    Thank you for that info!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags