Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

All categories suddenly disappear on backend in WooCommerce

Posted on 2015-02-21
4
Medium Priority
?
422 Views
Last Modified: 2015-02-22
I've a WordPress (3.9.3) with WooCommerce (2.0.19) on a website.
Suddenly a short time ago ALL the Product Categories are not visible when editing products or under the Categories section on the WooCommerce Products tab.

I have not upgraded WordPress or WooCommerce during the period when the Categories disappeared.
On the frontend of the website (http://www.owenoneillfurniture.com/) all of the products created prior to this issue occurring appear perfectly and categories are visible in menus & dropdowns however I cannot edit or add any new products as the Categories are no longer visible.
Product-Categories.jpgEditing a Product
When I look at the database I can still see all the Categories listed in the wpterms table .. they appear to be correctly linked to all the current products (posts) via the wpterm_relationships table.
Has anyone else experienced this?
Does anyone have a resolution/suggestion of a fix?

Unfortunately upgrading WordPress or WooCommerce is not a possibility in the short term as both are heavily tied into a theme which will need some work to upgrade.

What I cannot understand is how the Categories work on the frontend but have completely disappeared on the backend for editing products.
0
Comment
Question by:Eoin OSullivan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 2000 total points
ID: 40623759
Did you add or update any other plugins recently?

Does deactivating/re-activating WooCommerce fix it?
0
 
LVL 40

Author Comment

by:Eoin OSullivan
ID: 40624316
Jason
No plugins were added or updated lately.

However after taking the precaution of backing up the Database and Filesystem I DEACTIVATED and REACTIVATED the WooCommerce plugin and BINGO .. it was working again.

Not sure how or why the toggling of the plugin worked .. but there you go!
0
 
LVL 40

Author Closing Comment

by:Eoin OSullivan
ID: 40624317
Often the simplest things turn out to be the problem .. thanks for reminding me to try the deactivation option
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 40624906
Not sure how or why the toggling of the plugin worked .. but there you go!

Most cart software treats products and product meta as a custom post type so that has to be defined each time the plugin is loaded.  It's possible, albeit not common, for the the internal rewrite rules cache to regenerate without including that file and that's when things disappear out of the admin.  From the front end, a database entry is a database entry so things continue to work there.

Deactivating/reactivating a well-written plugin usually runs the flush_rewrite_rules() function on re-activation and that fixes problems like this.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question