• Hi is there any plans to update the plugin to fix the following error that is being thrown?

    PHP Warning: count(): Parameter must be an array or an object that implements Countable………. plugins/pixproof/features/metaboxes/init.php on line 718

Viewing 1 replies (of 1 total)
  • Brad –

    I don’t know if you ever got an answer on this, but I’m guessing your setup is running PHP 7.x? If so, you can try out the following if you’re up for a little manual PHP hacking:

    In line 718 of the file wp-content/plugins/pixproof/features/metaboxes/init.php, change:
    count( $meta_box['pages'] === 1 )

    count( $meta_box['pages'] ) === 1

    Note the moving of the closing parenthesis for the count() call. Honestly, the original code looks like a bug to me.

    I accept no responsibility for what happens should you try this — I’m just another user like you — but it seems to work for me so far (at least it quit throwing that error).


Viewing 1 replies (of 1 total)
  • The topic ‘Throwing PHP Warning’ is closed to new replies.