Hello,

I installed this modules: Views, Activity, and i have tis error:

Strict warning: Declaration of activity_comments_handler_field_comments::init() should be compatible with that of views_handler_field::init() in require_once() (regel 79 van /opt/lampp/htdocs/drupal/sites/all/modules/activity/activity_comments/views/activity_comments.views.inc).

Grtz, ctuxboy

Comments

dawehner’s picture

Project: Views (for Drupal 7) » Activity
Version: 7.x-3.x-dev » 7.x-1.x-dev

This is probably an issue of the activity module.

arale43’s picture

Hi!

I have the same problem. Cutboy, you solved the problem? thanks!!!

windsurfitaly’s picture

quote #2
Strict warning: Declaration of activity_comments_handler_field_comments::init() should be compatible with that of views_handler_field::init() in require_once()

chythar’s picture

Assigned: » Unassigned
Issue summary: View changes

Looks like the definition of the init() method in the View Handler Field changed. I was able to solve this by changing line 80 in activity_comments.views.inc from:

function init(&$view, $options) {

To:

function init(&$view, &$options) {

I haven't used Activity enough to tell you if this fix breaks anything else, but the error message is gone.

_shy’s picture

Status: Active » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.

Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.