WordPress.org

Ready to get started?Download WordPress

Forums

Category link shows no posts (28 posts)

  1. AYEBRO
    Member
    Posted 11 months ago #

    Hi there,

    Having an issue with a specific Category showing '0' Posts under Categories/Dashboard although there's a lot of posts under that Category.

    Also, when I view a post under the Category in question and I click on the Category link I get no posts showing but a message "Sorry, no entries found."

    The other Categories show up fine, just this one titled 'Video' found at http://ayebro.co.nz/blog/video/

    I've tried renaming the Category to a few different names/slugs with no avail.

    Will appreciate it if someone can shed some light on this issue.

    Thanks in advance.

  2. AYEBRO
    Member
    Posted 10 months ago #

    Still need help with this issue, if anyone got any ideas or a fix, please let me know.

    Cheers

  3. AYEBRO
    Member
    Posted 10 months ago #

    Anyone able to help me out with this issue? If there is more info I need to provide, please let me know and I'll happily provide the info needed.

  4. mindctrl
    Member
    Posted 10 months ago #

    If you're certain the video category does have posts, you probably have a plugin or theme conflict. You should start by disabling all of your plugins and changing to the 2013 theme and testing. If the posts show, you have some kind of conflict. Start enabling plugins one at a time and testing until you find out which one is causing the problem.

  5. AYEBRO
    Member
    Posted 10 months ago #

    Yep, definitely have posts under the 'Video' category. Cool, thanks, will give that a go.

    Cheers

  6. AYEBRO
    Member
    Posted 10 months ago #

    Just tried your suggestions and still not showing. Under Categories, the Video category still shows 0 and I know my site has over 500 posts under this Video category, not sure how this happened. :(

  7. mindctrl
    Member
    Posted 10 months ago #

    Did you disable all plugins and change to 2013 at the same time, so that you're running only the 2013 theme and no plugins?

  8. AYEBRO
    Member
    Posted 10 months ago #

    Yep, I disabled all plugins and switched over to the 2013 theme.

  9. mindctrl
    Member
    Posted 10 months ago #

    Does this link look right? http://ayebro.co.nz/blog/?category=video

  10. AYEBRO
    Member
    Posted 10 months ago #

    That link just shows the home page. I go here http://ayebro.co.nz/blog/video/ but I get the error "Sorry, no entries found.".

    Thanks for the help btw, really appreciate your time and efforts :)

  11. mindctrl
    Member
    Posted 10 months ago #

    So http://ayebro.co.nz/blog/?category=video just shows the home page with all cats? Interesting.

    Does your theme have a file called category-video.php? If so, you could paste the contents of that file into pastebin.com and share the link here?

    You could also install the Rewrite Rules Inspector plugin to check if anything weird is going on there.

    Also, could you pastebin the contents of your .htaccess file?

  12. AYEBRO
    Member
    Posted 10 months ago #

    I installed the Rewrite Rules Inspector, how do I check if anything weird is going on?

    The current theme we're using has no category-video.php.
    Also, how do I pastebin contents of the .htaccess file?

  13. mindctrl
    Member
    Posted 10 months ago #

    If you see nothing related to video in the Inspector, you should be ok.

    If you have FTP or shell access to your web host, you can find the .htaccess file in the web root directory. If you can't see it, you can install a plugin like WP htaccess editor to see the content of the file.

  14. AYEBRO
    Member
    Posted 10 months ago #

    Hope I did this right lol

    http://pastebin.com/zhfQ4kFh

  15. AYEBRO
    Member
    Posted 10 months ago #

    Now with the rewrite inspector, all I do is paste url in there and click filter?
    Should I also paste the results here?

  16. mindctrl
    Member
    Posted 10 months ago #

    The WP portion of the .htaccess looks right.

    When you visit Posts > Categories in the admin, the Video category shows the slug and the # of posts. What do those say?

    If your theme has a category.php file, please paste its contents into pastebin.

    When you visit Plugins in the admin, across the top it shows All, Active, Updates Available (might not show), etc. Does it show "Must-Use"?

  17. AYEBRO
    Member
    Posted 10 months ago #

  18. AYEBRO
    Member
    Posted 10 months ago #

    Video category in admin shows 'video' as slug and 0 posts

  19. AYEBRO
    Member
    Posted 10 months ago #

    'Plugins' in admin does not show "Must-Use"

    Sorry, should've put the other posts in 1, my bad.

  20. mindctrl
    Member
    Posted 10 months ago #

    Video category in admin shows 'video' as slug and 0 posts

    Well that's why http://ayebro.co.nz/blog/video/ says "Sorry, no entries found." There are no posts filed in the video category.

  21. AYEBRO
    Member
    Posted 10 months ago #

    The thing with that is, it use to show posts under that category, but not sure how it changed to 0 and every time I post a new video, I always add that to the Video category, but it still shows 0, not sure why.

    The most recent video posts was posted yesterday and put under the Video category. Would you know why it shows up as 0?

  22. mindctrl
    Member
    Posted 10 months ago #

    Do you happen to have more than one video category?

    It could be a plugin conflict preventing the category from saving. I'd try disabling all plugins, editing an existing post you want to be in the video cat, add it to the video cat, and save the post again. See if it shows up then. If so, you've got a plugin conflict of some kind. Go through the steps I mentioned earlier to find out which one.

    If that's not the culprit, I'm really curious to know what it is.

  23. AYEBRO
    Member
    Posted 10 months ago #

    Sweet, will give that a go, cheers.

    Edit: Nope, I currently have one Video category.

  24. AYEBRO
    Member
    Posted 10 months ago #

    Still no luck :( I might have to create a new video category and go through the whole blog posts to put video posts into the new category.
    I just created a new video category and posted a test post with the new video category and it shows fine. I'm still lost to how the original video category changed to 0.

    Thanks for your help btw, much appreciated :)

  25. mindctrl
    Member
    Posted 10 months ago #

    Something is definitely fishy.

    You can enable debug in the wp-config.php file to see if any errors are happening when you save the video posts.

    Adding this to wp-config.php turns on debugging. It will write any errors and notices to /wp-content/debug.log. You might find some interesting things there. If so, share them on pastebin.

    // Enable WP_DEBUG mode
    define('WP_DEBUG', true);
    
    // Enable Debug logging to the /wp-content/debug.log file
    define('WP_DEBUG_LOG', true);
    
    // Disable display of errors and warnings
    define('WP_DEBUG_DISPLAY', false);
    @ini_set('display_errors',0);
  26. mindctrl
    Member
    Posted 9 months ago #

    Did you ever figure out what was going on here?

  27. brettbum
    Member
    Posted 4 months ago #

    Seeing the same issue today on a site running wordpress 3.8.1 and genesis framework 2.0.2 hosted on wpengine.

    Weirdest thing. all other categories are fine.

    When I look at All posts, I can see posts with my category, but it won't let me filter on that category(returns 0).

    Troubleshooting

    I tried adding a new category through quickedit, hit update.

    Checked my category list and all (but the post I just edited) in the categories showed up again. (partial fix)

    Then I noticed that my tags for that same article were hosed up. I can't add tags to this particular article (the most recent).

    checked my error logs, did not see anything.

    turned debug on, then went and tried to add another tag.

    came up with this gem

    WordPress database error: [Incorrect key file for table './wp_vivmag/wp_terms.MYI'; try to repair it]
    SELECT tt.term_id, tt.term_taxonomy_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy as tt ON tt.term_id = t.term_id WHERE t.name = 'Cruise' AND tt.taxonomy = 'post_tag' /* From [vivmag.com/wp-admin/admin-ajax.php] in [N/A] */
    
    WordPress database error: [Incorrect key file for table './wp_vivmag/wp_terms.MYI'; try to repair it]
    SELECT term_id FROM wp_terms as t WHERE t.name = 'cruise' /* From [vivmag.com/wp-admin/admin-ajax.php] in [N/A] */
    
    WordPress database error: [Incorrect key file for table './wp_vivmag/wp_terms.MYI'; try to repair it]
    SELECT term_id FROM wp_terms as t WHERE t.name = 'cruise' /* From [vivmag.com/wp-admin/admin-ajax.php] in [N/A] */
    
    WordPress database error: [Duplicate entry '17972' for key 'PRIMARY']
    INSERT INTO <code>wp_terms</code> (<code>name</code>,<code>slug</code>,<code>term_group</code>) VALUES ('Cruise','cruise',0) /* From [vivmag.com/wp-admin/admin-ajax.php] in [N/A] */
    
    Notice: Undefined index: psp_edit in /nas/wp/www/cluster-1233/vivmag/wp-content/plugins/platinum-seo-pack/platinum_seo_pack.php on line 1206
    
    Notice: Undefined index: psp-meta-nonce in /nas/wp/www/cluster-1233/vivmag/wp-content/plugins/platinum-seo-pack/platinum_seo_pack.php on line 1207
    
    Notice: Undefined index: psp_edit in /nas/wp/www/cluster-1233/vivmag/wp-content/plugins/platinum-seo-pack/platinum_seo_pack.php on line 1206
    
    Notice: Undefined index: psp-meta-nonce in /nas/wp/www/cluster-1233/vivmag/wp-content/plugins/platinum-seo-pack/platinum_seo_pack.php on line 1207
    
    Notice: Undefined index: psp_edit in /nas/wp/www/cluster-1233/vivmag/wp-content/plugins/platinum-seo-pack/platinum_seo_pack.php on line 1206
    
    Notice: Undefined index: psp-meta-nonce in /nas/wp/www/cluster-1233/vivmag/wp-content/plugins/platinum-seo-pack/platinum_seo_pack.php on line 1207

    to be continued....

    :)

  28. brettbum
    Member
    Posted 4 months ago #

    Ran repair on those tables in phpmyadmin.

    That seemed to fix things, although it did erase, zero out my category and tags on that one post.

    Afterwards, I was able to add categories and tags again.

    So the long and short of it, I suggest running repair on your DB :)

Reply

You must log in to post.

About this Topic

Tags

No tags yet.