shase66 Posted August 15, 2013 Share Posted August 15, 2013 Hi guys. I have migrate my prestashop 1.5.4 website from localhost to online. what i've done is : - disable shop - change the URL's (disable friendly url) - backup my db - upload files online - import my db - change the settings.inc.php - verify the _shop-url table (all good) - verify the _employee table (all good) After all that i've tried to connect on my back-office and surprise : there is one error Invalid email adress. Lol? Any suggestions? (yes, my _COOKIE_KEY_ and all other keys are the same) Link to comment Share on other sites More sharing options...
shase66 Posted August 15, 2013 Author Share Posted August 15, 2013 i've also clear cache/smarty, still the same Link to comment Share on other sites More sharing options...
vekia Posted August 16, 2013 Share Posted August 16, 2013 you've got this error in the popup? or as a page body? can you check browser console log, is there any error related to the ajax query? Link to comment Share on other sites More sharing options...
shase66 Posted August 16, 2013 Author Share Posted August 16, 2013 (edited) the eror is in the body. there is no error in the console and the logs tab is empty. also the mysql version of the hosting : MySQL client version: 5.0.83 mysql version of xampp : Server version: 5.5.32 - MySQL Community Server (GPL) Edited August 16, 2013 by shase66 (see edit history) Link to comment Share on other sites More sharing options...
shase66 Posted August 16, 2013 Author Share Posted August 16, 2013 i have tryed to install a clean prestashop 1.5.4.1 on my server. another surprise : no matter what email/adress i choose, still not working Link to comment Share on other sites More sharing options...
vekia Posted August 16, 2013 Share Posted August 16, 2013 ohh images that you attached dont work for me Link to comment Share on other sites More sharing options...
shase66 Posted August 16, 2013 Author Share Posted August 16, 2013 (edited) the solution for the problem is this : The answer is to find the following function: public static function isEmail($email) { return !empty($email) && preg_match(Tools::cleanNonUnicodeSupport('/^[a-z\p{L}0-9!#$%&\'*+\/=?^`{}|~_-]+[.a-z\p{L}0-9!#$%&\'*+\/=?^`{}|~_-]*@[a-z\p{L}0-9]+[._a-z\p{L}0-9-]*\.[a-z0-9]+$/ui'), $email); } and remove every occurrence of the following term: \p{L} so it becomes: public static function isEmail($email) { return !empty($email) && preg_match(Tools::cleanNonUnicodeSupport('/^[a-z0-9!#$%&\'*+\/=?^`{}|~_-]+[.a-z0-9!#$%&\'*+\/=?^`{}|~_-]*@[a-z0-9]+[._a-z0-9-]*\.[a-z0-9]+$/ui'), $email); } Edited August 16, 2013 by shase66 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted August 16, 2013 Share Posted August 16, 2013 thanks for information that you solved it and of course for your solution, Pictures above still don't work, so i decided to remove them, ok? im going mark this topic as [sOLVED] best regards Link to comment Share on other sites More sharing options...
Recommended Posts