Jump to content

Fatal error: Uncaught exception 'PrestaShopException'


Recommended Posts

at checkout in the final file validate.php

I get a blank page, and in the error log I see this:

 

 

Fatal error: Uncaught exception 'PrestaShopException' with message 'Property OrderDetail->product_upc is not valid' in

/web/htdocs/www.XXX.XXX/home/classes/ObjectModel.php:837 Stack trace: #0

 

/web/htdocs/www.XXX.XXX/home/classes/ObjectModel.php(264): ObjectModelCore->validateFields() #1

 

/web/htdocs/www.XXX.XXX/home/classes/ObjectModel.php(464): ObjectModelCore->getFields() #2

 

/web/htdocs/www.XXX.XXX/home/classes/ObjectModel.php(426): ObjectModelCore->add(true, false) #3

 

/web/htdocs/www.XXX.XXX/home/classes/order/OrderDetail.php(579): ObjectModelCore->save() #4

 

/web/htdocs/www.XXX.XXX/home/classes/order/OrderDetail.php(603): OrderDetailCore->create(Object(Order), Object(Cart), Array, '16', 0, true, 0) #5

 

/web/htdocs/www.XXX.XXX/home/classes/PaymentModule.php(283): OrderDetailCore->createList(Object(Order), Object(Cart), '16', Array, 0, true, 0) #6

 

/web/htdocs/www.XXX.XXX/home/modules/takeaway/validation.php(38): PaymentModuleCore->valid in

 

/web/htdocs/www.XXX.XXX/home/classes/ObjectModel.php on line 837

 

 

HELP....

Link to comment
Share on other sites

  • 7 months later...

I have modified upc_code filed for using size display and changed databse too, but getting following error at the checkout, any help how to stop validating this filed at the checkout?

 


Property OrderDetail->product_upc 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] - [0 Argument]
    ObjectModelCore->getFields - [line 455 - classes/ObjectModel.php] - [0 Argument]
    ObjectModelCore->add - [line 417 - classes/ObjectModel.php] - [2 Arguments]
    ObjectModelCore->save - [line 589 - classes/order/OrderDetail.php] - [0 Argument]
    OrderDetailCore->create - [line 613 - classes/order/OrderDetail.php] - [7 Arguments]
    OrderDetailCore->createList - [line 279 - classes/PaymentModule.php] - [7 Arguments]
    PaymentModuleCore->validateOrder - [line 64 - modules/cheque/controllers/front/validation.php] - [9 Arguments]
    ChequeValidationModuleFrontController->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument]
    ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument]
    DispatcherCore->dispatch - [line 28 - index.php] - [0 Argument]
Edited by nish (see edit history)
Link to comment
Share on other sites

  • 1 year later...

I have modified upc_code filed for using size display and changed databse too, but getting following error at the checkout, any help how to stop validating this filed at the checkout?

 


Property OrderDetail->product_upc 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] - [0 Argument]
    ObjectModelCore->getFields - [line 455 - classes/ObjectModel.php] - [0 Argument]
    ObjectModelCore->add - [line 417 - classes/ObjectModel.php] - [2 Arguments]
    ObjectModelCore->save - [line 589 - classes/order/OrderDetail.php] - [0 Argument]
    OrderDetailCore->create - [line 613 - classes/order/OrderDetail.php] - [7 Arguments]
    OrderDetailCore->createList - [line 279 - classes/PaymentModule.php] - [7 Arguments]
    PaymentModuleCore->validateOrder - [line 64 - modules/cheque/controllers/front/validation.php] - [9 Arguments]
    ChequeValidationModuleFrontController->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument]
    ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument]
    DispatcherCore->dispatch - [line 28 - index.php] - [0 Argument]

 

Hi Nish,

 

Did you find a solution to this?

I'm having the same problem but with price.

 

Thanks.

Link to comment
Share on other sites

×
×
  • Create New...