ling lang Posted December 15, 2014 Share Posted December 15, 2014 [PrestaShopException] Property Product->reference 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 264 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->getFields - [line 464 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->add - [line 477 - classes/Product.php] - [2 Arguments] ProductCore->add - [line 485 - controllers/admin/AdminProductsController.php] - [0 Argument] AdminProductsControllerCore->processDuplicate - [line 541 - classes/controller/AdminController.php] - [0 Argument] AdminControllerCore->postProcess - [line 1171 - controllers/admin/AdminProductsController.php] - [0 Argument] AdminProductsControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 50 - psadmin/index.php] - [0 Argument] Link to comment Share on other sites More sharing options...
tuk66 Posted December 16, 2014 Share Posted December 16, 2014 This code evaluates the reference. /** * Check for product reference validity * * @param string $reference Product reference to validate * @return boolean Validity is ok or not */ public static function isReference($reference) { return preg_match('/^[^<>;={}]*$/u', $reference); } Link to comment Share on other sites More sharing options...
Recommended Posts