Answers.Body: <p>This error may occur, If you have added any formRule in a custom form in any of your extension(s) .</p>
  <p>For example:</p>
  <blockquote>
  <p>$this-&gt;addFormRule(array('CRM_Myextension_Form_Myform', 'myFormRule'));</p>
  </blockquote>
  <p>If you have any line(s) like above in your custom form then you need to change that as below:</p>
  <blockquote>
  <p>$this-&gt;addFormRule(array($this, 'formRule'));</p>
  </blockquote>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-02-08T11:42:46.317Z
Answers.LastActivityDate: 2024-02-08T11:42:46.317Z
Answers.UserDisplayName: damo-dev
Answers.Body: <p>@ichi that rule shouldn't be existing anymore because it was removed in 5.33 <a href="https://github.com/civicrm/civicrm-packages/commit/148eb5483caa1059d031f11aaf32b391bead1c66" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-packages/commit/148eb5483caa1059d031f11aaf32b391bead1c66</a> I would suggest applying that patch onto your system and that should fix the problem</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-01-08T06:49:24.567Z
Answers.Text: Thank you for your answer @seamus-lee. I tried to apply the patch, but then all the CiviCRm menu collapsed. I am not sure that it is related to the patch ; it might be another issue. So I downgraded CiviCRM to an earlier version w/ the backup. The site is in production so I have no choice for now.
Answers.UserDisplayName: Ichi
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-01-08T12:31:08.390Z
Answers.Text: Ah ah to reverse w/ a backup didn't work well. So I have to stick w/ CiviCRM 5.33.1 (just see an upgrade overnight).
  There is is still the issue.
Answers.UserDisplayName: Ichi
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-01-08T12:39:42.970Z
Answers.Text: This time (CiviCRM 5.33.1) the patch worked well and solved the problem.
  Tank you @seamus-lee, you saved my day !
