I tried to manually import workflow_ng-rules and got the above error. I grepped for that function, but it seems it just doesn't exist.

CommentFileSizeAuthor
#1 1115834-missing_function-2-D6.patch827 bytesMiles Ulrich

Comments

Miles Ulrich’s picture

Component: Rules Core » Rules Engine
Status: Active » Patch (to be ported)
StatusFileSize
new827 bytes

I just ran into the same problem -- looks like _rules_admin_rule_get_new_unique_name was removed in http://drupal.org/node/874802. I tried dropping the function back in rules/rules_admin.inc and the workflow_ng upgrade seemed to work fine. I guess not many people are upgrading from workflow_ng these days =)

guidot’s picture

Status: Patch (to be ported) » Reviewed & tested by the community

That workes for me. Patch applies cleanly to 6.x-1.4.

Thank you, Miles. BTW: Status to set would have been "needs review". Have a look at Status settings for an issue.

I don't know if this function was removed for another reason, still marking as RTBC.

Miles Ulrich’s picture

Ahh, thanks for the heads up on the status.

fago’s picture

Title: Upon import: "Call to undefined function _rules_admin_rule_get_new_unique_name() in rules.install on line 199" » Upon workflow-ng import: "Call to undefined function _rules_admin_rule_get_new_unique_name() in rules.install on line 199"
Version: 6.x-1.4 » 6.x-1.x-dev
Status: Reviewed & tested by the community » Needs work

>+ $id = variable_get('rules_counter', 0);
That logic is obsolete. We need to find a unique name, e.g. by taking it over from workflow-ng or just by coming up with something random.

mitchell’s picture

Status: Needs work » Closed (won't fix)

Importing workflow-ng to rules just seems old by now. Please reopen if you'd like to pick this back up.