Problem/Motivation
When installing a site with install profile having dependency on notifications widget module we are the getting the following error
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /core/install.php?profile=ezdevportal&langcode=en&id=1&op=do_nojs&op=do
StatusText: OK
ResponseText: TypeError: explode(): Argument #3 ($limit) must be of type int, string given in explode() (line 92 of /var/www/html/modules/contrib/notificationswidget/notifications_widget.module).
Steps to reproduce
The development server should be running on php 8.1 or higher.
- Create a custom installation profile and add the notificationswidget as a module.
- Run the drupal site install process
- Observe the error the during the installation process
Proposed resolution
Apply the null coalescing operator for the explode functions using proper syntax
Remaining tasks
Validate the proposed fix.
User interface changes
None
API changes
None
Data model changes
Issue fork notificationswidget-3335237
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
arisenFixed the Issue with explode function syntax, the null coalescing operator was not applied properly.
Created MR. Please review
Comment #5
bramdriesenOops, think I was sleeping this morning. Thanks!