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.

  1. Create a custom installation profile and add the notificationswidget as a module.
  2. Run the drupal site install process
  3. 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

Command icon 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

arisen created an issue. See original summary.

arisen’s picture

Assigned: arisen » Unassigned
Status: Needs work » Needs review

Fixed the Issue with explode function syntax, the null coalescing operator was not applied properly.
Created MR. Please review

  • BramDriesen committed 1c02bc4f on 8.x-1.x authored by arisen
    Issue #3335237: TypeError: explode(): Argument #3 ($limit) must be of...
bramdriesen’s picture

Status: Needs review » Fixed

Oops, think I was sleeping this morning. Thanks!

  • BramDriesen committed 66c59576 on 2.0.x
    Issue #3335237 by arisen, BramDriesen: TypeError: explode(): Argument #3...

Status: Fixed » Closed (fixed)

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