[email protected] Posted February 1, 2014 Share Posted February 1, 2014 Hi Prestashop Gurus, I have problems within my admin account, in the statistic tab where in the past i could sort the statistic information based on "day", "month" and "Year", however now when I click those buttons, errors start appearing.. still no idea why.. Picture attached will briefly explain the situation. Anyone can help? Thanks in advance Ian Link to comment Share on other sites More sharing options...
NemoPS Posted February 1, 2014 Share Posted February 1, 2014 In classes, validate.php, check that you have this: public static function isName($name) { return preg_match(Tools::cleanNonUnicodeSupport('/^[^0-9!<>,;?=+()@#"°{}_$%:]*$/u'), stripslashes($name)); } Are you using any override? Modified files? Is this an upgraded store? Link to comment Share on other sites More sharing options...
[email protected] Posted February 1, 2014 Author Share Posted February 1, 2014 Hi Nemo1, I recently changed the validate.php to have the "public...isName($name)" modified to "...isNameWithDigits($name)" to allow for me to include numerical value into Name during registrations. The idea was to do so was suggested in the forum http://www.prestashop.com/forums/topic/269761-solved-with-style-include-numerical-characters-in-name-field-for-registration/?do=findComment&comment=1515063 by PascalVG. Will this be a problem and has to be changed back? Thanks Ian Link to comment Share on other sites More sharing options...
NemoPS Posted February 3, 2014 Share Posted February 3, 2014 You should not rename core functions, it would be better to extend them. Therefore, just add that function back in the class Link to comment Share on other sites More sharing options...
Recommended Posts