rakshitha Posted October 20, 2013 Share Posted October 20, 2013 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. Link to comment Share on other sites More sharing options...
stottycabanas Posted October 21, 2013 Share Posted October 21, 2013 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 More sharing options...
rakshitha Posted October 21, 2013 Author Share Posted October 21, 2013 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 More sharing options...
stottycabanas Posted October 21, 2013 Share Posted October 21, 2013 Yes, I can see that would be troublesome. Your screenshot implies that the product is disabled, but that shouldn't make any difference. I can't explain the behaviour you are seeing, it's very strange - maybe another community member has some ideas. Link to comment Share on other sites More sharing options...
davwhatmore Posted October 21, 2013 Share Posted October 21, 2013 I see that could be a neērts.Ierīce in sleep mode, display screen, but it does not make any difference. Link to comment Share on other sites More sharing options...
rakshitha Posted October 28, 2013 Author Share Posted October 28, 2013 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 More sharing options...
vansrv7 Posted March 11, 2014 Share Posted March 11, 2014 I have the same issue, did you found a solution? Link to comment Share on other sites More sharing options...
prestaquest Posted April 5, 2014 Share Posted April 5, 2014 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 More sharing options...
astrid@jbh Posted April 8, 2014 Share Posted April 8, 2014 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! Link to comment Share on other sites More sharing options...
prestaquest Posted April 8, 2014 Share Posted April 8, 2014 (edited) 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 April 8, 2014 by prestaquest (see edit history) Link to comment Share on other sites More sharing options...
astrid@jbh Posted April 8, 2014 Share Posted April 8, 2014 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 More sharing options...
astrid@jbh Posted April 9, 2014 Share Posted April 9, 2014 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 More sharing options...
prestaquest Posted April 9, 2014 Share Posted April 9, 2014 I am sorry you are having these issues Astrid. What version of Prestashop are you running? I am at 1.6.0.5 and I solved it with granting full read/write access to my Smarty cache folders. Link to comment Share on other sites More sharing options...
prestaquest Posted April 9, 2014 Share Posted April 9, 2014 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 More sharing options...
astrid@jbh Posted April 9, 2014 Share Posted April 9, 2014 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 More sharing options...
prestaquest Posted April 9, 2014 Share Posted April 9, 2014 (edited) 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 April 9, 2014 by prestaquest (see edit history) Link to comment Share on other sites More sharing options...
astrid@jbh Posted April 10, 2014 Share Posted April 10, 2014 Prestaquest... you are WONDERFUL!!! I have my modules back and I can finally go forward with my shop. THANKS!!!!! PS If everything is live I will let you know the url, I am still in maintenance :-) Link to comment Share on other sites More sharing options...
prestaquest Posted April 10, 2014 Share Posted April 10, 2014 Prestaquest... you are WONDERFUL!!! I have my modules back and I can finally go forward with my shop. THANKS!!!!! PS If everything is live I will let you know the url, I am still in maintenance :-) Great! Link to comment Share on other sites More sharing options...
Recommended Posts