Support » Plugin: Pods - Custom Content Types and Fields » Fun with PHP 7.2 (Debugging Warning Message)

  • Resolved Abigailm

    (@abigailm)



    As we all know, the people over at PHP really seem to enjoy changing things up enough with each new version so as to keep all the coders busy. (I mean, just because your code worked before is no reason for it to continue to work, right?)

    So I have a wonderful site that has Pods integrated to manage all sorts of different types of information and data. And to make all of the different data types easy to find, I use the Relevanssi plugin-which works beautifully to allow me to control what is searchable… and what is not. And of course everything works smoothly.

    Except for one thing: PHP 7.2 throws off this warning in the error log:

    PHP Warning: count(): Parameter must be an array or an object that implements Countable in /.../wp-includes/post-template.php on line 284

    But not all the time. I’ve figured out that the error is generated for SOME site searches, but not all. The error can be replicated by running the same search again.

    So here is what I think is going on:

    I think that there is a the_content filter hook that gets triggered during the process of rendering search results from some pod templates, but not others — that in turn probably has something to do with the individual settings for the pod templates. Since I have many different pods, I also have many different pod settings and many different pod templates in use.

    Any ideas? If I can’t fix this I’ll just revert to PHP 7.1 for now… but I’d love to get to the bottom of this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jim True

    (@jimtrue)

    @abigailm I really appreciate all the hard work you put into researching this one, but as this is a bug, we’d need you to follow our bug reporting procedures by opening a ticket over at GitHub: https://github.com/pods-framework/pods/issues/new

    We’re better able to track these items to resolution there and there are much better notifications than the forums.

    Thanks!

    Abigailm

    (@abigailm)

    OK –I’ll do that — however, I don’t really know if it is a bug or simply something that is tied to my specific configuration. The wonderful thing about Pods is that it is infinitely customizeable — but that also means there are infinite numbers of ways that we users can manage to introduce new issues. But I will add a note to github as at least something to look into or consider with coding.

    Plugin Author Jim True

    (@jimtrue)

    Since you opened the bug report at: https://github.com/pods-framework/pods/issues/4957

    We’ll let all conversation continue in that space. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.