I'm receiving this error:

Strict warning: Declaration of userpoints_ranking_handler_filter_last_period::init() should be compatible with views_handler_filter::init(&$view, &$options) in _registry_check_code() (line 3138 of /.../v02/includes/bootstrap.inc

That's all the info I have. I don't specifically recall, but this could have come up when updating to Drupal 7.24, not sure, or it was when I updated to the 2013-Oct dev release.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

deanflory’s picture

Issue summary: View changes
deanflory’s picture

This could have something to do with an update to PHP 5.4 which is supposedly more strict about things.

pimok3000’s picture

subscribing with PHP 5.5 and the latest dev

JohnLi’s picture

I'm receiving the similar error below. Any suggestion/advice please? Thank you.
Strict warning: Declaration of CourseObjectMoodleQuestionnaire::getReport() should be compatible with CourseObject::getReport($key) in _registry_check_code() (line 3146 of C:\xampp\htdocs\junhai\includes\bootstrap.inc).

deanflory’s picture

JohnLi, you need to create your separate issue in the Course / Moodle Questionnaire module's issue queue. This issue is for userpoints.

deanflory’s picture

So, anyone have any ideas on this? This issue has been in the queue for some time now.

deanflory’s picture

Status: Active » Needs work

Marking as "Needs work" to garner more attention to the issue.

deanflory’s picture

I'm still getting this after an update.php run.

deanflory’s picture

Keeping this issue alive.

deanflory’s picture

Not sure why this is being overlooked...a rather annoying error.

deanflory’s picture

Status: Needs work » Active
Sagar Ramgade’s picture

Status: Active » Needs review
FileSize
571 bytes

Please review this patch. It might solve your problem.

Status: Needs review » Needs work

The last submitted patch, 12: userpoints-strict_warning-2167883-12-D7.patch, failed testing.

deanflory’s picture

Sagar, any chance you can correct the failed patch so we have a chance to review?

Sagar Ramgade’s picture

Hi Dean, The above patch is failing due to some other functions like Userpoints update 7200. My patch is safe to apply and it wont add any additional trouble to the module. You may first try on your local environment to verify this.

deanflory’s picture

Thanks Sagar! I ended up using your patch over the "userpoints_views-fix-strict-warnings-2193507.patch" patch as it would no longer apply fully and they both seemed to have some similar parts. I'm going to leave the issue open as I don't know whether this patch actually fixes the issue or just hides the error notices. I'll leave that for more codeily-inclined folk to determine.