Tagged: 

Viewing 7 reply threads
  • Author
    Posts
    • #7654
      bubdev
      Member

      Hi,

      with PHP 7.1 I get the following error message on most (not all) top level plugin settings pages:

      ‘Warning: A non-numeric value encountered in […]/wp-content/plugins/piklist/includes/class-piklist.php on line 2029’

      It happens with the following plugins for instance: ‘All in One WP Security’, ‘Duplicator’, ‘Google Analytics Dashboard’.

      On another plugin’s settings page (‘Easy Google Fonts’) the following error messages come up:

      Warning: Parameter 2 to Piklist_WordPress::where() expected to be a reference, value given in […]/wp-includes/class-wp-hook.php on line 298

      Warning: Parameter 2 to Piklist_WordPress::orderby() expected to be a reference, value given in […]/wp-includes/class-wp-hook.php on line 298

      Warning: Parameter 2 to Piklist_WordPress::distinct() expected to be a reference, value given in […]/wp-includes/class-wp-hook.php on line 298

      Everything seems to work normally, though. I get none of these messages with PHP 7.0.

      Best – Stefan

    • #7666
      Jason
      Keymaster

      Hi @bubdev!

      Interesting. We’ve made a ticket for this. What version of Piklist are you running, please?

    • #7667
      bubdev
      Member

      Hi Jason,

      I’m using the latest version: 0.9.9.9

    • #7668
      Jason
      Keymaster

      Got it. Thanks! I haven’t tested on PHP 7.1 yet, but I will.

    • #7792
      guaycuru
      Participant

      Hi, is there any updates on this? I’m currently using PHP 7.1 and receiving the errors mentioned above.

    • #7847
      rstovall
      Participant

      +1 Receiving errors also

    • #7857
      Jason
      Keymaster

      Hey guys!

      Sorry for the long delay. I volunteer contribute and work has been very busy for me. Fortunately these warnings should not actually cause any real bugs and I’m assuming you don’t have WP_DEBUG_DISPLAY true on production.

      I’ve fixed the non-numeric error, but I can’t reproduce the Piklist_WordPress::where() warning that @bubdev reported. I installed the plugin you mentioned but I’m not seeing anything. I am looking from the version that is going to be released next week, so it’s possible the problem was resolved in another patch.

      As you can see in this other thread, a new version will be out next week which includes a number of fixes including this one. Please test it out and let us know if you find any other PHP 7.x related issues!

      Happy coding!

    • #9408

      Hi, this error still appears for me in 2019 as well.
      running the latest version of piklist (1.0.3) as well.

Viewing 7 reply threads
  • You must be logged in to reply to this topic.