Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to edit category #19967

Closed
Flower7C3 opened this issue Jun 26, 2020 · 11 comments
Closed

Unable to edit category #19967

Flower7C3 opened this issue Jun 26, 2020 · 11 comments
Labels
1.7.6.5 Affects versions BO Category: Back Office Bug Type: Bug Categories Label: Which BO under menu is concerned Invalid Resolution: issue closed because invalid

Comments

@Flower7C3
Copy link

Describe the bug

I am still unable to save shop category. After form submitting I can see error PrestaShop\PrestaShop\Core\Domain\Category\Exception\CategoryConstraintException code 6:
image

Problem is because this radio button is disabled, so I am unable to select it:
image

When I manually enable it with development tools it works:
image

Additional information

  • PrestaShop version: 1.7.6.5
  • PHP version: 7.2
  • Related to:
@prestashop-issue-bot
Copy link

Thanks for opening this issue! We will help you to keep its state consistent

@Progi1984
Copy link
Member

Could you please provide us with more info?
We need more details to understand how we can reproduce your issue:

  • host
  • server setup and configuration
  • PrestaShop version (source)
  • debug mode report
  • PHP error logs
  • apache error log
  • Javascript console log
  • screenshots
  • ...

You don't know how to get this information? Please read the following article: How to create a bug report.Thank you!

@Progi1984 Progi1984 added NMI Status: issue needs more information 1.7.6.5 Affects versions labels Jun 29, 2020
@Flower7C3
Copy link
Author

There are no extra logs. This option is just set as disabled, so it is not send with post data.

@Progi1984
Copy link
Member

@Flower7C3 I need to a scenario for reproducing the issue ("Go on BO > Page X", "Disable X", "Add X").

@Flower7C3
Copy link
Author

  1. Go to BO > Catalogue > Categories
  2. Click Edit at any category
  3. In section "Parent category" the root category radio button is checked but disabled, so it will not be posted.

@Progi1984
Copy link
Member

In 1.7.7.x, I have no problem :

image

And 1.7.6.x, No problem too :

image

Which steps do it lack for reproducing your bug ?

@Flower7C3
Copy link
Author

Flower7C3 commented Jun 30, 2020

I use multishop and I have some third party modules installed.

I was looking in source code and probably the problem is here: 77c5b54#diff-27526556d82b1fc61eb6c6151345c9d8R47, where root category is disabled. When I comment out line it works. I have no idea why it is there.

@LouiseBonnard LouiseBonnard added Bug Type: Bug Minor Severity: minor bug > https://build.prestashop.com/news/severity-classification TBR Status: issue to be reproduced Waiting for dev Status: action required, waiting for tech feedback and removed NMI Status: issue needs more information labels Jul 1, 2020
@matks
Copy link
Contributor

matks commented Jul 21, 2020

Despite multiple attempts we cannot reproduce this bug. It is very likely it does come from a specific setting/config on your side, it can be server side configuration, it can be 3rd party module, it can be custom code. I close this issue as we cannot fix something that we cannot reproduce.

This does not mean this discussion is over 😉 if you find some more infos we might understand what's going on and maybe reopen the issue if we find a way to reproduce your behavior. But "open" issues are "things that we know what need to do / what we need to fix" and this issue does not meet this definition

@matks matks closed this as completed Jul 21, 2020
@prestashop-issue-bot prestashop-issue-bot bot removed the TBR Status: issue to be reproduced label Jul 21, 2020
@matks matks removed the Waiting for dev Status: action required, waiting for tech feedback label Jul 21, 2020
@Flower7C3
Copy link
Author

@matks thanks for debugging. I will back with info if I find any info about this problem.

@greenwebtester
Copy link

Hi,
I have the same problem when upgrade from ps 1.6 to ps 1.7. and I find a solution to my problem.
Screenshot_4

Screenshot_3

Hope that helps someone already have upgraded

@hibatallahAouadni hibatallahAouadni added BO Category: Back Office Categories Label: Which BO under menu is concerned Invalid Resolution: issue closed because invalid and removed Minor Severity: minor bug > https://build.prestashop.com/news/severity-classification labels Apr 27, 2022
@Triloworld
Copy link

Yes. We get same issue when migrating site.
I confirm that @greenwebtester solution working. It happen on PS 1.7.8.8.
It wasn't module to update store.
Our scenario take 2 shop and Export production -> Import to shop when we clear DB from example data by removing it (when you remove categories your settings stay same and now you can MUST import ID that setting point to it)
Created scenario where you have two show, one on domain X and one on Y and use export with different category root setting than version where you import (production shop on default one).

We get:
PrestaShop\PrestaShop\Core\Domain\Category\Exception\CategoryConstraintException code 0 (after import when I try to enable by removing "disabled" property on FE when editing root category to setup it)
PrestaShop\PrestaShop\Core\Domain\Category\Exception\CategoryConstraintException code 6 (for doing 1 screen only when I miss "PS_ROOT_CATEGORY" entry change)

@hibatallahAouadni can you try our scenario to re-enable issue if that's true?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.7.6.5 Affects versions BO Category: Back Office Bug Type: Bug Categories Label: Which BO under menu is concerned Invalid Resolution: issue closed because invalid
Projects
None yet
Development

No branches or pull requests

7 participants