Issue using "Automator alt text" action with Field widget actions
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3555648. --> Reported by: [ultimike](https://www.drupal.org/user/51132) Related to !1012 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>When I try to add the "Automator alt text" or "Automator Image Filename Rewrite" action to an image field using Field Widget Actions, the action doesn't appear to be added and a "Sort the actions with drag and drop" message appears.</p> <p><img src="https://www.drupal.org/files/issues/2025-11-02/Screenshot%202025-11-02%20at%2011.04.09%E2%80%AFAM.png" alt="Screenshot of missing actions."></p> <h4 id="summary-steps-reproduce">Steps to reproduce (required for bugs, but not feature requests)</h4> <p>This is on a fresh Drupal 11.2.5 site with the 1.2.2 version of the AI module. The image field is the default image field that comes with the Media type's Image bundle (although I also tried it with the default "Image" field on the Article content type and had the exact same issue.)</p> <p>When I save the "Manage form display" page after trying to add the action, I get this in my report log (truncated):</p> <pre>Warning: foreach() argument must be of type array|object, null given in Drupal\field_widget_actions\Hook\FieldWidgetAction-&gt;fieldWidgetThirdPartySettingsForm() (line 165 of /var/www/html/web/modules/contrib/ai/modules/field_widget_actions/src/Hook/FieldWidgetAction.php)<br>#0 /var/www/html/web/core/includes/bootstrap.inc(104): _drupal_error_handler_real()<br>#1 /var/www/html/web/modules/contrib/ai/modules/field_widget_actions/src/Hook/FieldWidgetAction.php(165): _drupal_error_handler()<br>#2 /var/www/html/web/core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php(130): Drupal\field_widget_actions\Hook\FieldWidgetAction-&gt;fieldWidgetThirdPartySettingsForm()</pre> > Related issue: [Issue #3536116](https://www.drupal.org/node/3536116)
issue