• Resolved kozynets

    (@kozynets)


    When I update PHP the old version of iFolders gets disabled. To install a new version I need to delete all…

    How do I either keep old version of IFolders or export data (like 1000 folders) and import into a new version?

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Support Max

    (@mxlawr)

    Hello. You can use the settings, go to the tools tab and try to use export/import feature.

    Or try to backup/restore 4 tables:
    – wp_ifolders_attachments
    – wp_ifolders_folder_types
    – wp_ifolders_folders
    – wp_ifolders_security_profiles

    But before this action don’t forget to make a backup in both cases.

    Thread Starter kozynets

    (@kozynets)

    Hello Max and thanks for your reply!
    Looks like I don’t have export/import feature, if you mean iFolders Settings.
    Backing up and restoring wp_ifolders will work?

    Plugin Support Max

    (@mxlawr)

    Weird, the settings should look like this (see image below).

    You can try with the tables, but I can’t promise it’ll work. Back up everything first! Just install a new WordPress site, move the tables over, and test.

    Thread Starter kozynets

    (@kozynets)

    Looks like I have some really ancient version then. I have a site made by local company, which is gone and iFolders wasn’t updated since then. Will need to update to some newer version and try again to export the folders.

    Thanks a lot, Mister!

    Thread Starter kozynets

    (@kozynets)

    Hi again Mister Max!

    I’m trying to install any version of iFolders prior to 2.9.0 to do export.
    When I’m installing any it deactivates extension, so I’m unable to go to Settings – Tools.
    How do I have any version that supports export prior to 2.9.0 activated to do it?

    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.
    You can delete these data here right now or if you have any questions, please contact our support team.

    Delete all data of the old version of iFolders and activate the new version.

    • This reply was modified 7 months, 2 weeks ago by kozynets.
    Plugin Support Max

    (@mxlawr)

    What version do you use?

    Thread Starter kozynets

    (@kozynets)

    I tried versions starting 1.3.1 up to 2.9.0. Version 1.6.5 allows export to JSON, but versions starting 2.0.0 do not activate until I update to 2.9.0. Version 2.9.0 imports only CSV files. When I convert JSON to CSV version 2.9.0 gives me error and doesn’t import…

    Plugin Support Max

    (@mxlawr)

    Are you using v.1.3.1? Am I right? If yes, I will check this version for export/import today evening and report back to you.

    Thread Starter kozynets

    (@kozynets)

    I would really appreciate your help! Actually any version up to 1.6.5 would work since all these allow activation.

    Plugin Support Max

    (@mxlawr)

    @kozynets Ok, I will test with 1.6.5

    Plugin Support Max

    (@mxlawr)

    There is one way, but I’ll need to make some minor adjustments to the import functionality, as the current implementation (iFolders v.2.9.0) turns out to depend on the order of folders in a csv file.

    In this case, however, you’ll only be able to import the folder tree structure without attachments linked to those folders.

    Plugin Support Max

    (@mxlawr)

    I’ve written a simple converter from JSON to CSV:
    https://avirtum.com/api/ifolders-json-to-csv/

    To use it, export your folders to JSON (old version 1.6.5), run the file through my converter, and then import the resulting CSV into the new version.

    P.S. It’s a very basic converter currently, the owner is always set to 0 (admin), and the color and ord fields are left empty.

    I’ve tested it briefly and it works, but you should test it yourself as well.


    Thread Starter kozynets

    (@kozynets)

    Thanks! It works for the folders, but doesn’t work for the files, unfortunately.
    Will I be able to manually add files from JSON to CSV to import again for the files?

    Plugin Support Max

    (@mxlawr)

    I’m a bit confused about the files. As you can see, the final CSV has an “attachments” column, that’s exactly the files attached to the directory, specifically their IDs and the actual files themselves should already be present in the destination WP database.

    Thread Starter kozynets

    (@kozynets)

    When I do export in 2.9.0 with imported folders structure and then manually add document numbers to some lines it works!
    ,attachment,,0, – what 0 does here?

    • This reply was modified 7 months, 1 week ago by kozynets.
Viewing 15 replies - 1 through 15 (of 17 total)

The topic ‘Export from the old version’ is closed to new replies.