Fix Deprecated function: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in pantheon_advanced_page_cache_file_update()

Created on 21 May 2024, 7 months ago
Updated 20 June 2024, 6 months ago

Problem/Motivation

In PHP 8.2

Deprecated function: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in pantheon_advanced_page_cache_file_update() (line 22 of /code/web/modules/contrib/pantheon_advanced_page_cache/pantheon_advanced_page_cache.module)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

N/A

API changes

N/A

Data model changes

N/A

📌 Task
Status

Needs review

Version

2.2

Component

Code

Created by

🇺🇸United States yesct

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

Comments & Activities

  • Issue created by @yesct
  • Status changed to Needs review 7 months ago
  • 🇮🇳India sarwan_verma

    Hi @YesCT,
    I have fixed this issue "Fix Deprecated function: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in pantheon_advanced_page_cache_file_update()" and also attached patch
    kindly review and verify .

  • 🇺🇸United States greg.1.anderson

    Being tracked internally as CMSP-722, which also covers PHP 8.3 compatibility.

Production build 0.71.5 2024