You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a single item custom post page, using pods shortcode [pods field="fieldname"] produces a warning in debug mode:
Deprecated: preg_match_all(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/html/wp-content/plugins/pods/components/Templates/includes/functions-view_template.php on line 723
Version
3.0.10
Testing Instructions
I don't have a way to provide step-by-step instructions to repeat this error. I have a page for displaying items of a custom post type created with Pods and there's a Template for that Single Item: PostTypeName. Within the template, there are two paragraph fields that use shortcodes to pull fields from the DB: [pods field="fieldname1"] [pods field="fieldname2"] ...etc...
The information is displayed properly on the website, but with debug mode turned on the error messages appear. (Also note that in addition to the preg_match_all() deprecation message, there's also one for str_replace() on line 828 of functions-view_template.php, as shown in the screenshot.
Description
On a single item custom post page, using pods shortcode [pods field="fieldname"] produces a warning in debug mode:
Deprecated: preg_match_all(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/html/wp-content/plugins/pods/components/Templates/includes/functions-view_template.php on line 723
Version
3.0.10
Testing Instructions
I don't have a way to provide step-by-step instructions to repeat this error. I have a page for displaying items of a custom post type created with Pods and there's a Template for that Single Item: PostTypeName. Within the template, there are two paragraph fields that use shortcodes to pull fields from the DB:
[pods field="fieldname1"] [pods field="fieldname2"] ...etc...
The information is displayed properly on the website, but with debug mode turned on the error messages appear. (Also note that in addition to the preg_match_all() deprecation message, there's also one for str_replace() on line 828 of functions-view_template.php, as shown in the screenshot.
Screenshots / Screencast
Possible Workaround
No response
Site Health Information
Pods Package
No response
The text was updated successfully, but these errors were encountered: