These are the steps
Add new rule -> React on event (After saving a new content) ->Save -> Add condition (Content is of type)
and I get this error : - it happens with every (add) condition.
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /catalog/system/ajax
StatusText: parsererror
ResponseText: rules_ui_add_element[ {"command":"settings", "settings":{"basePath":"\u002Fcatalog\u002F", "pathPrefix":"", "ajaxPageState":{"theme":"Plasma", "theme_token":"2EmbwjORPW3a4DkPB1UZS21WnUgRtCcwhiq91mWhMJc", "css":{"misc\u002Fui\u002Fjquery.ui.core.css":1, "misc\u002Fui\u002Fjquery.ui.theme.css":1, "misc\u002Fui\u002Fjquery.ui.autocomplete.css":1, "misc\u002Fui\u002Fjquery.ui.button.css":1}, "js":{"https:\u002F\u002Fajax.googleapis.com\u002Fajax\u002Flibs\u002Fjqueryui\u002F1.8.11\u002Fjquery-ui.min.js":1, "misc\u002Fform.js":1, "sites\u002Fall\u002Fmodules\u002Frules\u002Fui\u002Frules.autocomplete.js":1, "misc\u002Ftableheader.js":1, "misc\u002Fcollapse.js":1}}, "rules_autocomplete":{"edit-parameter-node-settings-nodeselect":{"inputId":"edit-parameter-node-settings-nodeselect", "source":"http:\u002F\u002Flocalhost:1234\u002Fcatalog\u002Fadmin\u002Fconfig\u002Fworkflow\u002Frules\u002Freaction\u002Fmanage\u002Frules_aaa\u002Fautocomplete\u002Fnode\u002Fform-arzOBdhipD5XiaKM3c9gQalsfuSkpre5mECCfZtNHdo"}}, "ajax":{"edit-parameter-node-switch-button":{"callback":"rules_ui_form_ajax_reload_form", "wrapper":"rules-form-wrapper", "effect":"none", "speed":"fast", "event":"mousedown", "keypress":true, "prevent":"click", "url":"\u002Fcatalog\u002Fsystem\u002Fajax", "submit":{"_triggering_element_name":"param_node", "_triggering_element_value":"Switch to the direct input mode"}}}}, "merge":true}, {"command":"insert", "method":"prepend", "selector":"head", "data":"\u003Clink type=\u0022text\u002Fcss\u0022 rel=\u0022stylesheet\u0022 href=\u0022http:\u002F\u002Flocalhost:1234\u002Fcatalog\u002Fsites\u002Fdefault\u002Ffiles\u002Fcss\u002Fcss_63qGj2hgZdZb9z5gqXnuj1wwTQ3TDh5fRZePzxQvDKY.css\u0022 media=\u0022all\u0022 \u002F\u003E\u000A", "settings":null}, {"command":"insert", "method":"prepend", "selector":"head", "data":"\u003Cscript type=\u0022text\u002Fjavascript\u0022 src=\u0022https:\u002F\u002Fajax.googleapis.com\u002Fajax\u002Flibs\u002Fjqueryui\u002F1.8.11\u002Fjquery-ui.min.js\u0022\u003E\u003C\u002Fscript\u003E\u000A\u003Cscript type=\u0022text\u002Fjavascript\u0022 src=\u0022http:\u002F\u002Flocalhost:1234\u002Fcatalog\u002Fsites\u002Fdefault\u002Ffiles\u002Fjs\u002Fjs_KCd8rbJYUruV1tRJnh4um34UYvyhlrSVCPR1jNko2h8.js\u0022\u003E\u003C\u002Fscript\u003E\u000A\u003Cscript type=\u0022text\u002Fjavascript\u0022 src=\u0022http:\u002F\u002Flocalhost:1234\u002Fcatalog\u002Fsites\u002Fdefault\u002Ffiles\u002Fjs\u002Fjs_JlCwZLiOPVLdzOunjMGF5Dd4yuMYm_tQ7QEEhPe-fjI.js\u0022\u003E\u003C\u002Fscript\u003E\u000A", "settings":null}, {"command":"insert", "method":null, "selector":null, "data":"\u003Cdiv id=\u0022rules-form-wrapper\u0022\u003E\u003Cform action=\u0022\u002Fcatalog\u002Fadmin\u002Fconfig\u002Fworkflow\u002Frules\u002Freaction\u002Fmanage\u002Frules_aaa\u002Fadd\u002F2\u002Fcondition\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-node\u0022\u003E\u003Clegend\u003E\u003Cspan class=\u0022fieldset-legend\u0022\u003EContent\u003C\u002Fspan\u003E\u003C\u002Flegend\u003E\u003Cdiv class=\u0022fieldset-wrapper\u0022\u003E\u003Cdiv class=\u0022form-item form-type-rules-data-selection form-item-parameter-node-settings-node:select\u0022\u003E\u000A \u003Clabel for=\u0022edit-parameter-node-settings-nodeselect\u0022\u003EData selector \u003Cspan class=\u0022form-required\u0022 title=\u0022This field is required.\u0022\u003E*\u003C\u002Fspan\u003E\u003C\u002Flabel\u003E\u000A \u003Cdiv class=\u0022rules-autocomplete\u0022\u003E\u003Cinput type=\u0022text\u0022 id=\u0022edit-parameter-node-settings-nodeselect\u0022 name=\u0022parameter[node][settings][node:select]\u0022 value=\u0022node\u0022 size=\u002275\u0022 class=\u0022form-text rules-autocomplete required\u0022 \u002F\u003E\u003C\u002Fdiv\u003E\u000A\u003Cdiv class=\u0022description\u0022\u003EThe data selector helps you drill down into the data available to Rules. \u003Cem\u003ETo make entity fields appear in the data selector, you may have to use the condition \u0027entity has field\u0027 (or \u0027content is of type\u0027).\u003C\u002Fem\u003E More useful tips about data selection is available in \u003Ca href=\u0027http:\u002F\u002Fdrupal.org\u002Fnode\u002F1300042\u0027\u003Ethe online documentation\u003C\u002Fa\u003E.\u003C\u002Fdiv\u003E\u000A\u003C\u002Fdiv\u003E\u000A\u003Cp class=\u0022rules-settings-help\u0022\u003E\u003Cstrong\u003EData types:\u003C\u002Fstrong\u003E Select data of the type \u003Cem class=\u0022placeholder\u0022\u003ENode\u003C\u002Fem\u003E.\u003C\u002Fp\u003E\u003Cfieldset class=\u0022collapsible collapsed form-wrapper\u0022\u003E\u003Clegend\u003E\u003Cspan class=\u0022fieldset-legend\u0022\u003EData selectors\u003C\u002Fspan\u003E\u003C\u002Flegend\u003E\u003Cdiv class=\u0022fieldset-wrapper\u0022\u003E\u003Ctable class=\u0022sticky-enabled\u0022\u003E\u000A \u003Cthead\u003E\u003Ctr\u003E\u003Cth\u003ESelector\u003C\u002Fth\u003E\u003Cth\u003ELabel\u003C\u002Fth\u003E\u003Cth\u003EDescription\u003C\u002Fth\u003E \u003C\u002Ftr\u003E\u003C\u002Fthead\u003E\u000A\u003Ctbody\u003E\u000A \u003Ctr class=\u0022odd\u0022\u003E\u003Ctd\u003Esite:current-user:roles:\u003C\u002Ftd\u003E\u003Ctd\u003EUser roles\u003C\u002Ftd\u003E\u003Ctd\u003EThe roles of the user.\u003C\u002Ftd\u003E \u003C\u002Ftr\u003E\u000A \u003Ctr class=\u0022even\u0022\u003E\u003Ctd\u003Enode\u003C\u002Ftd\u003E\u003Ctd\u003ECreated content\u003C\u002Ftd\u003E\u003Ctd\u003E\u003C\u002Ftd\u003E \u003C\u002Ftr\u003E\u000A \u003Ctr class=\u0022odd\u0022\u003E\u003Ctd\u003Enode:author:roles:\u003C\u002Ftd\u003E\u003Ctd\u003EUser roles\u003C\u002Ftd\u003E\u003Ctd\u003EThe roles of the user.\u003C\u002Ftd\u003E \u003C\u002Ftr\u003E\u000A \u003Ctr class=\u0022even\u0022\u003E\u003Ctd\u003Enode:source\u003C\u002Ftd\u003E\u003Ctd\u003ETranslation source node\u003C\u002Ftd\u003E\u003Ctd\u003EThe original-language version of this node, if one exists.\u003C\u002Ftd\u003E \u003C\u002Ftr\u003E\u000A \u003Ctr class=\u0022odd\u0022\u003E\u003Ctd\u003Enode:source:author:\u003C\u002Ftd\u003E\u003Ctd\u003EAuthor\u003C\u002Ftd\u003E\u003Ctd\u003EThe author of the node.\u003C\u002Ftd\u003E \u003C\u002Ftr\u003E\u000A \u003Ctr class=\u0022even\u0022\u003E\u003Ctd\u003Enode:source:source\u003C\u002Ftd\u003E\u003Ctd\u003ETranslation source node\u003C\u002Ftd\u003E\u003Ctd\u003EThe original-language version of this node, if one exists.\u003C\u002Ftd\u003E \u003C\u002Ftr\u003E\u000A \u003Ctr class=\u0022odd\u0022\u003E\u003Ctd\u003Enode:source:source:\u003C\u002Ftd\u003E\u003Ctd\u003ETranslation source node\u003C\u002Ftd\u003E\u003Ctd\u003EThe original-language version of this node, if one exists.\u003C\u002Ftd\u003E \u003C\u002Ftr\u003E\u000A \u003Ctr class=\u0022even\u0022\u003E\u003Ctd\u003Enode:source:body:\u003C\u002Ftd\u003E\u003Ctd\u003EThe main body text\u003C\u002Ftd\u003E\u003Ctd\u003E\u003C\u002Ftd\u003E \u003C\u002Ftr\u003E\u000A\u003C\u002Ftbody\u003E\u000A\u003C\u002Ftable\u003E\u000A\u003C\u002Fdiv\u003E\u003C\u002Ffieldset\u003E\u000A\u003Cinput class=\u0022rules-switch-button form-submit\u0022 type=\u0022submit\u0022 id=\u0022edit-parameter-node-switch-button\u0022 name=\u0022param_node\u0022 value=\u0022Switch to the direct input mode\u0022 \u002F\u003E\u003C\u002Fdiv\u003E\u003C\u002Ffieldset\u003E\u000A\u003Cfieldset class=\u0022form-wrapper\u0022 id=\u0022edit-parameter-type\u0022\u003E\u003Clegend\u003E\u003Cspan class=\u0022fieldset-legend\u0022\u003EContent types\u003C\u002Fspan\u003E\u003C\u002Flegend\u003E\u003Cdiv class=\u0022fieldset-wrapper\u0022\u003E\u003Cdiv class=\u0022fieldset-description\u0022\u003EThe content type(s) to check for.\u003C\u002Fdiv\u003E\u003Cdiv class=\u0022form-item form-type-select form-item-parameter-type-settings-type\u0022\u003E\u000A \u003Clabel for=\u0022edit-parameter-type-settings-type\u0022\u003EValue \u003Cspan class=\u0022form-required\u0022 title=\u0022This field is required.\u0022\u003E*\u003C\u002Fspan\u003E\u003C\u002Flabel\u003E\u000A \u003Cselect multiple=\u0022multiple\u0022 name=\u0022parameter[type][settings][type][]\u0022 id=\u0022edit-parameter-type-settings-type\u0022 class=\u0022form-select required\u0022\u003E\u003Coption value=\u0022article\u0022\u003EArticle\u003C\u002Foption\u003E\u003Coption value=\u0022page\u0022\u003EBasic page\u003C\u002Foption\u003E\u003Coption value=\u0022book\u0022\u003EBook page\u003C\u002Foption\u003E\u003Coption value=\u0022company\u0022\u003ECompany\u003C\u002Foption\u003E\u003Coption value=\u0022person_name\u0022\u003EPerson\u003C\u002Foption\u003E\u003C\u002Fselect\u003E\u000A\u003C\u002Fdiv\u003E\u000A\u003C\u002Fdiv\u003E\u003C\u002Ffieldset\u003E\u000A\u003Cinput type=\u0022hidden\u0022 name=\u0022form_build_id\u0022 value=\u0022form-arzOBdhipD5XiaKM3c9gQalsfuSkpre5mECCfZtNHdo\u0022 \u002F\u003E\u000A\u003Cinput type=\u0022hidden\u0022 name=\u0022form_token\u0022 value=\u0022ODeRkDk7Iq035O3pDz4dgOJcN5qa1j6y3BLxnYR6_wg\u0022 \u002F\u003E\u000A\u003Cinput type=\u0022hidden\u0022 name=\u0022form_id\u0022 value=\u0022rules_ui_add_element\u0022 \u002F\u003E\u000A\u003Cdiv class=\u0022form-item form-type-checkbox form-item-negate\u0022\u003E\u000A \u003Cinput type=\u0022checkbox\u0022 id=\u0022edit-negate\u0022 name=\u0022negate\u0022 value=\u00221\u0022 class=\u0022form-checkbox\u0022 \u002F\u003E \u003Clabel class=\u0022option\u0022 for=\u0022edit-negate\u0022\u003ENegate \u003C\u002Flabel\u003E\u000A\u000A\u003Cdiv class=\u0022description\u0022\u003EIf checked, the condition result is negated such that it returns TRUE if it evaluates to FALSE.\u003C\u002Fdiv\u003E\u000A\u003C\u002Fdiv\u003E\u000A\u003Cinput type=\u0022submit\u0022 id=\u0022edit-submit--2\u0022 name=\u0022op\u0022 value=\u0022Save\u0022 class=\u
Comment | File | Size | Author |
---|---|---|---|
#2 | headers.txt | 4.94 KB | tamirkorem |
#2 | preview.txt | 5.5 KB | tamirkorem |
#2 | response.txt | 10.13 KB | tamirkorem |
Comments
Comment #1
lyricnz CreditAttribution: lyricnz commentedCannot reproduce - worked fine for me. The response text you included above is incomplete - suggest you use a capture tool (eg: Chrome Developer Tools) to collect the entire request+response, and include as .txt attachment here.
Comment #2
tamirkorem CreditAttribution: tamirkorem commentedAttached are three files taken from Chrome debug.
Comment #3
lyricnz CreditAttribution: lyricnz commentedI didn't have this error. Have you got anything non-core in your jquery? (jquery update, other jquery plugins, etc)
Comment #4
tamirkorem CreditAttribution: tamirkorem commentedYes, I do :
jQuery Update 7.x-2.2 (Updates jQuery to jQuery 1.5.2 and jQuery UI 1.8.11.)
Comment #5
lyricnz CreditAttribution: lyricnz commentedCannot reproduce, even with that version of jquery_update installed. Can you reproduce in a simpler environment? (no other modules installed, core theme, etc).
Comment #6
tamirkorem CreditAttribution: tamirkorem commentedIt works on another site that I have with another set of modules.
In the "problematic" site I have the following modules :
Core :
========
Block
Color
Contact
Content translation
Database logging
Field
Field SQL storage
Field UI
File
Help
Filter
Image
List
Locale
Menu
Node
Number
Options
Overlay
Path
PHP filter
RDF
Search
Shortcut
System
Taxonomy
Text
Toolbar
Trigger
Update manager
User
Other modules
========
Bulk Export
Chaos tools
Custom content panes
Custom rulesets
Page manager
Views content panes
Entity Reference
Inline Entity Form
Advanced help
Entity API
Entity tokens
Menu Block
MultiBlock
Pathauto
Term Reference Tree
Token
CDN
CSS Embedded Images
Entity cache
Google Analytics
Taxonomy menu
jQuery Update
Views
Views Tree
Views UI
Comment #7
lyricnz CreditAttribution: lyricnz commentedNo idea. Perhaps upload a file+db ZIP somewhere?
Comment #8
ivanovf_che CreditAttribution: ivanovf_che commentedI have the same problem. If you already solved it, could you help me?
Comment #9
betz CreditAttribution: betz commentedI got the same problem and this issue fixed your problem #1792524: code error which causes adding new condition to not do anything when user clicks on "Continue" green button
Comment #10
timaholt CreditAttribution: timaholt commentedAs an update, I've posted a patch for this over in the other thread: http://drupal.org/node/1792524
Comment #11
PatchRanger CreditAttribution: PatchRanger commentedI guess this one should help: #1452540: Rules doesn't load rules.inc files as expected.
Comment #12
TR CreditAttribution: TR commented