• Resolved stephenzhao

    (@stephenzhao)


    I created several folders using FireBird months ago, but they are missing after I done an update to FileBird(I don’t know which version). They can’t be found in the Media management interface, but they would come out when I add/edit images using a page builder(Elementor).

    I tried to fall back to some old version, but nothing helps.

    Please guide me how to clean up the Filebird database after I uninstall it so that I can reinstall it to get rid of the problem above. Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ninja Team

    (@ninjateam)

    Hi there,

    Thanks for reaching out.

    Please try clean up like this:

    First, you need remove all the relationships from term (created by FileBird) with attachment (post_ID) by using this sql you will see all relationships and delete all record

    SELECT * 
    FROM   wp_term_relationships 
    WHERE  wp_term_relationships.term_taxonomy_id IN (SELECT 
           wp_term_taxonomy.term_taxonomy_id 
                                                      FROM   wp_term_taxonomy 
                                                      WHERE 
                  wp_term_taxonomy.taxonomy = 'nt_wmc_folder') 

    please change your prefix, in our database prefix is _wp

    Secondly, remove all meta created by FileBird, to get that use this sql:

    SELECT * 
    FROM   wp_termmeta 
    WHERE  wp_termmeta.meta_id IN (SELECT wp_terms.term_id 
                                   FROM   wp_terms 
                                          JOIN wp_term_taxonomy 
                                            ON wp_terms.term_id = 
                                               wp_term_taxonomy.term_id 
                                               AND wp_term_taxonomy.taxonomy = 
                                                   'nt_wmc_folder') 

    Meta keys are ‘folder_position’ and ‘folder_type’

    Finally, remove term first

    select * from wp_terms JOIN wp_term_taxonomy on wp_terms.term_id = wp_term_taxonomy.term_id and wp_term_taxonomy.taxonomy = 'nt_wmc_folder'

    after that remove the records (term_taxonomy):
    select * from wp_term_taxonomy WHERE taxonomy = 'nt_wmc_folder'

    Let me know if this helps.

    Thanks,
    Kelly

    • This reply was modified 4 years, 9 months ago by Ninja Team.
    • This reply was modified 4 years, 9 months ago by Ninja Team.
    Thread Starter stephenzhao

    (@stephenzhao)

    Thanks very much, it works.
    Now I’m recreating my folder structure.

    Plugin Author Ninja Team

    (@ninjateam)

    Glad to hear that.
    Cheers!

    Kelly

    Hello –?I have also lost all my folders (for the second time).
    We are nearing the end of a project for our client and they have literally thousands of images in their image library which we were using FileBird Pro to clean up and keep tidy.

    I’m afraid I don’t understand the fix above and it sounds like we will have to recreate our folders? This will take forever – is there a way to retrieve what has been lost? What is causing this and why does it keep happening?

    Plugin Author Ninja Team

    (@ninjateam)

    Hello,

    You’re already a Pro user, please submit a private ticket at https://ninja.ticksy.com/ and our support team will help you check it.

    Kind regards,
    Kelly

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to clean up FileBird database and settings to do a fresh installation’ is closed to new replies.