cancel
Showing results for 
Search instead for 
Did you mean: 

Whoops our bad category error

Whoops our bad category error

Hi,

I try to open a category with products but i get an error

 

Whoops our bad
 

The link to open a category is like this:

https://my-shop.de/catalog/category/view/s/garnelen/id/7/

The think is that I have cleared the acche and I have reindex but still no result.

I use 2.1.7 version of Magento

Can please someone assist ?

6 REPLIES

Re: Whoops our bad category error

Hi @martingriffin17,

 

Do you have URL rewrites on? Have a look in Admin --> Marketing --> URL Rewrites

 

The link you have provided is not working. Where is the link you are clicking and is it manually created or created by Magento? Assuming the ID of the link you created is correct try: 

 

https://my-shop.de/catalog/category/view/id/7/

Re: Whoops our bad category error

Use Web Server Rewrites is enabled by default.

 

I have only one category and one product and by indexing I get these results

Design Config Grid index has been rebuilt successfully in 00:00:00
Customer Grid index has been rebuilt successfully in 00:00:00
Category Products index has been rebuilt successfully in 00:00:00
Product Categories index has been rebuilt successfully in 00:00:00
Product Price index has been rebuilt successfully in 00:00:00
Product EAV index has been rebuilt successfully in 00:00:00
Stock index has been rebuilt successfully in 00:00:00
Catalog Rule Product index has been rebuilt successfully in 00:00:00
Catalog Product Rule index has been rebuilt successfully in 00:00:00
Catalog Search index has been rebuilt successfully in 00:00:00

 

This doesnot work too

https://my-shop.de/catalog/category/view/id/7/

 

I am frustrated 

Re: Whoops our bad category error

hmm. Im not really an expert but your URL seems to have stuff that mine doesn't. My URL's look like www.domain.com/catalog/category/id/7 (for example). Yours have additional stuff that doesn't seem to have a purpose for example "/s/" and "/garnelen/".

 

Is your category URL Key "garnelen"? Is it getting the friendly URL and category ID mixed up? Are these manual links or from the menu bar?

 

 

The hyperlink I copied earlier still had the extra stuff in the link. I only changed the text by accident. Try to manually copy and paste:-

https://my-shop.de/catalog/category/view/id/7

 

Instead of:-

https://my-shop.de/catalog/category/view/s/garnelen/id/7/

Re: Whoops our bad category error

@Stu583 what I see is that in url_rewrite table in mysql for the categories are not created the records but only for products. A product can be searched and viewed but the category of the product i cant and i believe because it is not in this mysql table a record()url_rewrite

Re: Whoops our bad category error

xmm I went to Marketing -->URL Rewrites and added my category and product. Product looks ok but category still not loading Woops our bad

Re: Whoops our bad category error

Solution. 

 

Keep in mind that all categories should be under the Default Category because the roo Category is not included in url rewrites