• Resolved shoreshdavid

    (@shoreshdavid)


    If I have 5 images appearing in Uncategorized, the image counter shows “6”. If all images are categorized, so that Uncategorized is empty and displays “No Media Files Found”, the image counter shows “1”.

    FileBird is not calculating correctly the number of images.

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

    (@ninjateam)

    Hi there,

    Thanks for reaching out. That issue maybe caused by cache. Can you try clear both server cache and browser cache then try again?

    Please let me know if this works.

    Kelly

    Thread Starter shoreshdavid

    (@shoreshdavid)

    That was actually the first thing I checked. Today, after multiple cache clears, and nothing appearing in Uncategorized… it still says “1”.

    Plugin Author Ninja Team

    (@ninjateam)

    Hi there,

    Can you please send us the theme and list for plugins you are using?

    Best regards,
    Kelly

    Thread Starter shoreshdavid

    (@shoreshdavid)

    It is as follows:

    WordPress version
    5.2.2

    Theme
    Divi v3.25.4

    Plugins
    Akismet Anti-Spam Version 4.1.2 by Automattic
    Classic Editor Version 1.5 by WordPress Contributors
    Custom Howdy Version 1.0 by IRGeekSauce
    Divi Contact Extended Version 3.1.0 by Trumani
    Download Manager Version 2.9.99 by W3 Eden
    Duplicate Post Version 3.2.2 by Enrico Battocchi
    Email Encoder – Protect Email Address Version 1.5.2 by Ironikus
    Event Espresso Version 4.9.82.rc.035 by Event Espresso
    Event Espresso – Vanco Gateway (EE 4.6.0+) Version 1.0.7.p by Event Espresso
    FileBird Lite Version 2.2 by Ninja Team
    Jetpack by WordPress.com Version 7.5.2 by Automattic
    Redirection Version 4.3.1 by John Godley
    Sermon Manager for WordPress Version 2.15.15 by WP for Church
    Simple Calendar Version 3.1.22 by Simple Calendar
    Simple Calendar – FullCalendar Add-on Version 1.0.8 by SureSwift Capital, Inc.
    Simple Calendar – Google Calendar Pro Add-on Version 1.0.5 by Moonstone Media
    Under Construction Version 3.45 by WebFactory Ltd
    UpdraftPlus – Backup/Restore Version 2.16.15.1 by UpdraftPlus.Com, DavidAnderson
    Wordpress Hebrew Date Version 1.3.4 by Hatul
    WordPress RSS Feed Retriever Version 1.3.1 by Theme Mason
    WP-Optimize Version 2.3.4 by David Anderson, Ruhani Rabin, Team Updraft
    WPDM – Button Templates Version 1.2.1 by Shaon
    WPDM – Dropbox Explorer Version 1.3.2 by WordPress Download Manager
    WPDM – Extended Short-codes Version 2.8.2 by Shaon
    WPDM – Page Template Version 1.1 by Shaon
    WPDM – TinyMce Button Version 2.7.4 by Shaon
    WP Mail SMTP Version 1.5.0 by WPForms
    Yoast SEO Version 11.6 by Team Yoast

    And, yes, I did try disabling all plugins just to see if the Uncategorized counter would be affected. It still shows “1” even though all images have been categorized.

    Regards,
    Chris

    • This reply was modified 5 years, 8 months ago by shoreshdavid.
    Plugin Author Ninja Team

    (@ninjateam)

    Hi Chris,

    It seems that there is an error file, it does not appear but it is still in the database behind that, could you please check again?

    Kelly

    Thread Starter shoreshdavid

    (@shoreshdavid)

    Hi Kelly,

    Sorry but your reply doesn’t make much sense. Do you mean a log file on our web server? How is it “in the database behind that”? Do you mean the MySQL database for our website?

    Please clarify exactly what you would like us to check.

    Regards,
    Chris

    Plugin Author Ninja Team

    (@ninjateam)

    Hi Chris,

    Please run this SQL command to get the post ID which causes an error (you can change wp_ to your prefix)

    SELECT * FROM wp_posts AS posts
             WHERE 1=1 AND posts.ID NOT IN
             (SELECT object_id FROM wp_term_relationships WHERE term_taxonomy_id IN(
               SELECT term_id from wp_term_taxonomy where taxonomy = 'nt_wmc_folder'))
             ) AND posts.post_type = 'attachment' AND ((posts.post_status = 'inherit' OR posts.post_status = 'private'))

    And after you know that post ID, you can know which image is having an issue.

    Tommy

    Thread Starter shoreshdavid

    (@shoreshdavid)

    Hi Tommy,

    First off, your SQL command has an error — extra “)” at the end of line 4. When I ran the command it pointed to an “image attachment” that FileBird wasn’t accounting for, and after deleting it, the image counter in FileBird next to “Uncategorized” correctly showed nothing.

    As you probably already know, WordPress admins can go into the WP back office and “crop” an existing image so that it is saved as an “attachment”. This is how WordPress works and so this issue shouldn’t be blamed on WordPress, MySQL, or the image ID.

    Thank you for your efforts.

    Best Regards,
    Chris

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Not calculating number of images correctly’ is closed to new replies.