Jump to content

Property Stock->physical_quantity is not valid


Recommended Posts

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

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

 

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. :) 

  • Thanks 1
Link to comment
Share on other sites

  • 1 year later...
  • 8 months later...
  • 3 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...