Solved

All categories suddenly disappear on backend in WooCommerce

Posted on 2015-02-21
4
149 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
  • 2
  • 2
4 Comments
 
LVL 70

Accepted Solution

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

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

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 39

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
MySQL query to show different levels from a table. 5 43
php image upload 3 27
modify h2 4 16
two tables one button 11 19
WordPress is constantly evolving, and with each evolution appears to get better and better.  One of the big drawbacks prior to version 3 was that there was no way to be able to set up a custom menu from the backend. The Old Way Adding menus is…
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…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now