• Resolved Yola de Lusenet

    (@yola-de-lusenet)


    I installed Firebird Lite for a library of 156 images. When I create folders and drag-and-drop files from the library into the folder, the uncategorized folder counts down and the folders in which I drop the images count them correctly.

    Say there are 3 images in a folder. As soon as I click on a folder, the figure 3 disappears, and the count in the uncategorized folder goes up by 3. Clicking backwards and forwards shows the images still in the correct folder, but the number is gone.

    When I click the uncategorized folder the 3 images are no longer there, so they are in the folders where they should be. Only I cannot see how many there are in each folder, and the image count in uncategorized is off.

    Similarly, when I click for instance on an image in the library to view it, and go back to the library, all the numbers for all the folders have disappeared, except for ‘all’ and ‘uncategorized’, which are then 156 and 155.

    I use no caching at the moment, refreshed several times, cleared the browser cache, completely deleted and re-installed the plugin, de-activated Shortpixel…

    Any other suggestions?

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

    (@ninjateam)

    Hi @yola-de-lusenet ,

    Which is the version of FileBird you first installed?
    And which FileBird version on your site now please?

    Kelly

    Thread Starter Yola de Lusenet

    (@yola-de-lusenet)

    Sorry, misunderstanding: I installed the plugin only yesterday, twice. The second time because of this weird counting behavior which not many people seem to encounter; so I thought perhaps something went wrong with the first install. I installed it directly from the WP repository, so it is the most recent version 7.4.2.

    Yesterday I continued making folders and organizing files. All files are now in folders.

    When I open the folder the WP library gives the right number (upper right-hand corner).

    But there are no numbers in de lefthand panel, except for ‘all files’ 154 (I deletd 2, so that is correct) and ‘uncategorized’ 123. This number kept changing when I was organizing the files, it went up and down and it was never correct.

    It starts out okay but as soon as I click on something -anything, as far as I can see- the numbers get messed up.

    It is not serious in itself but I do get a bit nervous when inexplicable things happen – the cause of this may be serious after all.

    Plugin Support Bruce

    (@ninjateamwp)

    Hi @yola-de-lusenet ,

    Thanks for trying to clarify the case!

    But unfortunately, we can only try to imagine exactly the scenario you are trying to describe, so we will appreciate if you could record a short screencast showing the issue and send us, so that we can determine the best way to assist.

    Kind regards,
    -Bruce-

    Thread Starter Yola de Lusenet

    (@yola-de-lusenet)

    Okay, I did my best to show what happens, here it is https://photos.app.goo.gl/keSgNudy3r4s29BS7

    Plugin Support Bruce

    (@ninjateamwp)

    Hi @yola-de-lusenet ,

    Thanks for the helpful screencast, so please contact our developers to have a Teamview check scheduled to solve this issue:

    [email protected]

    Thank you!

    Kind regards,
    -Bruce-

    Hi @ninjateamwp

    I had a look at the screencast, and it seems this is the same problem I’m facing right now, which is due to Polylang compatibility.
    Indeed, the SQL query generated by the CompatiblePolylang class (in “all_folders_and_count_query” method), has an alias for fbva.folder_id field (“as id”), and this causes issues later on in the Tree class (“getAllFoldersAndCount” method) when it tries to access the folder_id field which doesn’t exist.

    I applied this workaround that seems to work:

    
    function my_fix_filebird_polylang( $query ) {
    	return str_replace( 'as id', '', $query );
    }
    add_filter( 'fbv_all_folders_and_count', 'my_fix_filebird_polylang', PHP_INT_MAX );
    

    Don’t hesitate to come back to me if needed.
    Regards.

    Plugin Support Bruce

    (@ninjateamwp)

    Hi @yola-de-lusenet and @lpointet

    Thanks for the contributions!
    Please note that the issue has been fixed in our soon-to-be-released general update, please anticipate.

    Kind regards,
    -Bruce-

    Thread Starter Yola de Lusenet

    (@yola-de-lusenet)

    Glad to hear all will be well.

    Thank you for the support Bruce and Ninja-team! All will be well.

    Plugin Support Bruce

    (@ninjateamwp)

    Hi @yola-de-lusenet and @lpointet ,

    The update has been released now, please check.
    Thank you!

    Kind regards,
    -Bruce-

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘erratic counting of images in folders’ is closed to new replies.