Solved

All categories suddenly disappear on backend in WooCommerce

Posted on 2015-02-21
4
167 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

In Part I (http://www.experts-exchange.com/Web_Development/Blogs/WordPress/A_8410-Getting-Started-In-WordPress-Part-I.html), I introduced you to the powerful WordPress backend, the WordPress administrative Dashboard.  In Part II, I will introduce yo…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
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…

803 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