• Resolved vienne18

    (@vienne18)


    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)
  • 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

    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

    (@ed4becky)

    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.