We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Error in entry categories 7.2.15 and before

Development and Programming

adlix's avatar
adlix
14 posts
2 years ago
adlix's avatar adlix

Does anybody know this error and a solution? Data seems fine. But the error is there since 5.2 and it was the same in every version. Here a video… https://www.youtube.com/watch?v=IO0fgUZ9vsM

       
Tom Jaeger's avatar
Tom Jaeger
449 posts
2 years ago
Tom Jaeger's avatar Tom Jaeger

Hi Adlix,

It looks like your video is unavailable when we try to view it.

Thanks,

-Tom Jaeger

       
adlix's avatar
adlix
14 posts
2 years ago
adlix's avatar adlix

Hi Tom, sorry. Now it’s accessible https://www.youtube.com/watch?v=IO0fgUZ9vsM

Thanks,

Matthias

       
Tom Jaeger's avatar
Tom Jaeger
449 posts
2 years ago
Tom Jaeger's avatar Tom Jaeger

Thanks for passing this video along…. Great way to see the problem.

I asked a team member to take a peek at it tomorrow to see if we can replicate it. However with the new release today, we also changed the category interface. Any chance you can update to the newest version and confirm your still having this issue?

Thanks,

-Tom Jaeger

       
Tom Jaeger's avatar
Tom Jaeger
449 posts
2 years ago
Tom Jaeger's avatar Tom Jaeger

HI Adlix,

We have been unable to replicate this issue… Any chance you can check to confirm there are no console errors your running into?

ALSO, any chance you can update to the newest version of EE 7 (7.2.17 – there are some changes on the category interface in this release)

Thanks,

-Tom Jaeger

       
adlix's avatar
adlix
14 posts
2 years ago
adlix's avatar adlix

Hi Tom, site is latest version now. The problem is still there. I expected your answer already. The problem exists so long and no-one else reported it. LOG-files are empty. Have you got a hint where to debug? I tried to find, but missed the piece of code where the values are selected. Is there perhaps any join or field status required?

Thanks for your help,

Matthias

       
Yuri's avatar
Yuri
315 posts
2 years ago
Yuri's avatar Yuri

Hi Matthias,

I wasn’t able to replicate this on my install.

I wonder if this is related to the fieldtypes you are using on entry publish tab, what do you have in there? Also, can you check your browser dev console for any errors when you open this page?

Lastly, do categories show as expected on the front-end when using template tags?

       
adlix's avatar
adlix
14 posts
2 years ago
adlix's avatar adlix

Hi, I found the reason for the problem now. The tables categories and category_field_data have both a field group_id. In both tables are different group_ids for the same category. I think this happened on moving categories manually after an early migration. But I’m also not sure why this redundant group_id is necessary at all. Is there a reason for this or is it a relic? They should be always 1:1 right? Perhaps you can give a small feedback for me to know I’m on the right path.

Many thanks for your help. It kept me on debugging. 😉

Matthias

       
Yuri's avatar
Yuri
315 posts
2 years ago
Yuri's avatar Yuri

Hi Matthias - this is correct, group_id in both tables should be same for same cat_id. While this is somewhat redundant indeed, large porting of categories functionality has been written years and years ago and relies on having both cat_id and group_id in both tables, and them being the same.

Glad you’ve been able to figure this out!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.