Jump to content

How to fix error message in modules after upgrading to v. 1.6.0.9?


Recommended Posts

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 empty
at 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.

 

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

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

Here is all of the code:

 

[PrestaShopException]

Property Carrier->delay is empty
at 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.         // Retrocompatibility
    297.         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 object
    486.         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 cost
    1537. $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 it
    1230.                 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 List
    1340.         $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.             else
    181.                 $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 dispatcher
    368.             if (isset($params_hook_action_dispatcher))
    369.                 Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
    370.
    371.             // Running controller
    372.             $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

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 dispatcher
53. Dispatcher::getInstance()->dispatch();
Link to comment
Share on other sites

×
×
  • Create New...