Recent Blog Posts

Archives

Subscribe

Latest Tweets

Follow us on Twitter

WordPress Versioning Plugin v1.0 Beta

The version 1.0 Beta WordPress Versioning Plugin has been released.

I will be cleaning up the code, layout and documention a bit and releasing version 1.0 in a week or so.

If you see anything that looks like a bug or the documentation needs corrected, please let me know.



8 Responses to “WordPress Versioning Plugin v1.0 Beta”

  1. Chris J. Davis Says:

    This plugin is broken out of the box. There are a number of problems:

    1. The folder you download is named wp_versioning_v1.0_beta - the plugin has the path wp-versioning hard-coded.

    2. When things are up and running, when you select the Versioning sub-menu item it is looking for wp-admin/wp-versioning/index.php, which of course is invalid since your directions told us to upload the entire directory to /plugins/

    I am going to fix the bugs in my local copy, and hope to see what all the hub bub is about!

    Chris

  2. Brian Groce Says:

    Chris,

    The file is named wp_versioning_v1.0_beta.zip…there is no such folder “wp_versioning_v1.0_beta”.

    You need to create a directory called wp-versioning in your plugin directory…it would look like “wp-content/plugins/wp-versioning” with all of the plugin files being in that directory.

    The menu link should look something like:

    /wp-admin/admin.php?page=wp-versioning/index.php

    1. What version of WP are you using?

    2. What is your server setup? (Linux/Apache?)

    3. Is PHP setup to allow you to pass variables?

  3. pete Says:

    Hello, I was just surfing around and there’s also some development going on in here: http://rephrase.net/days/05/04/post-versioning
    You could join the efforts! :) (sorry if you know already)

  4. Chris J. Davis Says:

    Hey Brian,

    Just wondering if you wanted to incorporate some changes I have made to your plugin. Nothing drastic really, I just adding some UI formatting so that it matches the rest of the WP UI and moved it to the Manage area, which seems a bit more intuitive to me.

    If you want to look at the changes email me and I will shoot you the source.

  5. Sean Hyde-Moyer Says:

    HiBrian.
    When I try to access an older version it get this:

    I’m guessing this is an incompatibility with the newest version of PHP?

  6. Sean Hyde-Moyer Says:

    Sorry, the above comment was supposed to display the mySQL error I was getting.

    The way security is handled with PHP5 breaks the plugin.

    I’ll try to display the code I had to change:

    Old:
    $sql = "SELECT * FROM $wpdb->versions WHERE post_ID = $post_ID ORDER BY post_version DESC ";

    New
    $sql = "SELECT * FROM $wpdb->versions WHERE post_ID = $_GET[post_ID] ORDER BY post_version DESC “;

    There were a few places where this kind of change had to be made, FYI.

    I’m told the plugin would probably work in PHP5 if the .ini file was changed to allow PHP5 to use the old, less secure method of shuttling variables around.

  7. felixm Says:

    i had to edit the following lines to make it work:

    file: block_roll_back.php
    line: 31
    should be:
    $sql .= "FROM $wpdb->versions, $wpdb->version_ids WHERE $wpdb->versions.post_ID = '$_GET[post_ID]‘ “;

    line: 32
    should be:
    $sql .= "AND $wpdb->versions.post_version = '$_GET[post_version]‘ “;

    file: block_roll_back_select.php
    line: 2
    should be:
    $sql = "SELECT * FROM $wpdb->versions WHERE post_ID = $_GET[post_ID] ORDER BY post_version DESC “;

  8. Scott CArle Says:

    found an update to your plugin that works with 2.1 at this website here
    This would be a nice plugin for someone to maintain and extend.

    http://benjismith.net/index.php/2006/08/04/wordpress-plugin-versioning/

Leave a Reply