Pete78 Posted August 21, 2014 Share Posted August 21, 2014 Hi, did anybody has the same problem or a solution? Version 1.5.6.2 Go to backend -> orders and say new order Find a customer add some products etc. For creating the order use the "Go on payment page to process payment" link button If you click on it, you are logged in as the chosen customer in the frontend and finish the order like a normal customer. If you do it again, a fatal error occurs. With debugging mode on this occurs: " [0] => Array ( [file] => /srv/www/domain.tld/classes/Customer.php [line] => 488 [function] => displayError [class] => ToolsCore [type] => :: [args] => Array ( ) ) [1] => Array ( [file] => /srv/www/domain.tld/classes/Customer.php [line] => 792 [function] => checkPassword [class] => CustomerCore [type] => :: [args] => Array ( [0] => 10** [1] => ***0HHG**************** ) ) If I clean cookies of the domain, relogin in the backend and do it again, it will start workin again for one time. Any idea how to fix this? Link to comment Share on other sites More sharing options...
El Patron Posted August 21, 2014 Share Posted August 21, 2014 best to include the 500/fatal error (underlying php error message), that info seems to be missing. Link to comment Share on other sites More sharing options...
Pete78 Posted August 21, 2014 Author Share Posted August 21, 2014 There wasn't any error, only the debug stuff from "displayError" method was displayed: if (defined('_PS_MODE_DEV_') && _PS_MODE_DEV_ && $string == 'Fatal error') return ('<pre>'.print_r(debug_backtrace(), true).'</pre>'); while I write this, I couldn't reproduce it again . Very strange, maybe it was some kind of cookie/ cache problem. The error was produced by public static function checkPassword($id_customer, $passwd) { if (!Validate::isUnsignedId($id_customer) || !Validate::isMd5($passwd)) die (Tools::displayError()); in the Customer.php class.. If it happens again, I try to provide more infos.... Link to comment Share on other sites More sharing options...
El Patron Posted August 21, 2014 Share Posted August 21, 2014 it's very possible affect of old cache/cookies, this happens when we develop our shops, of course it's a one off fix, i.e. we should not have to do this very often and certainly not for same sort of issue. you may also want to check your hosting php an apache error log for any other clues. Link to comment Share on other sites More sharing options...
Pete78 Posted August 21, 2014 Author Share Posted August 21, 2014 Well, I got it... it was due to an import: I migrated from OS Commerce and imported passwords.. with some tranformation, hashing....etc.. the isMD5 validation was just returning wrong for those migrated customers.... I mark it as resolved, thanks anyways Patron! Link to comment Share on other sites More sharing options...
El Patron Posted August 21, 2014 Share Posted August 21, 2014 Well, I got it... it was due to an import: I migrated from OS Commerce and imported passwords.. with some tranformation, hashing....etc.. the isMD5 validation was just returning wrong for those migrated customers.... I mark it as resolved, thanks anyways Patron! please drop and give us 50 Link to comment Share on other sites More sharing options...
Recommended Posts