Jump to content

Statistic button in admin gives out errors


Recommended Posts

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

 

post-477592-0-63318100-1391242176_thumb.png

Link to comment
Share on other sites

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

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

×
×
  • Create New...