Barnie Posted January 12, 2010 Share Posted January 12, 2010 I no longer get through the statistics to see how many visitors there have been by a day, week or year from 01-01-2010. This forum HERE I have seen that by changing:line 36 of /admin/tabs/AdminStatsTab.php file with this line:if (($ month = Tools:: getValue ( 'date Input Month ", -1))! = -1 AND Validate:: isInt ($ month)) solves the problem.Unfortunately, this works for me either. anyone have ideas? I like to hear.Regards,Davidwww.erotiekcentrum.com Link to comment Share on other sites More sharing options...
ruilong Posted January 16, 2010 Share Posted January 16, 2010 this worked for meif ($month = (Tools::getValue('dateInputMonth', -1)+1) AND Validate::isUnsignedInt($month))problem seems to be that month value is blank from time to time.. don't know why it only affects 2010 but this solved it for me. Link to comment Share on other sites More sharing options...
thehandlestudio Posted January 16, 2010 Share Posted January 16, 2010 This piece of didn't work for me either....Regards,Mark Link to comment Share on other sites More sharing options...
diu1so Posted January 21, 2010 Share Posted January 21, 2010 Well, it's there a solutions that works? Link to comment Share on other sites More sharing options...
Barnie Posted January 22, 2010 Author Share Posted January 22, 2010 Still not working Posted the same problem HERE Link to comment Share on other sites More sharing options...
frecoo Posted January 24, 2010 Share Posted January 24, 2010 So come on people, is there really no solution for this year-2010-stats-problem? There seems to be a lot of prestashops outside having that problem, but no one seems to care? Link to comment Share on other sites More sharing options...
caleefe Posted January 26, 2010 Share Posted January 26, 2010 In ADMIN/TABS/AdminStatsTab :Try this for line 36:if (($month = Tools::getValue(‘dateInputMonth’, -1)) != -1 AND Validate::isInt($month))This is the first change I have found that actually WORKS!!!This was on another thread (in French) for the same problem. Link to comment Share on other sites More sharing options...
Barnie Posted January 26, 2010 Author Share Posted January 26, 2010 Thnx for te replay!I allready tried this one.This is what I tried on line 36 in Admin/Tabs/AdminStatsTab.php:1. if (($month = Tools::getValue(‘dateInputMonth’, -1)) != -1 AND Validate::isInt($month))2. if ($month = (Tools::getValue(‘dateInputMonth’, -1)+1) AND Validate::isUnsignedInt($month))3. if ($month = Tools::getValue('dateInputMonth', -1) AND Validate::isUnsignedInt($month))it is very annoying, I now can't see if my Advertising Campaing on the radio gives me more visitors.Strange is it when i logged on in my admin. The pageviews/registration/orders etc. etc. can be viewed.It's just the visitors in the stats viewed by a day. Month and Year works!Is there anyone who can help me, us and other people with this problem??? Link to comment Share on other sites More sharing options...
frecoo Posted January 26, 2010 Share Posted January 26, 2010 Now it works!!!if (($month = Tools::getValue('dateInputMonth', -1)) != -1 AND Validate::isInt($month))was the right way. You have only to make sure, that you get the straight apostrophs around "dateInputMonth" in your code. (This forum software changes them automaticly to wrong apostrophs.)thanks you all for the help! Link to comment Share on other sites More sharing options...
Barnie Posted January 27, 2010 Author Share Posted January 27, 2010 Thnx Frecoo!!SUPERRR!!if (($month = Tools::getValue(‘dateInputMonth’, -1)) != -1 AND Validate::isInt($month))Works for me now!!I had to place te straight apostrophs around “dateInputMonth” in my code. For me It's SOLVED Thnx Link to comment Share on other sites More sharing options...
zippoutlet Posted February 11, 2010 Share Posted February 11, 2010 Thnx Frecoo!!SUPERRR!!if (($month = Tools::getValue(‘dateInputMonth’, -1)) != -1 AND Validate::isInt($month))Works for me now!!I had to place te straight apostrophs around “dateInputMonth” in my code. For me It's SOLVED Thnx Hi Barnie!I have also the same problem here...but that code doesn't seems to do anything for me.. what u mean by straight apostrophs..? are day and year working too?Could u post your complete AdminStatsTab.php file here?I really want to bypass this problem..any help would be much appreciated.RgdsE.Silva Link to comment Share on other sites More sharing options...
Recommended Posts