IBICO Posted March 19, 2011 Share Posted March 19, 2011 Fail to change location on product. If a product are located in Home and a subcategory and I try to remove them from either I get this error message and nothing are changed: Fatal error (StockMvt -> id_stock_mvt_reason = -1)I also tried to add a location for the product to another subcategory just for testing with same result.It seems there is some error with a sql location probably. Anyone else have this problem?I have the 1.4.0.17 version of prestashop.. Link to comment Share on other sites More sharing options...
Raggy786 Posted March 19, 2011 Share Posted March 19, 2011 i have this error too. Link to comment Share on other sites More sharing options...
Mogwan Posted March 19, 2011 Share Posted March 19, 2011 I am getting the error below when trying to attach an image to a productFatal error (StockMvt -> id_stock_mvt_reason = -1)please help!!! Link to comment Share on other sites More sharing options...
gameplay Posted March 20, 2011 Share Posted March 20, 2011 I have this error too - I am not able to go around it. Can somebody please help? Link to comment Share on other sites More sharing options...
pyrotech Posted March 20, 2011 Share Posted March 20, 2011 Ok guysnot got a full answer to permanently fix but in mean timeWhen editing or adding product on first page find stock change and drop down box, change to increase, dont change number just leave increase showing. Then click save or if adding image click imagesit will then let you do it without errorWorks for me but not permanent as a painAnyone got an idea how to alter value in database so that increase is default selection? Link to comment Share on other sites More sharing options...
IBICO Posted March 20, 2011 Author Share Posted March 20, 2011 Great.. For me Stock Movement: increase also helped. I got now update without any problems.Just hope someone find a permanent fix for this.. Link to comment Share on other sites More sharing options...
goos Posted March 20, 2011 Share Posted March 20, 2011 Same here when chaning price with 1.4.17 any hotfix for this? Link to comment Share on other sites More sharing options...
Monkey Posted March 20, 2011 Share Posted March 20, 2011 Same error here. Link to comment Share on other sites More sharing options...
goos Posted March 21, 2011 Share Posted March 21, 2011 I was able to get it to work by changing the default stock movement option, to another and then back to "order" Link to comment Share on other sites More sharing options...
IBICO Posted March 21, 2011 Author Share Posted March 21, 2011 I was able to get it to work by changing the default stock movement option, to another and then back to "order" What menu/tab/option and where is it located? Link to comment Share on other sites More sharing options...
goos Posted March 21, 2011 Share Posted March 21, 2011 I was able to get it to work by changing the default stock movement option, to another and then back to "order" What menu/tab/option and where is it located? BO -> catalog-> stock movement -> scroll down to the bottom Link to comment Share on other sites More sharing options...
IBICO Posted March 21, 2011 Author Share Posted March 21, 2011 I was able to get it to work by changing the default stock movement option, to another and then back to "order" What menu/tab/option and where is it located? BO -> catalog-> stock movement -> scroll down to the bottom uhm.. I don`t have a tab to choose under catalog that is called stock movement. Link to comment Share on other sites More sharing options...
goos Posted March 21, 2011 Share Posted March 21, 2011 Hmm weird I do, i have version 1.4.0.17 Link to comment Share on other sites More sharing options...
IBICO Posted March 21, 2011 Author Share Posted March 21, 2011 Hmm weird I do, i have version 1.4.0.17 Same like me then.. hmm.. I only had this error when i upgraded. Maybe that is some tabs :-(I wonder if I could get the Admin catalog from a working shop and copy it over my shop Link to comment Share on other sites More sharing options...
nuttis Posted March 23, 2011 Share Posted March 23, 2011 Hi everyoneIf you klick on Catalog and on Stcok Movements on the right you will come to this page.Go to the bottom and you see the Default Stock Movement reason: Choose wich one you want to have as default and klick Save.That took away the error message for me. Link to comment Share on other sites More sharing options...
IBICO Posted March 23, 2011 Author Share Posted March 23, 2011 wow.. I am actually missing a lot of tabs under Catalog.. What is the direct link in your browser when you choose that tab? Link to comment Share on other sites More sharing options...
Diemux Posted March 23, 2011 Share Posted March 23, 2011 Yep, that fix works here too. I have noticed a lot of bugs like this when upgrading from 1.3.x to 1.4.x. Many empty SQL default values. Link to comment Share on other sites More sharing options...
nuttis Posted March 24, 2011 Share Posted March 24, 2011 The direct link to my stock movements is : http://mydomain.com/administration/index.php?tab=AdminStockMvt&token=5756b66721fe87a8c7d56f6b2f5cfe6c Link to comment Share on other sites More sharing options...
nuttis Posted March 24, 2011 Share Posted March 24, 2011 Btw I think you are just missing Stock Movement. The tab to the left of it (Quick Edit) is not from 1.4. Its an extra module i found here on the forum before. Link to comment Share on other sites More sharing options...
IBICO Posted March 24, 2011 Author Share Posted March 24, 2011 The direct link to my stock movements is : http://mydomain.com/administration/index.php?tab=AdminStockMvt&token=5756b66721fe87a8c7d56f6b2f5cfe6c Tab cannot be found. :-(Maybe I am missing something in the sql? Link to comment Share on other sites More sharing options...
nuttis Posted March 25, 2011 Share Posted March 25, 2011 Have you tryed to reinstall 1.4? Link to comment Share on other sites More sharing options...
IBICO Posted March 25, 2011 Author Share Posted March 25, 2011 Have you tryed to reinstall 1.4? just try to upgrade one more time on top of the already upgraded? Link to comment Share on other sites More sharing options...
nuttis Posted March 26, 2011 Share Posted March 26, 2011 hm i dont think that would work. I would try to do the upgrade all over again. But i know thats a pain.Maybe someone else has an idea of what to do. Link to comment Share on other sites More sharing options...
johnmoore84 Posted March 26, 2011 Share Posted March 26, 2011 Hi works for me to but if you have combinations set up like I have on some products this fix doesnt work on these. You get the error message 'product must be in the default category' Anyone have a fix for this Link to comment Share on other sites More sharing options...
Asenar Posted March 27, 2011 Share Posted March 27, 2011 Hi, Can you please one of you post this in the bug tracker and then giving the url here ? This way we'll deal with it as soon as we can.Regards, Link to comment Share on other sites More sharing options...
BWT Posted March 31, 2011 Share Posted March 31, 2011 Changing the stock movement to increase instead of order also worked for adding images and editing other areas witch had some trouble doing. I also would like to point out I was using IE9 and that wass part of my problem because trying to use some of the functions didn't work in the browser. However I switched to firefox AND CHANGED stock movement to increase instead of order and everything works great now.Thanks for the tip! Link to comment Share on other sites More sharing options...
enock Posted November 2, 2011 Share Posted November 2, 2011 Hi, Please see below, my stock movement reasons do not appear: Link to comment Share on other sites More sharing options...
varinder Posted February 23, 2012 Share Posted February 23, 2012 Hi Guys, i also faced the same issue in updating the prestashop 1.3 to 1.4. Did lot of RND but didn't got the solutons. At last after spending lot of time i found one permanent solutions to the problem. First of all, the problem rises because there is no option called "Stock Movements" in Prestashop 1.3 and this is the new feature added to the Prestashop 1.4. So the when we add new product it checks for the value of "id_mvt_reason" in the Product class which returns -1 which in-return creates problem in adding new product. Solution: We don't have to make any modification anywhere in the Database; what we need to do is just go to "Tools.php" file inside classes folder and look for the getValue$key, $defaultValue = false) function in that. It would be on line no. 208 i guess not sure it depends upon the changes in the file. Just replace the following code in that function: return !is_string($ret)? $ret : stripslashes($ret); with if($key != 'id_mvt_reason') return !is_string($ret)? $ret : stripslashes($ret); else return 1; And just upload the file and check. Your problem goes away forever. Please Note: I'm not aware of the "Stock Movement" functionality; and those who knows please check that doesn't break their code. Cheers Guys!!! Varinder Singh Link to comment Share on other sites More sharing options...
varinder Posted February 23, 2012 Share Posted February 23, 2012 Hi Guys, i also faced the same issue in updating the prestashop 1.3 to 1.4. Did lot of RND but didn't got the solutons. At last after spending lot of time i found one permanent solutions to the problem. First of all, the problem rises because there is no option called "Stock Movements" in Prestashop 1.3 and this is the new feature added to the Prestashop 1.4. So the when we add new product it checks for the value of "id_mvt_reason" in the Product class which returns -1 which in-return creates problem in adding new product. Solution: We don't have to make any modification anywhere in the Database; what we need to do is just go to "Tools.php" file inside classes folder and look for the getValue$key, $defaultValue = false) function in that. It would be on line no. 208 i guess not sure it depends upon the changes in the file. Just replace the following code in that function: return !is_string($ret)? $ret : stripslashes($ret); with if($key != 'id_mvt_reason') return !is_string($ret)? $ret : stripslashes($ret); else return 1; And just upload the file and check. Your problem goes away forever. Please Note: I'm not aware of the "Stock Movement" functionality; and those who knows please check that doesn't break their code. Cheers Guys!!! Varinder Singh Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now