midana Posted October 30, 2014 Share Posted October 30, 2014 I'm removing some stock from the advanced stock management in back office. And I get this message on one of my products...First when I tried to remove the whole amount, so I tried by removing smaller amounts at a time. But there's still three left and I can't remove them without getting this page-message. :/ [PrestaShopException] Property Stock->physical_quantity is not valid at line 837 in file classes/ObjectModel.php 831. 832. $message = $this->validateField($field, $this->$field); 833. if ($message !== true) 834. { 835. if ($die) 836. throw new PrestaShopException($message); 837. return $error_return ? $message : false; 838. } 839. } 840. 841. return true; ObjectModelCore->validateFields - [line 255 - classes/ObjectModel.php] ObjectModelCore->getFields - [line 596 - classes/ObjectModel.php] ObjectModelCore->update - [line 101 - classes/stock/Stock.php] - [1 Arguments] StockCore->update - [line 276 - classes/stock/StockManager.php] StockManagerCore->removeProduct - [line 662 - controllers/admin/AdminStockManagementController.php] - [6 Arguments] AdminStockManagementControllerCore->postProcess - [line 171 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 54 - admin/index.php] Link to comment Share on other sites More sharing options...
salserin Posted April 28, 2015 Share Posted April 28, 2015 same problem !?You have found a solution? Link to comment Share on other sites More sharing options...
midana Posted May 22, 2015 Author Share Posted May 22, 2015 same problem !?You have found a solution? I'm not sure why it happens. But you can go to the database, open ps_stock_available, find the product by it's product-ID. Open and fix the quantity at the line called quantity. 1 Link to comment Share on other sites More sharing options...
salserin Posted August 3, 2016 Share Posted August 3, 2016 I found double id_stock FOR the same id_product I deleted, and solved Link to comment Share on other sites More sharing options...
Luciano Santana Posted April 21, 2017 Share Posted April 21, 2017 Just adding some more info. This was happening with me because the client changed the state of an order to "Shipped" more than once, creating a discrepancy in the stock. Link to comment Share on other sites More sharing options...
dandumit Posted November 25, 2020 Share Posted November 25, 2020 Hello, How did you fix this ? I have tried to call in this case : StockAvailable::synchronize($detail['product_id']); but does not fix the issue... Daniel 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