• Resolved hansgaita

    (@hansgaita)


    Hi, I’m getting this kind of errors since yesterday, when I updated to version 2.5.9:

    Fatal error: Uncaught Error: Call to undefined function count_posts() in /home/madridoriginal/public_html/wp-content/plugins/reorder-post-within-categories/public/class-reorder-post-within-categories-public.php:217 Stack trace: #0 /home/madridoriginal/public_html/wp-content/plugins/reorder-post-within-categories/public/class-reorder-post-within-categories-public.php(165): Reorder_Post_Within_Categories_Public->is_ranked(‘interes’, 2356, ”, Object(WP_Query), false) #1 /home/madridoriginal/public_html/wp-content/plugins/reorder-post-within-categories/public/class-reorder-post-within-categories-public.php(120): Reorder_Post_Within_Categories_Public->is_manual_sort_query(Object(WP_Query)) #2 /home/madridoriginal/public_html/wp-includes/class-wp-hook.php(287): Reorder_Post_Within_Categories_Public->filter_posts_where(‘ AND ( \n wp_te…’, Object(WP_Query)) #3 /home/madridoriginal/public_html/wp-includes/plugin.php(249): WP_Hook->apply_filters(‘ AND ( \n wp_te…’, Array) #4 /home/madridoriginal/public_html/wp-includes/class in /home/madridoriginal/public_html/wp-content/plugins/reorder-post-within-categories/public/class-reorder-post-within-categories-public.php on line 217

    About one hour ago, I have updated to your latest version, v2.6.0, but nothing has changed… (well, before it said the error was on line 218 and now it is on line 217).

    As you can see in the page I gave as example, I’m using PODS and I see that the link is working with categories (“Categoría”), but not with other taxonomies (“Experiencia”, “Lugar”)

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    Hola @hansgaita,

    que chulo el sitio!

    Fatal error: Uncaught Error: Call to undefined function count_posts()

    that’s odd, the function definitely exists (line 274 in the same file) but was changed in recent updates, so my guess is that possibly you have a cache of the older version on your site? Have you tried to clear the cache and see if the error persists?

    As you can see in the page I gave as example, I’m using PODS and I see that the link is working with categories (“Categoría”), but not with other taxonomies (“Experiencia”, “Lugar”)

    so, this is likely related to the bug in WordPress core which I explain here in FAQ #10, see the 2nd half of the FAQ with the paragraph starting ‘If your query is a taxonomy archive query for a given term […]’. Do you think this may be the case with your site?

    Plugin Author Aurovrata Venet

    (@aurovrata)

    Fatal error: Uncaught Error: Call to undefined function count_posts()

    ok, so I think maybe this could be related to the last update to v2.6 which I had to do in 2 steps on the WP repo as I had forgotten to update the plugin version number….

    I just realised a major booboo in the code, the count_posts fn was never being called as its a method and not a function…

    I am releasing v2.6.1 with some minor fixes, please upgrade to this version and let me know if you are still facing the issue of the fatal error.

    just released v2.6.2 with the fix and couple more minor fixes

    For the taxonomy archive sorting on the front end, the 2 are likely related, so hopefully this will also sort itself out.

    If for the issue persists, please downgrade till we nail the issue.

    Thread Starter hansgaita

    (@hansgaita)

    ?Qué bueno que te guste el sitio!
    And thank you very much for solving the problem so quickly. Now, with this new update, it works hassle free. ??

    Plugin Author Aurovrata Venet

    (@aurovrata)

    it works hassle free

    enhorabuena! Por favor, cuando tienes tiempo libre, deja un comentario.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Latest Update doesn’t solve Fatal Error’ is closed to new replies.