ADULT-TOYS Posted February 3, 2013 Share Posted February 3, 2013 can anyone tell me why i am getting this when importing thanks: 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 426 - classes/ObjectModel.php] - [2 Arguments] ObjectModelCore->save - [line 1326 - controllers/admin/AdminImportController.php] - [0 Argument] AdminImportControllerCore->productImport - [line 2694 - controllers/admin/AdminImportController.php] - [0 Argument] AdminImportControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 50 - admin123/index.php] - [0 Argument] Link to comment Share on other sites More sharing options...
ADULT-TOYS Posted February 4, 2013 Author Share Posted February 4, 2013 I have done the repair that is showing in forums and still getting same error, this is all new to me (csv) someone else most of been here where i am and sorted it out, any1 please Link to comment Share on other sites More sharing options...
ADULT-TOYS Posted February 4, 2013 Author Share Posted February 4, 2013 am still getting this, (hmm) there is something i am missing and tried all of most of the fixes now, it is beginning to annoy me and wind me up, anyone please:- Property ProductSupplier->id_product 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 426 - classes/ObjectModel.php] - [2 Arguments] ObjectModelCore->save - [line 1329 - controllers/admin/AdminImportController.php] - [0 Argument] AdminImportControllerCore->productImport - [line 2697 - controllers/admin/AdminImportController.php] - [0 Argument] AdminImportControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 50 - admin123/index.php] - [0 Argument] Link to comment Share on other sites More sharing options...
djoveryde Posted February 19, 2013 Share Posted February 19, 2013 Getting exactly the same error. Please can someone advise on what to do as this is pretty frustrating. Link to comment Share on other sites More sharing options...
djoveryde Posted February 20, 2013 Share Posted February 20, 2013 So Far only thing I have done which has worked is to delete all the fields apart from the first 5, Don't add headers either as the system will think they are apart of the products. Link to comment Share on other sites More sharing options...
ADULT-TOYS Posted February 20, 2013 Author Share Posted February 20, 2013 Hi, sorry i have worked it out now, it was with my csv. file, it was not done correct, i downloaded the sample of csv that i want to upload and splits all fields in excel, and put them all in order of how it is shown in csv, look at this attachment images 1st, then look how i set it up in the 2nd attachment, then when you have done save as csv.file, when uploading in your office, you get a choice of how to split the pages, in image 3 i put a red box, if you change that from ; to this , and click this option:- Delete all products before import? When you get to next page you will see this: attachment 4, select the option for the choice you want, then finish and it should be all done, good luck and hope some of this helps 1 Link to comment Share on other sites More sharing options...
alicewang Posted March 7, 2013 Share Posted March 7, 2013 Same problem!! [PrestaShopException] Property ProductSupplier->id_product 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 426 - classes/ObjectModel.php] - [2 Arguments] ObjectModelCore->save - [line 1329 - controllers/admin/AdminImportController.php] - [0 Argument] AdminImportControllerCore->productImport - [line 2697 - controllers/admin/AdminImportController.php] - [0 Argument] AdminImportControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 50 - admin_login/index.php] - [0 Argument] Link to comment Share on other sites More sharing options...
MEG Venture Posted March 7, 2013 Share Posted March 7, 2013 @alice Can you attach your csv file here? Link to comment Share on other sites More sharing options...
pistolpete Posted April 16, 2013 Share Posted April 16, 2013 (edited) TO MEG I'd give you mine but, the system does not allow CSV files. shoot me an email at [email protected] Edited April 16, 2013 by pistolpete (see edit history) Link to comment Share on other sites More sharing options...
axetone Posted December 21, 2013 Share Posted December 21, 2013 Hey, did anyone solve this? I'm stuck on the same error. Thanks! Link to comment Share on other sites More sharing options...
BABY-INFORMATION Posted December 21, 2013 Share Posted December 21, 2013 my problem i found out was their was a problem with my csv file, i also found out that the description was to long. Link to comment Share on other sites More sharing options...
draigerai Posted January 1, 2014 Share Posted January 1, 2014 Followed your steps and did a Test, awesome it works (but i skipped delete all products and just skipped the lines which I knew were correct)Now to add the rest Hi, sorry i have worked it out now, it was with my csv. file, it was not done correct, i downloaded the sample of csv that i want to upload and splits all fields in excel, and put them all in order of how it is shown in csv,look at this attachment images 1st, then look how i set it up in the 2nd attachment,then when you have done save as csv.file,when uploading in your office, you get a choice of how to split the pages, in image 3 i put a red box, if you change that from ; to this , and click this option:- Delete all products before import?When you get to next page you will see this: attachment 4, select the option for the choice you want, then finish and it should be all done, good luck and hope some of this helps Link to comment Share on other sites More sharing options...
Recommended Posts