When choosing the condition or action to add via the drop down menu, the throbber appears but the form elements fail to load. This is effectively rendering the entire module useless as it is completely unconfigurable.

The Rules debug shows the following:

Type php
User admin
Location .../system/ajax
Referrer.../admin/config/workflow/rules/reaction/manage/rules_todo_redirect/add/2/condition
Message Notice: Undefined index: properties in RulesData::addSiteMetadata() (line 620 of .../sites/all/modules/contrib/rules/includes/rules.state.inc).
Severity notice

CommentFileSizeAuthor
rules.png38.25 KBjlongbottom

Comments

jlongbottom’s picture

Ok I just commented out the line throwing the error and it seems to work.

//$property_info['properties'] += $site_info['properties'];

EDIT: Ok it only work for some things. I am trying to create a node on user registration. I can choose the entity type of Node, but the AJAX fails to load any subsequent fields where I assume I can choose Node Type.

The request is returning the following JSON data, and the page flickers, but nothing changes.

[{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"adaptivetheme_admin","theme_token":"VGf3a9tjz_ho3CThGV0F9CsNL9VGfOTnBoFVb5YReM0","js":{"misc\/form.js":1}}},"merge":true},{"command":"insert","method":"prepend","selector":"head","data":"\u003Cscript src=\u0022http:\/\/winesecure7.oberian.ggprojects.com\/misc\/form.js?v=7.16\u0022\u003E\u003C\/script\u003E\n","settings":null},{"command":"insert","method":null,"selector":null,"data":"\u003Cdiv id=\u0022rules-form-wrapper\u0022\u003E\u003Cform action=\u0022\/admin\/config\/workflow\/rules\/reaction\/manage\/rules_reminder_creation\/add\/1\/action\u0022 method=\u0022post\u0022 id=\u0022rules-ui-add-element--2\u0022 accept-charset=\u0022UTF-8\u0022\u003E\u003Cdiv\u003E\u003Cfieldset class=\u0022form-wrapper\u0022 id=\u0022edit-parameter-type\u0022\u003E\u003Clegend\u003E\u003Cspan class=\u0022fieldset-legend\u0022\u003EEntity type\u003C\/span\u003E\u003C\/legend\u003E\u003Cdiv class=\u0022fieldset-wrapper\u0022\u003E\u003Cdiv class=\u0022fieldset-description\u0022\u003ESpecifies the type of the entity that should be created.\u003C\/div\u003E\u003Cdiv class=\u0022form-item form-type-select form-item-parameter-type-settings-type\u0022\u003E\n \u003Clabel for=\u0022edit-parameter-type-settings-type\u0022\u003EValue \u003Cspan class=\u0022form-required\u0022 title=\u0022This field is required.\u0022\u003E*\u003C\/span\u003E\u003C\/label\u003E\n \u003Cselect id=\u0022edit-parameter-type-settings-type\u0022 name=\u0022parameter[type][settings][type]\u0022 class=\u0022form-select required\u0022\u003E\u003Coption value=\u0022\u0022 selected=\u0022selected\u0022\u003E- Select -\u003C\/option\u003E\u003Coption value=\u0022comment\u0022\u003EComment\u003C\/option\u003E\u003Coption value=\u0022node\u0022\u003ENode\u003C\/option\u003E\u003Coption value=\u0022taxonomy_term\u0022\u003ETaxonomy term\u003C\/option\u003E\u003Coption value=\u0022taxonomy_vocabulary\u0022\u003ETaxonomy vocabulary\u003C\/option\u003E\u003Coption value=\u0022user\u0022\u003EUser\u003C\/option\u003E\u003C\/select\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\u003C\/fieldset\u003E\n\u003Cinput type=\u0022hidden\u0022 name=\u0022form_build_id\u0022 value=\u0022form-d4BkS4wbuHZsW0T59POZy1ZA7bqv_8ecyACC53KBwo4\u0022 \/\u003E\n\u003Cinput type=\u0022hidden\u0022 name=\u0022form_token\u0022 value=\u0022si3VJA530gCqoUyOMTn__bAHq4onJiN-FX7BQTe0GZc\u0022 \/\u003E\n\u003Cinput type=\u0022hidden\u0022 name=\u0022form_id\u0022 value=\u0022rules_ui_add_element\u0022 \/\u003E\n\u003Cinput type=\u0022submit\u0022 id=\u0022edit-reload\u0022 name=\u0022reload\u0022 value=\u0022Continue\u0022 class=\u0022form-submit\u0022 \/\u003E\u003C\/div\u003E\u003C\/form\u003E\u003C\/div\u003E","settings":null},{"command":"insert","method":"prepend","selector":null,"data":"","settings":null},{"command":"insert","method":"prepend","selector":"head","data":"\u003Clink type=\u0022text\/css\u0022 rel=\u0022stylesheet\u0022 href=\u0022http:\/\/fonts.googleapis.com\/css?family=Asap:700,700italic,italic,regular|Voltaire:regular\u0026amp;subset=latin-ext,latin\u0022 media=\u0022all\u0022 \/\u003E\n","settings":null}]

zxaos’s picture

As a temporary workaround, to this, I exported a working rule for creating basic pages from another Drupal site, and imported it to this one. Once the rule was saved, I could edit it to change the content type to the correct value.

Very strange.

jlongbottom’s picture

heh, thats exactly how I worked around it too

ibaal’s picture

I have the same problem, but only when I enable the uuid module...... (so maybe not a problem with rules?)

jlongbottom’s picture

Hmm I have UUID enabled as well. Unfortunately it is a requirement for the Course module, so I need it.

groovehunter’s picture

same for me on 2.3 , on fresh installation 7.22

groovehunter’s picture

Issue summary: View changes

typo

tr’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)

Duplicate of #1792524: code error which causes adding new condition to not do anything when user clicks on "Continue" green button - sounds like it's probably due to a bug in the UUID module which has since been fixed...