• Resolved ssqm20

    (@ssqm20)


    Hello!

    I had a taxonomy named “Categories” with slug “project_category”, which further allowed each post to be assigned to a sub-category like ‘landscape’, ‘hospitality’ etc.. The taxonomy is now missing, which may be causing an error preventing the post to be displayed.

    site name.com/wp-admin/edit-tags.php?taxonomy=project_category now brings up a page with error ‘Invalid Taxonomy’

    Any help would be much appreciated. Apologies if I overlooked anything, I’m a beginner, and have very little knowledge about this stuff.

    Thank you!

    • This topic was modified 4 months, 2 weeks ago by ssqm20.
    • This topic was modified 4 months, 2 weeks ago by ssqm20.
    • This topic was modified 4 months, 2 weeks ago by ssqm20.

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Did you change any settings regarding this taxonomy? Did you perform any updates to the site of any sort, not just to the CPTUI codebase? Any customizations being done to the site via code in general?

    Is it possibly that the plugin somehow became deactivated?

    Thread Starter ssqm20

    (@ssqm20)

    Thank you for your response. This is the strange part. I did not make any changes, no auto-updates happened either. Everything was working fine, then for a week or so did not even log into the site since I was travelling and while travelling I tried to open the website and project categories are nowhere to be seen.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Not sure what to suggest at this point, to be honest, since we don’t have any mechanism that auto changes any settings. That’d be just rude in my opinion 😀

    To be certain, on top of making sure the plugin is indeed active, visit the plugins list page to confirm, and keep an eye at the top of the page in case an admin notification says that the plugin suddenly can’t be found. Also check the settings for CPTUI to verify the taxonomy in question is still in the settings themselves.

    Thread Starter ssqm20

    (@ssqm20)

    Yes, that’s what I thought :’)

    The plugin is active, all other taxonomies working just fine.
    I have a doubt (please keep in mind that I’m a beginner so this could be silly), I had done a full backup of my website from cPanel a year ago (the most recent backup unfortunately doesn’t help as it was after the issue started). Here is a screenshot of the main content. https://prnt.sc/RjJfhRLUtCLw


    Will this help bring back the taxonomy in anyway? Since it had sub-categories, backup from even an year ago would actually be helpful.

    Thanks again!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Since we don’t do any content deletion, chances are all of your taxonomy terms are still in the database. The question is why things aren’t getting recognized as being registered.

    A detail like that is going to be CPTUI settings based more than anything, and that’s still all user-set. We register the content type based on the settings used.

    Do you see anything on the right hand side if you visit CPTUI > Tools > Taxonomies Tab from the admin menu. It’d look like a big blob of text. If you see two empty textareas, then the issue is that somehow the settings got lost, and would need to be restored somehow (of which there are various ways to do so).

    Thread Starter ssqm20

    (@ssqm20)

    Hey, Yes, I can see a bunch of text including taxonomy names, but not the one that is missing.
    Screenshot below.

    https://prnt.sc/lW9IPAb_ytga

    Thank you for looking into this.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    If the item is not in that blob, then chances are it was somehow deleted from the list of registereted taxonomies. The blob is a JSON-string of all your taxonomy settings.

    Another spot where you can view all found/registered items would be the “Registered Types and Taxes” submenu, including all of the registered settings for it.

    May be a case of you need to re-create the taxonomy and re-fill in the details for it. Or if you have a recent enough backup that would have it, then just grabbing the option from the wp_options table would be enough. I’d hate for you to have to restore a backup of the entire site, especially if the backup is considerably old. We’ve aimed to make CPTUI settings extremely portable.

    Thread Starter ssqm20

    (@ssqm20)

    Unfortunately its missing from the Registered Types and Taxes submenu as well. I was checking my spam folder in mail and found out that the only update that happened around the time is the WordPress version. Since it was in Spam, I hadn’t noticed it till now. Do you think something like this could’ve happened because of the update?
    Still wondering if just the plugin can be restored from the backup I had mentioned previously?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I’d be surprised if updating CPTUI somehow made you lose ONE part of your overall settings, and we never touch the existing settings with updates.

    Regarding restores, I’d still prefer you not have to go and reinstall the ENTIRE website from a backup. You also don’t need to restore the entire plugin, just the database values that our UI saves to. I’m much more a fan of fetching the specific option from the wp_options table, or if you can restore the backup to a separate one time install, you can fetch the JSON blob from CPTUI > Tools > Taxonomies and re-import just that one part.

    The option key you want to fetch from the table would be: cptui_taxonomies

    If by chance the post types option is needed to, it’d be found with this option key: cptui_post_types

    Thread Starter ssqm20

    (@ssqm20)

    Hey Michael,
    Thank you so much for your help. I managed to recover a deleted backup and restored from that, and now everything is back to the way it should be. Still not sure what went wrong, but from now on going to keep older backups too :’)

    Really appreciate your support!

    • This reply was modified 4 months, 2 weeks ago by ssqm20.
    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Let us know if you need anything else.

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.