Property Product->link_rewrite is empty
at line 954 in file classes/ObjectModel.php
949. }
950.
951. $message = $this->validateField($field, $value, $id_lang);
952. if ($message !== true) {
953. if ($die) {
954. throw new PrestaShopException($message);
955. }
956. return $error_return ? $message : false;
957. }
958. }
959. }
290. // Backward compatibility
291. if (method_exists($this, 'getTranslationsFieldsChild')) {
292. return $this->getTranslationsFieldsChild();
293. }
294.
295. $this->validateFieldsLang();
296. $is_lang_multishop = $this->isLangMultishop();
297.
298. $fields = array();
299. if ($this->id_lang === null) {
300. foreach (Language::getIDs(false) as $id_lang) {
683. }
684. }
685.
686. // Database update for multilingual fields related to the object
687. if (isset($this->def['multilang']) && $this->def['multilang']) {
688. $fields = $this->getFieldsLang();
689. if (is_array($fields)) {
690. foreach ($fields as $field) {
691. foreach (array_keys($field) as $key) {
692. if (!Validate::isTableOrIdentifier($key)) {
693. throw new PrestaShopException('key '.$key.' is not a valid table or identifier');
551. return true;
552. }
553.
554. public function update($null_values = false)
555. {
556. $return = parent::update($null_values);
557. $this->setGroupReduction();
558.
559. // Sync stock Reference, EAN13 and UPC
560. if (Configuration::get('PS_ADVANCED_STOCK_MANAGEMENT') && StockAvailable::dependsOnStock($this->id, Context::getContext()->shop->id)) {
561. Db::getInstance()->update('stock', array(
Argument [0]
50. $io_desc_short = $module->getFilterContent($page_name, $io_desc_short);
51. $product->description_short = $io_desc_short;
52. $flag = true;
53. }
54. if ($flag === true) {
55. $product->update();
56. }
57. }
58. }
59. }
44. * date: 2021-08-16 12:26:57
45. * version: 1.2.11
46. */
47. public function run()
48. {
49. $this->init();
50. if ($this->checkAccess())
51. {
52. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
53. $this->setMedia();
54. $this->postProcess();
362. if (isset($params_hook_action_dispatcher)) {
363. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
364. }
365.
366. // Running controller
367. $controller->run();
368. } catch (PrestaShopException $e) {
369. $e->displayMessage();
370. }
371. }
372.
23. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
24. * International Registered Trademark & Property of PrestaShop SA
25. */
26.
27. require(dirname(__FILE__).'/config/config.inc.php');
28. Dispatcher::getInstance()->dispatch();