• Resolved patrickmoan

    (@patrickmoan)


    Hello iFolders-

    Today, I see the following message in WordPress:

    It looks like you have an old version of iFolders installed.
    To use this new version, you must uninstall the old version completely and delete it with all data, because the new version is incompatible with the previous ones.
    Don't forget to back up your plugin data if necessary.
    If you have any questions, please contact our support team.

    Two Questions:

    1. At risk of being captain obvious, this means that we’ll need to recategorize all posts correct? If so, this would be surprising, but it it what it is.
    2. Per the instructions above, I did delete the plugin. I then successfully installed iFolders.2.1.1.zip but when activating the plugin I get the exact same message as shown above. Below is what I’m seeing in my WordPress instance. Again, when I go to activate this, I get the exact same message shown above.

    Thanks for any guidance here.

    Patrick

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Avirtum

    (@avirtum)

    Hello.

    This is because I redesigned the entire backend of the plugin to allow for a number of extensions to be added to it in the future. And yes to install it you shouldn’t have the old version and its options and data in WordPress tables. This is why we see this message. If you really want to update the plugin you need to delete these data fully. And please make a backup.

    1) Yes, after the update you need to recategorize all posts again. One moment:in the new version it is possible to create folders only for media files and users, for posts and pages this possibility is available only for the pro version“.

    2) The standard uninstall (delete link in the plugin list) does not delete plugin data, it remains in wordpress tables. To delete the old plugin data fully we should check the option “full unistall” – https://ibb.co/hL58L47 and delete the plugin.

    3) Or you can run this php code manually in functions.php. As you can see it will delete plugin options and tables for versions <= 1.6.5

    $options = [
        'ifolders_dismiss_first_use_notification',
        'ifolders_plugins_store',
        'ifolders_settings',
        'ifolders_state'
    ];
    
    foreach($options as $option) {
       delete_option( $option );
    }
    
    global $wpdb;
    $tables = [
       $wpdb->prefix . 'ifolders_folders',
       $wpdb->prefix . 'ifolders_attachments',
       $wpdb->prefix . 'ifolders_folder_types',
       $wpdb->prefix . 'ifolders_access',
       $wpdb->prefix . 'ifolders_groups',
       $wpdb->prefix . 'ifolders_rights'
    ];
    
    foreach($tables as $table) {
       $wpdb->query( "DROP TABLE IF EXISTS {$table}" );
    }
    Thread Starter patrickmoan

    (@patrickmoan)

    I do not have the ability to access the settings you reference because I’ve already removed the plugin and cannot reinstall it (or perhaps I can get a hold of a zip for the previous version? ) [continued below]

    From what I’ve read, modifying functions.php quite a risky thing to do. I realize that’s why you’re asking that I create a backup, but still. To avoid modifying the file directly, I’ve installed a plugin called WPCode which should allow me to execute the PHP code you provided. The problem is when I paste the code in, I’m told I’ve got errors. I’m not familiar with PHP, and would need some guidance to move beyond the error below.

    Plugin Author Avirtum

    (@avirtum)

    In that case, I recommend installing the previous version 1.6.5 from www.ads-software.com – https://downloads.www.ads-software.com/plugin/ifolders.1.6.5.zip, enable the option I showed above, go to the plugins section, deactivate and delete the plugin, then install version 2.1.1.

    Although my code is simple, if you’re not familiar with php, the best way is probably the one above, it’s safer.

    Thread Starter patrickmoan

    (@patrickmoan)

    I reinstalled 1.6.5, uninstalled sucessfully (removing all data) and installed the latest version.

    With this new version, I was a bit thrown off by iFolders not being available by default for posts, and I had to experiment a bit with the permissions settings to get it to display. With the previous version, no additional work was required to organize Posts (if memory serves correct)

    If most users are like me, they will naturally want to categorize not only media but their posts as well.

    One usability issue relates to enabling a folder type. The UI suggests that you can click on the slider button beneath the column labeled “Enabled”, but nothing happens. Eventually, I understood that you needed to click the checkbox next to the folder type, edit it and enable it there. If you could update the “Enabled” column to display a tag that is clearly read-only that would avoid confusion. Or simply a label that reads “Yes” / “No” rather than the slider button that looks as if it’s selectable.

    Thanks for you previous / prompt response.

    Plugin Author Avirtum

    (@avirtum)

    1. Yes, folders for post are not available, that feature has been moved to the pro version. As I said above, I recreated the plugin and its features, that’s why I was talking about backups. If you need categorized posts and media, you can use the old versions, there is no problem.
    2. You can enable/disable the folder type in the dialog box by double-clicking the item. In table view this slider button is read-only. Anyway, thanks for the UI suggestion.
    Thread Starter patrickmoan

    (@patrickmoan)

    I have the pro version and have folders for posts working. I just found it confusing that folders for posts was not enabled by default as it was for the earlier version.

    Thanks again.

    Plugin Author Avirtum

    (@avirtum)

    I see. Thanks again for suggestions.

    Thread Starter patrickmoan

    (@patrickmoan)

    You welcome. Thanks for the prompt replies. Much appreciated.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Need to reclassify all posts/media with new version’ is closed to new replies.