Title: PHP 8 debugging
Last modified: April 27, 2021

---

# PHP 8 debugging

 *  Resolved [Abigailm](https://wordpress.org/support/users/abigailm/)
 * (@abigailm)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-8-debugging/)
 * I have a site that heavily integrates multiple pods. I tested with PHP 8 and 
   for the most part everything ran fine, but it threw a fatal error on one particular
   page with an embedded Pods shortcode.
 * The basic error is:
 * `PHP Fatal error: Uncaught Error: Unknown named parameter $post_ID in .../pods/
   classes/Pods.php:1948`
 * There is then a stack trace of 24 lines. I was only seeing the error from the
   one page– so it does not seem to be a generalized problem with the Pods Plugin.
   I’m guessing some particular issue with the template that the query calls — that
   is, maybe the template is missing some bit of information needed to satisfy PHP
   8’s stricter coding requirements.
 * Any ideas of what to look for?

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [marcdegagnelob](https://wordpress.org/support/users/marcdegagnelob/)
 * (@marcdegagnelob)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-8-debugging/#post-14371933)
 * Hello,
 * Just tried to upgrade to PHP 8 on one site that is using Pods and got the exact
   same error.
    Can’t update! Reverted to 7.4.
 * Thanks!
 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-8-debugging/#post-14378571)
 * Hi [@marcdegagnelob](https://wordpress.org/support/users/marcdegagnelob/) and
   [@abigailm](https://wordpress.org/support/users/abigailm/)
 * Thanks for your report!~
    Fixed in this patch: [https://github.com/pods-framework/pods/pull/6013](https://github.com/pods-framework/pods/pull/6013)
 * Cheers, Jory
 *  [marcdegagnelob](https://wordpress.org/support/users/marcdegagnelob/)
 * (@marcdegagnelob)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-8-debugging/#post-14384981)
 * Hello Jory,
 * Thanks for the reply.
    Not 100% familiar with GitHub. Can I understand this fix
   is done, but waiting to be pushed up the main flow and will be available in a
   next update?
 * Thanks!
 *  [Bjarne Oldrup](https://wordpress.org/support/users/oldrup/)
 * (@oldrup)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-8-debugging/#post-14387037)
 * Watching… Eager to test Pods with PHP 8.
 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-8-debugging/#post-14391319)
 * Hi [@marcdegagnelob](https://wordpress.org/support/users/marcdegagnelob/)
 * > Can I understand this fix is done, but waiting to be pushed up the main flow
   > and will be available in a next update?
 * Correct, after testing and code review it will be merged into the next release.
   
   If you could help with testing this change it would definitely help! Changes 
   can be found here: [https://github.com/pods-framework/pods/pull/6013/files](https://github.com/pods-framework/pods/pull/6013/files)
 * Cheers, Jory
 *  [Bjarne Oldrup](https://wordpress.org/support/users/oldrup/)
 * (@oldrup)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-8-debugging/#post-14392813)
 * I have a site just waiting to test the update. But as [@marcdegagnelob](https://wordpress.org/support/users/marcdegagnelob/),
   I’m unsure which branch I should download. Main? 2.8.0b2? Is this the right place
   to look? [https://github.com/pods-framework/pods](https://github.com/pods-framework/pods)
 * Bjarne
 *  [marcdegagnelob](https://wordpress.org/support/users/marcdegagnelob/)
 * (@marcdegagnelob)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-8-debugging/#post-14393612)
 * Hello Jory,
 * Tested on PHP 7.4 and 8.0. Both working with the change.
    Since this was only
   a one liner on one class, I did the test with just hard coding the change in 
   the Pods.php class.
 * Thanks
 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-8-debugging/#post-14395889)
 * Hi [@marcdegagnelob](https://wordpress.org/support/users/marcdegagnelob/)
 * Hardcoding the change would be the easiest in this case indeed.
    Thanks for testing!
 * Cheers, Jory

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘PHP 8 debugging’ is closed to new replies.

 * ![](https://ps.w.org/pods/assets/icon.svg?rev=3286397)
 * [Pods - Custom Content Types and Fields](https://wordpress.org/plugins/pods/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pods/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pods/)
 * [Active Topics](https://wordpress.org/support/plugin/pods/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pods/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pods/reviews/)

## Tags

 * [php 8](https://wordpress.org/support/topic-tag/php-8/)

 * 8 replies
 * 4 participants
 * Last reply from: [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/php-8-debugging/#post-14395889)
 * Status: resolved