rbylart Posted December 11, 2014 Share Posted December 11, 2014 Hello, I really hope someone can help me here as I've been pulling what remains of my hair out all day on this issue. I have Prestashop 1.5.4.1 on a server running PHP 5.3.4 This error only started a few days ago and I have made no changes recently to the shopping cart or server. Using the One Page Checkout as a guest people fill in their details and then hit "Submit" (Changed from SAVE) so they can see available payment options. At that point an error appears that reads, TECHNICAL ERROR: unable to save account Details: Error thrown: [object Object] Text status: error This stops them in their tracks and they can't proceed or pay for their item. After further investigation I switched on DEV mode in the defines.inc.php and using the console to see more information about the error. =============================================== [PrestaShopException]Validation function not found. isPhoneNumberat line 930 in file classes/ObjectModel.php 924. 925. // Check field validator926. if (!empty($data['validate']))927. {928. if (!method_exists('Validate', $data['validate']))929. throw new PrestaShopException('Validation function not found. '.$data['validate']);930. 931. if (!empty($value) && !call_user_func(array('Validate', $data['validate']), $value))932. return 'Property '.get_class($this).'->'.$field.' is not valid';933. }934. ObjectModelCore->validateField - [line 833 - classes/ObjectModel.php] - [2 Arguments] ObjectModelCore->validateFields - [line 265 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->getFields - [line 465 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->add - [line 170 - classes/Address.php] - [2 Arguments] AddressCore->add - [line 552 - controllers/front/AuthController.php] - [0 Argument] AuthControllerCore->processSubmitAccount - [line 263 - controllers/front/AuthController.php] - [0 Argument] AuthControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 349 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 28 - index.php] - [0 Argument] ==================================================================== It looks like it's something to do with the validation of the phone number but the checkout does not require a phone number (BO Preferences > Phone number is OFF for registration) As mentioned this error just appeared right out of the blue. In the error log the first error appeared on the 10th Dec. [10-Dec-2014 22:53:50] PHP Fatal error: Call to undefined method Validate::isPhoneNumber() in /home/[domain]/public_html/classes/ObjectModel.php on line 987 If someone can please help me figuring out how to remove this error - I am at wits end and open to any suggestions. I am happy to supply the web address if that would help. Link to comment Share on other sites More sharing options...
tuk66 Posted December 11, 2014 Share Posted December 11, 2014 Make sure the /classes/Validate.php file is from PS 1.5.4.1 and is not corrupted. The isPhoneNumber method must be there. Link to comment Share on other sites More sharing options...
rbylart Posted December 11, 2014 Author Share Posted December 11, 2014 Thanks Heaps. That led me to find a solution. It was a corrupt validate.php file. Just replaced it with an original one and all OK. Much appreciate your quick response Link to comment Share on other sites More sharing options...
Recommended Posts