Title: Error in php error log
Last modified: February 11, 2019

---

# Error in php error log

 *  [amiayu](https://wordpress.org/support/users/amiayu/)
 * (@amiayu)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-in-php-error-log/)
 * Warning: count(): Parameter must be an array or an object that implements Countable
   in /home/ayuilinf/public_html/wp-content/plugins/user-specific-content/User-Specific-
   Content.php on line 373
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-in-php-error-log%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [OttlaK](https://wordpress.org/support/users/ottlak/)
 * (@ottlak)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-in-php-error-log/#post-11204955)
 * Same here after server update to PHP 7.2
    Is there any solution yet?
    -  This reply was modified 7 years, 1 month ago by [OttlaK](https://wordpress.org/support/users/ottlak/).
      Reason: check notify box
 *  [miss-d](https://wordpress.org/support/users/miss-d/)
 * (@miss-d)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-in-php-error-log/#post-11257904)
 * Same here….. after switch to PHP 7.2 I get this error…. WP version is 5.1
    Please
   help, need this plugin and need a solution <:-) Thanks!!
 *  [miss-d](https://wordpress.org/support/users/miss-d/)
 * (@miss-d)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-in-php-error-log/#post-11258198)
 * …can someone test this code? It seems to work for me:
 * wp-content/plugins/user-specific-content/User-Specific-Content.php – Line 373
 * change:
    if (!count($savedusers) > 0 && !count($savedroles) > 0 ){
 * to:
    if (!$savedusers > 0 && !$savedroles > 0 ){
 *  [OttlaK](https://wordpress.org/support/users/ottlak/)
 * (@ottlak)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-in-php-error-log/#post-11292842)
 * [@miss-d](https://wordpress.org/support/users/miss-d/) – Thank you for the code,
   it works for me, too!
    It should be implemented in the next plugin update if 
   it has no undesired side effects! Thanks!!
 *  [createscape](https://wordpress.org/support/users/createscape/)
 * (@createscape)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/error-in-php-error-log/#post-11511201)
 * Thank you [@miss-d](https://wordpress.org/support/users/miss-d/),
    Your code 
   worked for me.
 *  [pedjas](https://wordpress.org/support/users/pedjas/)
 * (@pedjas)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/error-in-php-error-log/#post-11511312)
 * Thanks for fix. Hope we will get official update soon.

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

The topic ‘Error in php error log’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/user-specific-content_ffffff.svg)
 * [User Specific Content](https://wordpress.org/plugins/user-specific-content/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-specific-content/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-specific-content/)
 * [Active Topics](https://wordpress.org/support/plugin/user-specific-content/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-specific-content/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-specific-content/reviews/)

 * 6 replies
 * 5 participants
 * Last reply from: [pedjas](https://wordpress.org/support/users/pedjas/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/error-in-php-error-log/#post-11511312)
 * Status: not resolved