Brænde1 Posted August 1, 2014 Share Posted August 1, 2014 Hi there, I just upgraded my Prestashop to version 1.6.0.9 from 1.5.x.x. Everything seems fine but when I go to Modules - Modules I get the error-message/code stated below (modules & themes Catalog is working fine): Does anyone know how to fix it? [PrestaShopException] Property Carrier->delay is emptyat line 887 in file classes/ObjectModel.php 881.882. $message = $this->validateField($field, $value, $id_lang);883. if ($message !== true)884. {885. if ($die)886. throw new PrestaShopException($message);887. return $error_return ? $message : false;888. }889. }890. }891. ObjectModelCore->validateFieldsLang - [line 301 - classes/ObjectModel.php] ObjectModelCore->getFieldsLang - [line 489 - classes/ObjectModel.php] ObjectModelCore->add - [line 191 - classes/Carrier.php] - [2 Arguments] CarrierCore->add - [line 995 - modules/socolissimo/socolissimo.php] Socolissimo::createSoColissimoCarrierSeller - [line 1538 - modules/socolissimo/socolissimo.php] - [1 Arguments] Socolissimo->runUpgrades - [line 85 - modules/socolissimo/socolissimo.php] - [1 Arguments] Socolissimo->__construct - [line 1234 - classes/module/Module.php] ModuleCore::getModulesOnDisk - [line 1341 - controllers/admin/AdminModulesController.php] - [3 Arguments] AdminModulesControllerCore->initContent - [line 180 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 54 - admin/index.php] And that's it - I am not a coder but I can use FTP and simple stuff like that.. Best regards - and thank you Christian Link to comment Share on other sites More sharing options...
bellini13 Posted August 1, 2014 Share Posted August 1, 2014 review your carrier configuration and each of your carriers and ensure that all the required information exists.. 1 Link to comment Share on other sites More sharing options...
Brænde1 Posted August 1, 2014 Author Share Posted August 1, 2014 Hi, Thank you for your time! I am new to Prestashop, so can you please explain what a "carrier" is? Is this a problem I will be able to solve rather easily?? Bet regards Link to comment Share on other sites More sharing options...
bellini13 Posted August 1, 2014 Share Posted August 1, 2014 you did say you upgraded for PS v1.5, so I'm not sure why carrier would be a new term for you? Go to your shipping > carrier menu in the back office, these are the carriers that are displayed to customers when they purchase something from your store. Link to comment Share on other sites More sharing options...
Brænde1 Posted August 1, 2014 Author Share Posted August 1, 2014 Sorry - I thougth "carrier" was some code term... Carriers looks like this - is that really making it impossible to enter the "modules" - "modules" part of the backend?? How do I insert a screenshot here? Link to comment Share on other sites More sharing options...
bellini13 Posted August 1, 2014 Share Posted August 1, 2014 the error you are getting is saying that one of your carriers does not have the field "delay" defined. so i suggest you go to each carrier, edit them and ensure the delay has a valid value, save it and try the modules page again. Link to comment Share on other sites More sharing options...
Brænde1 Posted August 1, 2014 Author Share Posted August 1, 2014 I have tried the above but I can't edit - when I am saving it's just making another ID. I have about 15 lines (carriers) without "name" and "delay", which I cant delete or edit. What can I do? Link to comment Share on other sites More sharing options...
Brænde1 Posted August 1, 2014 Author Share Posted August 1, 2014 Here is all of the code: [PrestaShopException]Property Carrier->delay is emptyat line 887 in file classes/ObjectModel.php 881.882. $message = $this->validateField($field, $value, $id_lang);883. if ($message !== true)884. {885. if ($die)886. throw new PrestaShopException($message);887. return $error_return ? $message : false;888. }889. }890. }891. ObjectModelCore->validateFieldsLang - [line 301 - classes/ObjectModel.php]295. {296. // Retrocompatibility297. if (method_exists($this, 'getTranslationsFieldsChild'))298. return $this->getTranslationsFieldsChild();299.300. $this->validateFieldsLang();301. $is_lang_multishop = $this->isLangMultishop();302.303. $fields = array();304. if ($this->id_lang === null)305. foreach (Language::getLanguages(false) as $language) ObjectModelCore->getFieldsLang - [line 489 - classes/ObjectModel.php]483. return false;484.485. // Database insertion for multilingual fields related to the object486. if (!empty($this->def['multilang']))487. {488. $fields = $this->getFieldsLang();489. if ($fields && is_array($fields))490. {491. $shops = Shop::getCompleteListOfShopsID();492. $asso = Shop::getAssoTable($this->def['table'].'_lang');493. foreach ($fields as $field) ObjectModelCore->add - [line 191 - classes/Carrier.php] - [2 Arguments]185.186. public function add($autodate = true, $null_values = false)187. {188. if ($this->position <= 0)189. $this->position = Carrier::getHigherPosition() + 1;190. if (!parent::add($autodate, $null_values) || !Validate::isLoadedObject($this))191. return false;192. if (!$count = Db::getInstance()->getValue('SELECT count(`id_carrier`) FROM `'._DB_PREFIX_.$this->def['table'].'` WHERE `deleted` = 0'))193. return false;194. if ($count == 1)195. Configuration::updateValue('PS_CARRIER_DEFAULT', (int)$this->id); CarrierCore->add - [line 995 - modules/socolissimo/socolissimo.php]989. $carrier->delay[$language['id_lang']] = $config['delay_seller'][$language['iso_code']];990. if ($language['iso_code'] == 'en')991. $carrier->delay[$language['id_lang']] = $config['delay_seller'][$language['iso_code']];992. }993.994. if ($carrier->add())995. {996. Configuration::updateValue('SOCOLISSIMO_CARRIER_ID_SELLER', (int)$carrier->id);997. $groups = Group::getgroups(true);998.999. foreach ($groups as $group) Socolissimo::createSoColissimoCarrierSeller - [line 1538 - modules/socolissimo/socolissimo.php] - [1 Arguments]1532. }1533. }1534. if (!Configuration::get('SOCOLISSIMO_CARRIER_ID_SELLER'))1535. {1536. //add carrier for seller cost1537. $this->createSoColissimoCarrierSeller($this->config);1538. Configuration::updateValue('SOCOLISSIMO_VERSION', $this->version);1539. }1540. Configuration::updateValue('SOCOLISSIMO_VERSION', $this->version);1541. }1542. Socolissimo->runUpgrades - [line 85 - modules/socolissimo/socolissimo.php] - [1 Arguments]79.80. /** Backward compatibility */81. require(_PS_MODULE_DIR_.$this->name.'/backward_compatibility/backward.php');82.83. if ((Configuration::get('SOCOLISSIMO_VERSION') != $this->version) && Configuration::get('SOCOLISSIMO_VERSION'))84. $this->runUpgrades(true);85. if (self::isInstalled($this->name))86. {87. $warning = array();88. $so_carrier = new Carrier(Configuration::get('SOCOLISSIMO_CARRIER_ID'));89. if (Validate::isLoadedObject($so_carrier)) Socolissimo->__construct - [line 1234 - classes/module/Module.php]1228.1229. // If class exists, we just instanciate it1230. if (class_exists($module, false))1231. {1232.1233. $tmp_module = new $module;1234.1235. $item = new stdClass();1236. $item->id = $tmp_module->id;1237. $item->warning = $tmp_module->warning;1238. $item->name = $tmp_module->name; ModuleCore::getModulesOnDisk - [line 1341 - controllers/admin/AdminModulesController.php] - [3 Arguments]1335. unset($v['favorite']);1336. $modules_preferences[$v['module']] = $v;1337. }1338.1339. // Retrieve Modules List1340. $modules = Module::getModulesOnDisk(true, $this->logged_on_addons, $this->id_employee);1341. $this->initModulesList($modules);1342. $this->nb_modules_total = count($modules);1343. $module_errors = array();1344. $module_success = array();1345. $upgrade_available = array(); AdminModulesControllerCore->initContent - [line 180 - classes/controller/Controller.php]174.175. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))176. $this->initHeader();177.178. if ($this->viewAccess())179. $this->initContent();180. else181. $this->errors[] = Tools::displayError('Access denied.');182.183. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className)))184. $this->initFooter(); ControllerCore->run - [line 373 - classes/Dispatcher.php]367. // Execute hook dispatcher368. if (isset($params_hook_action_dispatcher))369. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);370.371. // Running controller372. $controller->run();373. }374. catch (PrestaShopException $e)375. {376. $e->displayMessage();377. } DispatcherCore->dispatch - [line 54 - admin/index.php] Link to comment Share on other sites More sharing options...
Brænde1 Posted August 1, 2014 Author Share Posted August 1, 2014 And the last lines are: DispatcherCore->dispatch - [line 54 - admin/index.php] 48. $_POST['controller'] = strtolower($_POST['tab']);49. if (!isset($_REQUEST['controller']) && isset($_REQUEST['tab']))50. $_REQUEST['controller'] = strtolower($_REQUEST['tab']);51.52. // Prepare and trigger admin dispatcher53. Dispatcher::getInstance()->dispatch(); Link to comment Share on other sites More sharing options...
bellini13 Posted August 2, 2014 Share Posted August 2, 2014 i suppose you should disable the module SOCOLISSIMO Link to comment Share on other sites More sharing options...
Brænde1 Posted August 2, 2014 Author Share Posted August 2, 2014 But how do I disable the module SOCOLISSIMO if I cant enter the modules menu?? Link to comment Share on other sites More sharing options...
bellini13 Posted August 2, 2014 Share Posted August 2, 2014 delete the module folder? 2 Link to comment Share on other sites More sharing options...
Brænde1 Posted August 4, 2014 Author Share Posted August 4, 2014 It worked. Thank you for your time and patience, bellini13! Link to comment Share on other sites More sharing options...
Recommended Posts