• There seems to be a bug in my application that prevents me from adding a category to posts. I can add the category in Posts-> Category and under individual Posts, however, whenever I click save, the new category I created just disappears. I cannot get the category to remain. I have disabled all plugins (Not the cause), switched to the default theme (Not the cause), tried in different browsers e.g. Firefox (Not the cause), I am the admin and have permission to create categories (Not the cause), not a new website as I know this issue was sometimes the cause of a new website (Not the cause). I have gone through a bunch of things to fix the issue and with no resolve. Can anyone provide anymore insight on this or some steps I can do to fix/locate the issue.

    • This topic was modified 2 years, 11 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Are you trying to say that you’re linking categories in posts but when you save they don’t get linked to posts?

    Thread Starter The CBA Group, LLC

    (@eakeyson)

    @vijayhardaha I’m not exactly sure what you mean by “linking”. But yes, when I add a category, either under Post-> Categories or trying to add it to an individual post (Going to the post and I can add a category on the sidebar), after I hit save/update, the category disappears. I’m not trying to “link” anything at this time, just trying to create a category.

    Can you please check the console log in dev tools if there is any error when you click on the save or add category button?

    Also, please check the error log file if there is any php error coming.

    Thread Starter The CBA Group, LLC

    (@eakeyson)

    @vijayhardaha I don’t receive an error when adding, but when I load the page to add a category, I received 2 errors:

    GET https://thecbagroup.com/wp-json/jetpack/v4/scan 400 for admin-bar-notice.min.js?ver=1:1

    and

    Uncaught TypeError: Cannot read properties of undefined (reading ‘indexOf’) for edit-tags.php?taxonomy=category

    There seems to be some type of issue with reading ‘indexOf’, I will investigate more but does this provide you any insight?

    Uncaught TypeError: Cannot read properties of undefined (reading ‘indexOf’) for edit-tags.php?taxonomy=category

    This seems to be the source problem. I am not sure from which Js file it’s coming but JS coding is breaking at some point due to that the action is not getting completed.

    Thread Starter The CBA Group, LLC

    (@eakeyson)

    @vijayhardaha I agree, thank you for the recommendation on checking the errors in the console, I feel a bit silly not thinking of that lol. I will investigate more but I will close this as any additional questions will most likely be of a different topic.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Unable to add categories to posts’ is closed to new replies.