mod_fcgid: stderr: PHP Fatal error: Call to undefined function flag_get_types() in /var/www/.../sites/all/modules/activity_log/activity_log.module on line 392, referer: .../admin/build/modules

Comments

robertkein’s picture

Assigned: Unassigned » robertkein
Status: Active » Closed (works as designed)

My fault - module flags was not activated.

chrisg_2010’s picture

How do i activate module flags? I have this same error and I have no idea how to fix.

edit: misunderstood "Module flags" - fixed.

Thanks,
Chris

webchick’s picture

Assigned: robertkein » Unassigned
Status: Closed (works as designed) » Active

I hit this too...

It seems to me like this should be resolved, either by:

1) an explicit dependency on Flag module in activity_log.info
2) Wrapping this in a module_exists('flag') check like OG is below, or
3) by removing that hunk of code in activity_log_token_list() altogether, since the comment above it references removing it after #1202648: Add a token for flag link lands, which has since been committed.

webchick’s picture

Status: Active » Closed (fixed)

Went to make a patch for this, but in the latest code, it's doing #3.2. Marking back to fixed. Workaround is to use the -dev release for now. Filed #1921800: Roll a new Activity Log release? to see if I could entice the maintainers to make a new release so this doesn't bite anyone else. :)