class Drupal\eca_render\Plugin\Action\GetActiveTheme does not have a method "alwaysFalse"

Created on 30 April 2024, about 1 year ago
Updated 17 May 2024, about 1 year ago

Problem/Motivation

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:

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /admin/config/workflow/eca/bpmn_io/save
StatusText: error
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 "alwaysFalse" in call_user_func() (line 276 of core/lib/Drupal/Core/Render/Element/MachineName.php). Drupal\Core\Render\Element\MachineName::validateMachineName(Array, Object, Array)
call_user_func_array(Array, Array) (Line: 282)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object) (Line: 238)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object) (Line: 238)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object, 'eca_runtime_plugin_form') (Line: 118)
Drupal\Core\Form\FormValidator->validateForm('eca_runtime_plugin_form', Array, Object) (Line: 593)
Drupal\Core\Form\FormBuilder->processForm('eca_runtime_plugin_form', Array, Object) (Line: 325)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 555)
Drupal\eca\Entity\Eca->validatePlugin(Object, Array, 'action', 'eca_get_active_theme', '') (Line: 417)
Drupal\eca\Entity\Eca->addAction('Activity_0abdr4h', 'eca_get_active_theme', '', Array, Array) (Line: 520)
Drupal\eca_modeller_bpmn\ModellerBpmnBase->readComponents(Object) (Line: 185)
Drupal\eca\Service\Modellers->saveModel(Object) (Line: 159)

After posting to ECA drupal slack:

jurgenhaas:
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.

Steps to reproduce

  1. Create a new modal
  2. Add the "Get active theme" action to the modal.
  3. Save the model
  4. In the browser console the ajax error should be displaying

Proposed resolution

Change plugin to extend the RenderActionBase

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States pcate

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @pcate
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen
  • Status changed to Needs review about 1 year ago
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Please review the MR and if it's set to RTBC we can back port this to 1.1.x

  • Pipeline finished with Success
    about 1 year ago
    Total: 534s
    #160921
  • πŸ‡ΊπŸ‡ΈUnited States pcate

    @jurgenhaas the patch applied cleanly and resolved the issue.

  • Status changed to RTBC about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States pcate
  • Pipeline finished with Skipped
    about 1 year ago
    #163103
  • Pipeline finished with Skipped
    about 1 year ago
    #163104
  • Status changed to Fixed about 1 year ago
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Thanks for your feedback. Merged and rolled back to 1.1.x

  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Pipeline finished with Failed
    about 1 year ago
    Total: 340s
    #192953
  • Pipeline finished with Success
    about 1 year ago
    Total: 221s
    #192958
  • Pipeline finished with Success
    5 months ago
    Total: 725s
    #390630
  • Pipeline finished with Failed
    5 months ago
    Total: 1101s
    #391964
  • Pipeline finished with Skipped
    5 months ago
    #392538
  • Pipeline finished with Success
    5 months ago
    Total: 207s
    #402025
  • Pipeline finished with Success
    5 months ago
    Total: 859s
    #403583
  • Pipeline finished with Success
    5 months ago
    Total: 878s
    #403611
  • Pipeline finished with Success
    4 months ago
    Total: 840s
    #404676
  • Pipeline finished with Canceled
    4 months ago
    Total: 3601s
    #411165
  • Pipeline finished with Success
    4 months ago
    Total: 880s
    #413227
  • Pipeline finished with Success
    4 months ago
    Total: 1058s
    #413249
  • Pipeline finished with Success
    24 days ago
    Total: 4036s
    #497494
  • Pipeline finished with Success
    5 days ago
    Total: 1988s
    #513513
  • Pipeline finished with Canceled
    4 days ago
    Total: 69s
    #513636
  • Pipeline finished with Success
    4 days ago
    Total: 3090s
    #513637
Production build 0.71.5 2024