class Drupal\eca_render\Plugin\Action\GetActiveTheme does not have a method "alwaysFalse"
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3444445. --> Reported by: [pcate](https://www.drupal.org/user/3513833) Related to !422 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>When I add the "Get active theme" action to a any models (even a empty one), when I try and save I get the ajax error:</p> <pre>An AJAX HTTP error occurred.<br>HTTP Result Code: 500<br>Debugging information follows.<br>Path: /admin/config/workflow/eca/bpmn_io/save<br>StatusText: error<br>ResponseText: The website encountered an unexpected error. Try again later.TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, class Drupal\eca_render\Plugin\Action\GetActiveTheme does not have a method &amp;quot;alwaysFalse&amp;quot; in call_user_func() (line 276 of core/lib/Drupal/Core/Render/Element/MachineName.php). Drupal\Core\Render\Element\MachineName::validateMachineName(Array, Object, Array)<br>call_user_func_array(Array, Array) (Line: 282)<br>Drupal\Core\Form\FormValidator-&amp;gt;doValidateForm(Array, Object) (Line: 238)<br>Drupal\Core\Form\FormValidator-&amp;gt;doValidateForm(Array, Object) (Line: 238)<br>Drupal\Core\Form\FormValidator-&amp;gt;doValidateForm(Array, Object, &amp;#039;eca_runtime_plugin_form&amp;#039;) (Line: 118)<br>Drupal\Core\Form\FormValidator-&amp;gt;validateForm(&amp;#039;eca_runtime_plugin_form&amp;#039;, Array, Object) (Line: 593)<br>Drupal\Core\Form\FormBuilder-&amp;gt;processForm(&amp;#039;eca_runtime_plugin_form&amp;#039;, Array, Object) (Line: 325)<br>Drupal\Core\Form\FormBuilder-&amp;gt;buildForm(Object, Object) (Line: 555)<br>Drupal\eca\Entity\Eca-&amp;gt;validatePlugin(Object, Array, &amp;#039;action&amp;#039;, &amp;#039;eca_get_active_theme&amp;#039;, &amp;#039;&amp;#039;) (Line: 417)<br>Drupal\eca\Entity\Eca-&amp;gt;addAction(&amp;#039;Activity_0abdr4h&amp;#039;, &amp;#039;eca_get_active_theme&amp;#039;, &amp;#039;&amp;#039;, Array, Array) (Line: 520)<br>Drupal\eca_modeller_bpmn\ModellerBpmnBase-&amp;gt;readComponents(Object) (Line: 185)<br>Drupal\eca\Service\Modellers-&amp;gt;saveModel(Object) (Line: 159)</pre><p>After posting to ECA drupal slack:</p> <blockquote><p> jurgenhaas:<br> I haven't seen that before, but it seems unique to the GetActiveTheme action plugin which should extend the RenderActionBase, but doesn't. Please file a bug report for that. </p></blockquote> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <ol> <li>Create a new modal</li> <li>Add the "Get active theme" action to the modal.</li> <li>Save the model</li> <li>In the browser console the ajax error should be displaying</li> </ol> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Change plugin to extend the RenderActionBase</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>N/A</p> <h3 id="summary-ui-changes">User interface changes</h3> <p>N/A</p> <h3 id="summary-api-changes">API changes</h3> <p>N/A</p> <h3 id="summary-data-model-changes">Data model changes</h3> <p>N/A</p>
issue