Answers.UserDisplayName: Ichi
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-01-07T19:08:34.257Z
Answers.LastActivityDate: 2021-01-07T19:08:34.257Z
Answers.UserDisplayName: Seamus Lee
Body: <p>Right after the update to CiviCRM 5.33.0, many pages (as <em>civicrm/case/add</em> or <em>civicrm/mailing/browse/scheduled?</em>) throws the following error - <code>QuickForm Error: the rule does not exist as a registered rule</code>
  Is there a quick fix for this QuickForm ?</p>
  <p>There is some details in the logs w/ a xssString :</p>
  <pre><code>[debug] $backTrace = #0 /PATH/vendor/civicrm/civicrm-core/CRM/Core/Error.php(205): CRM_Core_Error::backtrace(&quot;backTrace&quot;, TRUE)
  
  #1 /PATH/vendor/pear/pear-core-minimal/src/PEAR.php(944): CRM_Core_Error::handle(Object(HTML_QuickForm_Error)) 
  #2 /PATH/vendor/civicrm/civicrm-core/packages/HTML/QuickForm.php(2107): PEAR_Error-&gt;__construct(&quot;the rule does not exist as a registered rule&quot;, -2, 16, (Array:2), &quot;Rule 'xssString' is not registered in HTML_QuickForm::addRule()&quot;)
  #3 /PATH/vendor/pear/pear-core-minimal/src/PEAR.php(575): HTML_QuickForm_Error-&gt;__construct(-2, 16, (Array:2), &quot;Rule 'xssString' is not registered in HTML_QuickForm::addRule()&quot;)
  #4 /PATH/vendor/pear/pear-core-minimal/src/PEAR.php(236): PEAR::_raiseError(NULL, NULL, -2, 16, (Array:2), &quot;Rule 'xssString' is not registered in HTML_QuickForm::addRule()&quot;, &quot;HTML_QuickForm_Error&quot;, TRUE)
  #5 /PATH/vendor/civicrm/civicrm-core/packages/HTML/QuickForm.php(1109): PEAR::__callStatic(&quot;raiseError&quot;, (Array:7))
  #6 /PATH/vendor/civicrm/civicrm-core/packages/HTML/QuickForm.php(689): HTML_QuickForm-&gt;addRule(&quot;title&quot;, &quot;Illegal characters in input (potential scripting attack)&quot;, &quot;xssString&quot;)
  </code></pre>
  <p>`</p>
  
Tags: <quickform><5.33.0>
Title: QuickForm Error w/ CiviCRM 5.33.0
ThreadText: # QuickForm Error w/ CiviCRM 5.33.0
  
  (Asked by: username_0 on 2021-01-07)
  
  Right after the update to CiviCRM 5.33.0, many pages (as civicrm/case/add or civicrm/mailing/browse/scheduled?) throws the following error - QuickForm Error: the rule does not exist as a registered rule
  Is there a quick fix for this QuickForm ?
  There is some details in the logs w/ a xssString :
  [debug] $backTrace = #0 /PATH/vendor/civicrm/civicrm-core/CRM/Core/Error.php(205): CRM_Core_Error::backtrace("backTrace", TRUE)
  
  #1 /PATH/vendor/pear/pear-core-minimal/src/PEAR.php(944): CRM_Core_Error::handle(Object(HTML_QuickForm_Error)) 
  #2 /PATH/vendor/civicrm/civicrm-core/packages/HTML/QuickForm.php(2107): PEAR_Error->__construct("the rule does not exist as a registered rule", -2, 16, (Array:2), "Rule 'xssString' is not registered in HTML_QuickForm::addRule()")
  #3 /PATH/vendor/pear/pear-core-minimal/src/PEAR.php(575): HTML_QuickForm_Error->__construct(-2, 16, (Array:2), "Rule 'xssString' is not registered in HTML_QuickForm::addRule()")
  #4 /PATH/vendor/pear/pear-core-minimal/src/PEAR.php(236): PEAR::_raiseError(NULL, NULL, -2, 16, (Array:2), "Rule 'xssString' is not registered in HTML_QuickForm::addRule()", "HTML_QuickForm_Error", TRUE)
  #5 /PATH/vendor/civicrm/civicrm-core/packages/HTML/QuickForm.php(1109): PEAR::__callStatic("raiseError", (Array:7))
  #6 /PATH/vendor/civicrm/civicrm-core/packages/HTML/QuickForm.php(689): HTML_QuickForm->addRule("title", "Illegal characters in input (potential scripting attack)", "xssString")
  
  `
  
  **Tags:** quickform, 5.33.0
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2021-01-07. Score: 3 | Accepted answer
  
  @ichi that rule shouldn't be existing anymore because it was removed in 5.33 <https://github.com/civicrm/civicrm-packages/commit/148eb5483caa1059d031f11aaf32b391bead1c66> I would suggest applying that patch onto your system and that should fix the problem
  
  > **Comments:**
  > **username_0**: Thank you for your answer @seamus-lee. I tried to apply the patch, but then all the CiviCRm menu collapsed. I am not sure that it is related to the patch ; it might be another issue. So I downgraded CiviCRM to an earlier version w/ the backup. The site is in production so I have no choice for now.  
  > **username_0**: Ah ah to reverse w/ a backup didn't work well. So I have to stick w/ CiviCRM 5.33.1 (just see an upgrade overnight). There is is still the issue.  
  > **username_0**: This time (CiviCRM 5.33.1) the patch worked well and solved the problem. Tank you @seamus-lee, you saved my day !  
  
  ---
  
  ### Answer by username_1 on 2024-02-08. Score: 0
  
  This error may occur, If you have added any formRule in a custom form in any of your extension(s) .
  
  For example:
  
  > $this->addFormRule(array('CRM\_Myextension\_Form\_Myform', 'myFormRule'));
  
  If you have any line(s) like above in your custom form then you need to change that as below:
  
  > $this->addFormRule(array($this, 'formRule'));
  
  
  ---
  
  