undefined function strptime()
- on 1.17 : Call to undefined function strptime() in \pathto\ClickTracking\SpecialClickTracking.php on line 564
undefined function getUserEditCountSince()
- I'm also getting this error but with function getUserEditCountSince(), in 1.18, after having upgraded the database.
- I found a hack to get past the error; in ApiClickTracking.php comment out this (by placing '//' at the start of each line):
// $granularity1 = $isLoggedIn ? // $this->getUserEditCountSince( $now - $wgClickTrackContribGranularity1 ) : 0; // $granularity2 = $isLoggedIn ? // $this->getUserEditCountSince( $now - $wgClickTrackContribGranularity2 ) : 0; // $granularity3 = $isLoggedIn ? // $this->getUserEditCountSince( $now - $wgClickTrackContribGranularity3 ) : 0;
Check out the source of this article to see the spacing.
Then, under it, place this:
$granularity1 = $granularity2 = $granularity3 = 0;
Note that using this probably breaks some features of the extension...
- Me too. I think getUserEditCountSince() is implemented by another extension, Extension:UserDailyContribs. The idea of this very hard-coded trio of measurements is to provide a sense of user "involvement" from edits over time. -- SPage (WMF) (talk) 03:34, 26 July 2012 (UTC)
Hey, where's the debate about this extension? I noticed that the cookie is not cleared after a user logs out. The same issue affects centralauth and mediawiki-core, so don't take it personally ;) But, I see no need to keep the cookie around if it's not gonna get used for anything legitimate.