Solved

All categories suddenly disappear on backend in WooCommerce

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
push Book Today button to right 10 34
Custom Wordpress Loop 22 38
issue with DB import 1 17
Remove a page from Google? 2 15
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…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

809 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