Call to undefined function rules_invoke_event() in views_send.module on line 833

Latest version of Rules module has no function rules_invoke_event. The new method to use custom rules events is to declare new class for it and then call it via code like: $event = new EventClassName($context); (From the Rules 8.x manual.)

Comments

Aleksey Pavlyuk created an issue. See original summary.

hansfn’s picture

Assigned: Unassigned » hansfn
Priority: Major » Normal
Issue summary: View changes

Thx a lot for the bug report. I haven't tested much with Rules lately (as you probably understand). Will fix shortly.

hansfn’s picture

Hi! I'm still working on this - there is progress, but nothing committed yet.

Anyway, to remove the fatal error comment out the rules_invoke_event calls in the files views_send.cron.inc and views_send.module. If you don't use the Rules integration, this is a sufficient fix.

  • hansfn committed eaef0d5 on 8.x-1.x
    Issue #2842725: Call to undefined function rules_invoke_event()
    
    This...
hansfn’s picture

Status: Active » Fixed

The calls to rules_invoke_event() has been removed and I set the status to fixed. Enabling the Rules module doesn't break the module anymore. However, the Rules integration isn't complete yet since it is unclear to me how to create the needed data type.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

millionacrenest’s picture

I'm using the dev version and getting the same error as the above.

hansfn’s picture

No, you can't be using the latest dev version - 8.x-1.0+5-dev - from 1st of March. Please check carefully which version you are using.