Validation function not found. isUrl4Smpl
at line 1054 in file classes/ObjectModel.php
1049. }
1050.
1051. // Check field validator
1052. if (!in_array('validate', $skip) && !empty($data['validate'])) {
1053. if (!method_exists('Validate', $data['validate'])) {
1054. throw new PrestaShopException('Validation function not found. '.$data['validate']);
1055. }
1056.
1057. if (!empty($value)) {
1058. $res = true;
1059. if (Tools::strtolower($data['validate']) == 'iscleanhtml') {
909.
910. if (is_array($this->update_fields) && empty($this->update_fields[$field]) && isset($this->def['fields'][$field]['shop']) && $this->def['fields'][$field]['shop']) {
911. continue;
912. }
913.
914. $message = $this->validateField($field, $this->$field);
915. if ($message !== true) {
916. if ($die) {
917. throw new PrestaShopException($message);
918. }
919. return $error_return ? $message : false;
Argument [0] old_request_path Argument [1] https://autoporteelotoise.fr/fr/sf370/1530-filtre-gazole-iseki-sf370-1415-102-011-00a-3570521342707.html
241. * @return array All object fields
242. * @throws PrestaShopException
243. */
244. public function getFields()
245. {
246. $this->validateFields();
247. $fields = $this->formatFields(self::FORMAT_COMMON);
248.
249. // For retro compatibility
250. if (Shop::isTableAssociated($this->def['table'])) {
251. $fields = array_merge($fields, $this->getFieldsShop());
647.
648. if (Shop::checkIdShopDefault($this->def['table']) && !$this->id_shop_default) {
649. $this->id_shop_default = (in_array(Configuration::get('PS_SHOP_DEFAULT'), $id_shop_list) == true) ? Configuration::get('PS_SHOP_DEFAULT') : min($id_shop_list);
650. }
651. // Database update
652. if (!$result = Db::getInstance()->update($this->def['table'], $this->getFields(), '`'.pSQL($this->def['primary']).'` = '.(int)$this->id, 0, $null_values)) {
653. return false;
654. }
655.
656. // Database insertion for multishop fields related to the object
657. if (Shop::isTableAssociated($this->def['table'])) {
81.
82. if (!SmplTools::isAbsoluteUrl($this->new_request_path)) {
83. $this->new_request_path = '/'.ltrim($this->new_request_path, '/');
84. }
85.
86. return parent::update($null_values);
87. }
88.
89. public static function getRedirectionTypes()
90. {
91. $tab_types = array(
Argument [0]
756. */
757. if ($arr_redirections = SmplTools::getMatchingRedirections($smpl_relative_uri, array($shop->id), null, false)) {
758. foreach ($arr_redirections as $row_redirection) {
759. if ($redirection = new SmplRedirection($row_redirection['id_redirection'])) {
760. ++$redirection->request_nb;
761. $redirection->update();
762. // Si la redirection est active on effectue cette dernière
763. if ($redirection->active && $redirection->new_request_path) {
764. $location = SmplTools::isAbsoluteUrl($redirection->new_request_path) ? $redirection->new_request_path : trim($shop->getBaseURL(true), '/').$redirection->new_request_path;
765.
766. /**
586. }
587. }
588.
589. // Immediately return the result if we do not log performances
590. if (!Module::$_log_modules_perfs) {
591. return $module->{$method}($params);
592. }
593.
594. // Store time and memory before and after hook call and save the result in the database
595. $time_start = microtime(true);
596. $memory_start = memory_get_usage(true);
Argument [0]
541. Tools::waitUntilFileIsModified($moduleInstance->push_filename, $moduleInstance->push_time_limit);
542. }
543.
544. // Call hook method
545. if ($hook_callable) {
546. $display = Hook::coreCallHook($moduleInstance, 'hook'.$hook_name, $hook_args);
547. } elseif ($hook_retro_callable) {
548. $display = Hook::coreCallHook($moduleInstance, 'hook'.$retro_hook_name, $hook_args);
549. }
550.
551. // Live edit
Argument [0] Argument [1] hookactionDispatcher Argument [2]
358. // Loading controller
359. $controller = Controller::getController($controller_class);
360.
361. // Execute hook dispatcher
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) {
Argument [0] actionDispatcher Argument [1]
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();