I have a Company form and a Student form - both CCK/Content Profile forms

On activating the Company form, I get the activate link and a confirmation.

On attempting to activate the Student form, I get the error " Events for node_type_form have already been activated." and I cannot
activate it all all.

I have ran cron and cleared caches - going to run update now.

Any ideas why it wouldn't let me activate a second form?

TIA!

CommentFileSizeAuthor
#9 student form.png53.21 KBcbear42
#6 activation events.png15.1 KBcbear42
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cbear42’s picture

Any one? Having form activation events available on only one form in an installation renders Rules not terribly useful!

TIA.

klausi’s picture

Status: Active » Postponed (maintainer needs more info)

Seems like this is the same form for both cases. Do you use a webform as content type?

cbear42’s picture

No, these are two separate CCK forms. One is a Student Profile form and the other a Company Profile form - both are used with Content Profile.

What is odd is that - until a week or so ago - it let me activate both forms and give them each a distinctive name. "Company Profile Form" - and "Student Profile Form". Both would show up under the Rule Forms Settings options. Now only the first one shows up - whichever that might be - and the second gives me the above message. It's not coming through as an error - just as an informational message.

I don't use webform at all in this installation.

Something I just thought of: Would sharing CCK fields between the two forms cause Rules to believe this is the same form - even though they are named differently and have several distinct fields? They do have a few in common.

Thanks for looking at this!

cbear42’s picture

Just to follow-up - I created a form that uses none of the other two fields. And I still get the "Events for node_type_form have already been activated." message...and, of course, the form doesn't show up in Rules for use.

Thanks in advance....

klausi’s picture

Status: Postponed (maintainer needs more info) » Fixed

"node_type_form" is the form ID when you edit any content type (story type, page type, profile type, ...). Why do you want to manipulate that form? If you want to customize a profile create/edit form you need to activate something like "profile_node_form".

cbear42’s picture

FileSize
15.1 KB

Unfortunately, there is no "profile_node_form" option to activate. I only get the option to activate node_type_form. I have gone back through my CCK-types and there simply isn't that option. Is there a way to manually activate form events on these forms?

These two particular nodes (Student and Company), btw, are profile forms - however, I have a "Project" cck form - that is NOT being used as a profile type - and I get the same "Events for node_type_form have already been activated."

The problem isn't one of customizing or editing these particular forms - the problem is that form activation isn't possible on them. Which makes them impossible to use with Rules.

Also, they WERE working - with multiple activations possible - only two weeks ago. I haven't changed the basic forms in that time. Only the form activation has stopped
working.

If there is a way to manually activate these forms - just point me in the right direction - and I'll gladly do it.

cbear42’s picture

Status: Fixed » Active
klausi’s picture

Category: bug » support

Again, you are on the student type form. You need to go to the actual profile form. Create content -> Student Profile, activate that form.

cbear42’s picture

FileSize
53.21 KB

Would love to...but, it's not an option. Please see attached screenshot. (And yes, form activation events are turned on..) You can see the URL and the resulting
form that appears.

This is from Content - Create Content - Student (the name of the form that has Content Profile activated).

There is no option for activating this form.

But, I am now getting this error sporadically. Perhaps this is part of the problem..

"warning: Invalid argument supplied for foreach() in /home/brain/public_html/includes/form.inc on line 1207."

I have searched on this error - but the resolutions seem to be all over the map - and none of them seem to apply to the Rules module specifically.

I do appreciate your assistance. Thank you.

klausi’s picture

Are you still logged in as rules admin on this page?

cbear42’s picture

Yes - I am. I am User 1.

Thank...!

cbear42’s picture

This is still a problem - I'm searching for a solution....why can't I activate more than one form at a time with form activation events? Would Workflow be better than Rules for this situation?

TIA.

klausi’s picture

Check that the "Enable event activation messages on forms" setting is true on the Rules forms settings page. Of course you can activate any number of forms at a time. So you should see an activation message on all forms on you Drupal site.

klausi’s picture

Component: Rules Engine » Forms Support
TR’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Drupal 6 end of life was 24 Feb 2016. Drupal 6 and Rules 6.x-1.x are no longer supported as of that date, and no bugs with those versions will be investigated or fixed.

Rules Form Support is a separate module in Drupal 7. If this issue is still a problem in the Drupal 7 or Drupal 8 version of Rules Form Support, please open a new issue in that module's queue, with complete details of how to reproduce the bug.