Great module, Thanks! History graphs are correctly displayed, but on the daily tab only the selection box is shown. Regardless what I choose (and hit show) no graphs are generated! (I'm using Drupal 4.7 and latest cvs version of graphstat, 1.7).

CommentFileSizeAuthor
#4 graphstat.module.patch832 bytesprofix898
#1 graphstat_0.module11.34 KBDriesK

Comments

DriesK’s picture

StatusFileSize
new11.34 KB

can't reproduce, works well on several 4.7 test sites for me.

however, there have been changes to the forms api. I did a quick hack (file attached) just to see what happens. Can you replace it on your server and give it a try?

PS Are you using the official 4.7 distribution? Or some RC? Or a beta version? Or to put it differently: which version of form.inc are you using?

DriesK’s picture

and just to make sure (and starting with the most obvious): in administer->settings->statistics, 'enable access log' should be set to 'enabled'. Otherwise, the dropdown list shows every date from 01/01/1970 until today, which is obviously not the idea.

Now that I'm thinking of this, this can be considered as a bug. I'll fix it soon.

profix898’s picture

I'm using the release version of Drupal 4.7 (updated from RC2) and YES I have access log enabled :)
However the modified graphstat from above works great! Thanks.

profix898’s picture

StatusFileSize
new832 bytes

Its not your modification from above ... the module works fine with default (en) language. However switching to another language (german in my case) leads to the reported bug. The error is in line 102 (graphstat.module)
$form['submit'] = array('#type' => 'submit', '#value' => t('Show'));. Label 'Show' was not a t() string, but a few lines later if ($_POST['op'] == t('Show') ... it is! So switch to a language other than default/english and the two strings do not match and the _POST block is not executed. It can be that simple ... ;) Thanks again.

DriesK’s picture

Status: Active » Fixed

thanks for spotting that! Patch committed to HEAD and 4.7. Marking this as fixed, I'll open another issue for the date selector bug.

Anonymous’s picture

Status: Fixed » Closed (fixed)