Deprecated function: explode(): Passing null to parameter #2

Created on 12 March 2024, 8 months ago

Problem/Motivation

Saving the "Configure Pardot" settings, with nothing filled out for "pages" produces a php error:

Deprecated function: explode(): Passing null to parameter #2 ($string) of type string is deprecated in Drupal\Pardot\Form\PardotSettingsForm->validateForm() (line 239 of modules/contrib/pardot/src/Form/PardotSettingsForm.php).

Steps to reproduce

Drupal Version 10.1+
PHP Version 8.2
Visit "Configure Pardot" at /admin/config/services/pardot
Save page with no value for "Pages"

Proposed resolution

Check value of pages before "Validates path conditions to ensure they have leading forward slash."

Remaining tasks


review update
merge update

User interface changes

none

API changes

none

Data model changes

none

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States scott_earnest

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024