Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /pods/components/Templates/Templates.php #7382

Open
oldrup opened this issue Dec 3, 2024 · 0 comments

Comments

@oldrup
Copy link

oldrup commented Dec 3, 2024

Description

Hey. Thank's for Pods 💖

Today, I tested upgrading from PHP 8.2 to PHP 8.3, and with WP_DEBUG enabled, I was given these two deprecation warnings on the front end:

Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/example.net/wp-content/plugins/pods/components/Templates/Templates.php on line 632

Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/example.net/wp-content/plugins/pods/components/Templates/Templates.php on line 742

I'm using the Pods Templating system with magic tags. Partly screenshot to illustrate a sample template:

Image

Is that something you can reproduce? Or should I try to gather more debug info.

Version

3.2.8.1

Testing Instructions

  1. enable WP_DEBUG
  2. Update to PHP 8.3.x
  3. Display CPT using Pods Template on front end.

Screenshots / Screencast

No response

Possible Workaround

Workarounds:

  • Downgrade to PHP 8.2
  • Disable WP_DEBUG

Site Health Information

on request, say the word

Pods Package

on request, say the word
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant