Jump to content

Product category gets reset everytime you edit the product


Recommended Posts

The product category gets reset every time you edit the product and it give the following error, when you try to save it:

"The product must belong to at least one category.

The product must belong to the default category."

 

I'm unable to find a fix to this problem. Please suggest me a fix or at least let me know which files to look for, to fix this bug. A screenshot of the error has been attached to this post.

 

Thanks in advance for your help.

 

post-535887-0-16347400-1382291667_thumb.png

Link to comment
Share on other sites

The product category gets reset every time you edit the product 

 

Rakshitha, can you clarify this for me please. Have you previously been able to associate the product with a category via the Associations tab, and save that update successfully?

Are you saying that when you subsequently go back in and make any edit to the product, that association to category or categories is removed (i.e. all the boxes against the categories in the Associations tab become unticked)?

By default, when you first create a new product, Prestashop will place it in the Home category. If you go into the Associations tab and untick the box next to Home, and try to save without having associated the product to another category, the message in your screenshot will be displayed.

Thanks, Dave 

Link to comment
Share on other sites

Hi Dave, thanks for replying.

Yes, I've previously been able to associate the product with a category and saved it too. But, the next time you go and edit the product, like change the product description and click on save, it shows the error I've mentioned in my original post.

 

But, when you go to the Associations tab after editing the description, the category previously selected will still checked. You need to uncheck the check-box and check it again and save it to save the product successfully, without the error mentioned above.

You can still manage to save the product, provided you go to the Associations tab and check the product's previously selected category and check it again, every time you edit the product. But, this is a bit too troublesome for the customer.

 

Thanks again.

Link to comment
Share on other sites

I have checked with localhost.. its working fine... then i wrote the simple code to see the localhost compatibavility and server compatibavility i found that in localhost we are using Server API as Apache2.0 handler and in server the Server API is CGI/FAST CGI. Please let me know may be because of that Server API setting or not...

Link to comment
Share on other sites

  • 4 months later...
  • 4 weeks later...

Hi,

 

I am having the same issue with a fresh install of Prestashop 1.6.0.5; I am unable to save any product because it keeps saying

'1. Products must be in at least one category'

'2. This product must be in the default category'

 

Also, I get the following error message each time I work on the catalog:

"Confirmation: Some tabs was not loaded correctly. Would you like to reload them?"

 

This happens on a Mac with Chrome and Safari. Is this a fresh Prestashop 1.6 bug?

Link to comment
Share on other sites

This happens to me as well: fresh install on PC in Chrome and in Firefox. I am desperate!! I just finished a 3 day streak of working on the images and now I cannot populate the catalog!!! HELP!

 

I found a solution; you can solve this by setting your Cache folders, including the Smarty folder, to CHMOD 777.

Edited by prestaquest (see edit history)
Link to comment
Share on other sites

Just tried it and there is no difference in behavior. I imported a test-cvs file with sample products to see if I could change them and I could, except for the price, so that is not helping either.

I will have to completeley delete and reinstall I guess...

Link to comment
Share on other sites

OK. I did the reinstall, new database etc.

Now I can see the dashboard, I can add products but....

I click the 'Update all' button for the modules and I get a white screen with:

 

[PrestaShop] Fatal error in module install-1.3.2:
Call to undefined method Tools::recurseCopy()

 

Now what????

Link to comment
Share on other sites

OK. I did the reinstall, new database etc.

Now I can see the dashboard, I can add products but....

I click the 'Update all' button for the modules and I get a white screen with:

 

[PrestaShop] Fatal error in module install-1.3.2:

Call to undefined method Tools::recurseCopy()

 

Now what????

 

Try to postpone the update of your modules. Is it essential for you to update your modules to get your catalog working?

If not, I wouldn't bother for the moment. Did the previous error message disappear with the new install?

Link to comment
Share on other sites

Thanks for the tip.

I gave the Smarty folder 777, but that did not help.

It is not that I can use the modules, when I click the tab, I get a white screen with the error lines.

So there is no choice of updating or not, I cannot do anything with them and thus.....

probably reinstalling again (*sigh*)

 

PS the other errors disappeared, apparently you cannot rename the ADMIN folder yourself anymore, it is done by PS

Link to comment
Share on other sites

Thanks for the tip.

I gave the Smarty folder 777, but that did not help.

It is not that I can use the modules, when I click the tab, I get a white screen with the error lines.

So there is no choice of updating or not, I cannot do anything with them and thus.....

probably reinstalling again (*sigh*)

 

PS the other errors disappeared, apparently you cannot rename the ADMIN folder yourself anymore, it is done by PS

 

Have a look at this: http://www.prestashop.com/forums/topic/322224-prestashop-fatal-error-in-module-install-132/

 

It might help you out!

Edited by prestaquest (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...