- Status changed to Fixed
almost 2 years ago 8:16pm 20 January 2023 Automatically closed - issue fixed for 2 weeks with no activity.
We are seeing the following PHP warning in watchdog:
Warning: foreach() argument must be of type array|object, null given in Drupal\webformnavigation\Plugin\WebformHandler\WebformNavigationHandler->alterForm() (line 120 of /modules/contrib/webformnavigation/src/Plugin/WebformHandler/WebformNavigationHandler.php)
Currently, we are seeing this on PHP 8.0 but also saw it on PHP 7.4.
I'm not entirely sure when it happens but I believe it is when users are either on a confirmation page or when there are not any pages in the form state.
Either get the pages from the Webform Entity or ensure the page array is not null before passing them into the forEach.
Fixed
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Automatically closed - issue fixed for 2 weeks with no activity.