Title: PHP error
Last modified: May 31, 2018

---

# PHP error

 *  Resolved [vienne18](https://wordpress.org/support/users/vienne18/)
 * (@vienne18)
 * [8 years ago](https://wordpress.org/support/topic/php-error-277/)
 * I’ve uploaded a GEDCOM file from RootsMagic. I’m getting this error in all the
   individual persons’ pages. I’m working on a test WP installed locally on my PC.
 * Warning: count(): Parameter must be an array or an object that implements Countable
   in \wp-content\plugins\rootspersona\php\class-RP-Persona-Factory.php on line 
   223
 * Warning: count(): Parameter must be an array or an object that implements Countable
   in \wp-content\plugins\rootspersona\php\class-RP-Persona-Factory.php on line 
   328
 * Warning: count(): Parameter must be an array or an object that implements Countable
   in \wp-content\plugins\rootspersona\php\class-RP-Persona-Factory.php on line 
   223
 * Warning: count(): Parameter must be an array or an object that implements Countable
   in \wp-content\plugins\rootspersona\php\class-RP-Persona-Factory.php on line 
   328

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

 *  [HighRollerUSA](https://wordpress.org/support/users/highrollerusa/)
 * (@highrollerusa)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/php-error-277/#post-10446689)
 * I’m getting the same errors:
 * Warning: count(): Parameter must be an array or an object that implements Countable
   in /homepages/wp-content/plugins/rootspersona/php/class-RP-Persona-Factory.php
   on line 223
 * Warning: count(): Parameter must be an array or an object that implements Countable
   in /homepages/wp-content/plugins/rootspersona/php/class-RP-Persona-Factory.php
   on line 328
 * The site is unusable with these errors filling the page, so I’ll have to disable
   for now and wait for suggestions on how to fix this. Thanks
 *  [HighRollerUSA](https://wordpress.org/support/users/highrollerusa/)
 * (@highrollerusa)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/php-error-277/#post-10446730)
 * Ok, turns out it was a PHP version problem. My web host had upgraded to PHP 7.2,
   but that caused all these errors. I downgraded to PHP 5.6 and it works as expected.
 * A note to the developer, with hosts automatically updating/creating sites in 
   PHP 7.2, may need to adjust the code to be compatible.
 * Thanks!
 *  Plugin Author [ed4becky](https://wordpress.org/support/users/ed4becky/)
 * (@ed4becky)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/php-error-277/#post-10695923)
 * I run Rootspersona on 7.2 Make sure you are on the latest version of the plugin.

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

The topic ‘PHP error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/rootspersona_d7ebd4.svg)
 * [RootsPersona](https://wordpress.org/plugins/rootspersona/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rootspersona/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rootspersona/)
 * [Active Topics](https://wordpress.org/support/plugin/rootspersona/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rootspersona/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rootspersona/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [ed4becky](https://wordpress.org/support/users/ed4becky/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/php-error-277/#post-10695923)
 * Status: resolved