I had changed the function name of my action from the all-lowercase action_mymodule_send_email to the easier-to-read (in my opinion) action_mymodule_sendEmail. I also updated the records in the actions table to match this.
Then, when editing an action in the UI and clicking 'Save', I got this message:
Fatal error: Function name must be a string in F:\sw\Apache Group\Apache\htdocs\drupal\sites\all\modules\actions\actions.module on line 234
I used the debugger to try to see what was going on, and I found my function-name in a data-structure (I forget now exactly where) and it had been converted to all lowercase, just before a call to a function which I think looked up the action from a list given a scrambled key.
Rather than investigating further, I switched my function name back to all-lowercase, and it worked fine again. (But I still consider this a bug-- I wasted quite a bit of time on this, and it could happen to anyone.)
(BTW, I found this bug 4 or 5 months, and had written the notes above about it then, but hadn't submitted them here-- so I can't be certain that it hasn't been addressed. But I did just do a quick search of the issues, and didn't find anything.)
This was on Drupal 5.2.
Comments
Comment #1
pomliane commentedThis version of Actions is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.
This issue has been automagically closed by a script.