Hello and thank you for a great module!

I get a WSOD and the following error:
Fatal error: Call to undefined function commerce_coupon_type_access() in /DOCROOT/sites/all/modules/entity/entity.module on line 553

Trying to explain how I got it:
- I have a very simple rule component with only an action: "Save entity" which has a Commerce Product as a parameter
- I have a view of commerce products, with VBO and the rule component above as an active bulk operation
- As soon as I enable the rule component as a bulk operation I get a javascript/ajax error popup, and when saving the view and accessing the view page I get the WSOD

Upon inspecting the code, i see the following in line 58 of commerce_coupon.module:
'access callback' => 'commerce_coupon_type_access',
but I can not see that callback function defined anywhere - is this what causes the issue?

Comments

pcambra’s picture

Status: Active » Fixed

You're right, the function was removed by mistake, thanks for reporting

Fixed in the latest -dev (it takes 12h to refresh that one).

kirie’s picture

Thanks - WSOD gone :)

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Thanks for this tip. Can we get the latest dev as a stable branch? It kinda sucks that the stable branch breaks the rules pages.

muschpusch’s picture

+ 1 for a new beta since everybody will visit this issue...

joelpittet’s picture

Issue summary: View changes

Same as #4 and #5

tomrog’s picture

Thanks for the information. I've bumped into that (I'm using latest beta - 7.x-1.0-beta7) and I was stunned to see that removed function breaks VBO in Views. What was strange for me is that my Views wasn't connected to Commerce at all :D

roflcopterDorrie’s picture

For anyone interested, here is a patch that puts the function back in for 7.x-1.0-beta7

wesleymusgrove’s picture

Has this been fixed in 7.x-2.0 or does it no longer apply to the 2.x branch?