Petter Enge Posted February 23, 2021 Share Posted February 23, 2021 I am running Prestashop 1.7.7.1 in multishop mode. I have 3 shops installed. 2 of them are working perfectly but one gives an error on frontpage. Back office is okay. All 3 webshops has SSL installed. I have copied the error I get when troubleshooting is activated. Can someone help me how to fix this ? The shop is www.hanoghenne.no and it worked before but now suddently it is not working. I a trying to think back if there is something I have done lately that can have caused this but I have not found any reason. I have been working on one of the other shops for a while though. Can one of the installed module cause this ? Even if it was installed on another shop ? Thanks Petter [PrestaShopException] Valideringsfunksjon ble ikke funnet. isUrl4Smpl. at line 1177 in file classes/ObjectModel.php 1172. } 1173. 1174. // Check field validator 1175. if (!in_array('validate', $skip) && !empty($data['validate'])) { 1176. if (!method_exists('Validate', $data['validate'])) { 1177. throw new PrestaShopException($this->trans('Validation function not found: %s.', [$data['validate']], 'Admin.Notifications.Error')); 1178. } 1179. 1180. if (!empty($value)) { 1181. $res = true; 1182. if (Tools::strtolower($data['validate']) == 'iscleanhtml') { ObjectModelCore->validateField - [line 1024 - classes/ObjectModel.php] - [2 Arguments] ObjectModelCore->validateFields - [line 292 - classes/ObjectModel.php] ObjectModelCore->getFields - [line 737 - classes/ObjectModel.php] ObjectModelCore->update - [line 92 - modules/smplredirectionsmanager/classes/SmplRedirection.php] - [1 Arguments] SmplRedirection->update - [line 874 - modules/smplredirectionsmanager/smplredirectionsmanager.php] SmplRedirectionsManager->hookActionDispatcher - [line 990 - classes/Hook.php] - [1 Arguments] HookCore::coreCallHook - [line 414 - classes/Hook.php] - [3 Arguments] HookCore::callHookOn - [line 927 - classes/Hook.php] - [3 Arguments] HookCore::exec - [line 514 - classes/Dispatcher.php] - [2 Arguments] DispatcherCore->dispatch - [line 28 - index.php] Link to comment Share on other sites More sharing options...
wzzly Posted April 1, 2021 Share Posted April 1, 2021 did you find a solution? Have the same problem after updating to 1.7.7.3 validation function not found isMpn .... ? Link to comment Share on other sites More sharing options...
Prestachamps Posted April 1, 2021 Share Posted April 1, 2021 Hi @Petter Enge , have you contacted the smplredirectionsmanager module developer, as this seems to be the exception of the module. Usually this is being caused if the module is not checking if it's active or not in your third shop(where is not active), but still is calling it's functions/override. @wzzly , have you tried to clear the cache, as the isMpn function should be inside the validation class of PS 1.7.7.3 Aalso you can try to temporarily disable the overrides, or disable debug mode for verification You should send here the full exception with the debug mode turned on, so we can have more information about the exception Kind regards, Leo Link to comment Share on other sites More sharing options...
wzzly Posted April 8, 2021 Share Posted April 8, 2021 @Prestachamps I tried and it kind of worked. I now have the problem that I can't edit any product... I get the following (related?) error... Notice: Undefined property: Product::$mpn Symfony\Component\Debug\Exception\ContextErrorException in src/PrestaShopBundle/Model/Product/AdminModelAdapter.php (line 656) Link to comment Share on other sites More sharing options...
Prestachamps Posted April 9, 2021 Share Posted April 9, 2021 Hi @wzzly, since it's a notice and not an error/exception, is it working if you disable the debug mode? Else maybe you should check with the disable overrides option switched to yes. Kind regards, Leo Link to comment Share on other sites More sharing options...
SmartPlugs Posted January 13, 2022 Share Posted January 13, 2022 (edited) Hi guys, As Prestachamps mentionned, if you get the "Validation function not found isUrl4Smpl" you should check first the disable overrides option switched (adances parameters > performances). Your shop might still be in a debug mode and you should try with this option set to "no". Then (if still not working) : On PS 1.7 you should try to empty cache using the button in advanced parameters > performances. Then : You should check if the override/classes/Validate.php file still exists and if it includes the isUrl4Smpl() function. In any case i would recommand you to contact me using the addons page instyead of posting on the forum. I always reply to addons messages. Thanks, Yann Edited January 20, 2022 by SmartPlugs (see edit history) Link to comment Share on other sites More sharing options...
tasoschatzi Posted January 17, 2022 Share Posted January 17, 2022 hi i have similar problem. when the payment has competed (all forms of payments) it gives me (in greek)page error 500 . if i do it in english everything is ok! any help?im new here! Link to comment Share on other sites More sharing options...
JBW Posted January 19, 2022 Share Posted January 19, 2022 Please activate debug mode to see the error details Link to comment Share on other sites More sharing options...
tasoschatzi Posted January 20, 2022 Share Posted January 20, 2022 I appreciate if you could help me... Link to comment Share on other sites More sharing options...
SmartPlugs Posted January 20, 2022 Share Posted January 20, 2022 Hi, Is your error related to a "Validation function not found isUrl4Smpl" message ? Yann Link to comment Share on other sites More sharing options...
JBW Posted January 20, 2022 Share Posted January 20, 2022 There are no errors in your report, nothing to worry Link to comment Share on other sites More sharing options...
tasoschatzi Posted January 20, 2022 Share Posted January 20, 2022 5 minutes ago, SmartPlugs said: Hi, Is your error related to a "Validation function not found isUrl4Smpl" message ? Yann 8 minutes ago, SmartPlugs said: Hi, Is your error related to a "Validation function not found isUrl4Smpl" message ? Yann Hi! Can you give me a path to find if i have this type of message? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now