Title: Throwing PHP Warning
Last modified: December 17, 2018

---

# Throwing PHP Warning

 *  [Brad Davis](https://wordpress.org/support/users/brad-davis/)
 * (@brad-davis)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/throwing-php-warning/)
 * 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)

 *  [Vince Rhee](https://wordpress.org/support/users/vincerhee/)
 * (@vincerhee)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/throwing-php-warning/#post-11448953)
 * 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 )`
 * to:
    `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).
 * Vince

Viewing 1 replies (of 1 total)

The topic ‘Throwing PHP Warning’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/pixproof.svg)
 * [PixProof - Easy Photo Proofing for Photographers](https://wordpress.org/plugins/pixproof/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pixproof/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pixproof/)
 * [Active Topics](https://wordpress.org/support/plugin/pixproof/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pixproof/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pixproof/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Vince Rhee](https://wordpress.org/support/users/vincerhee/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/throwing-php-warning/#post-11448953)
 * Status: not resolved