We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum


Thread tagged as: Problem

Warning error after updating


I've updated a site to 2.8.34 as I was updating the server to php7.2, but I've go the following warning when editing content;

Warning: count(): Parameter must be an array or an object that implements Countable in /home/XXXXXXXXXX/public_html/perch/core/lib/PerchFieldTypes.class.php on line 69

I can't remember what version it was updated from, but it I'm sure it was a 2.8.X one.


Perch: 2.8.34, PHP: 7.2.12, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.34), assets (2.8.34), categories (2.8.34)
App runtimes: <?php $apps_list = array( 'content', 'categories', );
PERCH_PATH: /home/whytemelville/public_html/perch
PERCH_CORE: /home/whytemelville/public_html/perch/core
PERCH_RESFILEPATH: /home/whytemelville/public_html/perch/resources
Image manipulation: GD
PHP limits: Max upload 25M, Max POST 128M, Memory: 256M, Total max file upload: 25M
F1: 6a33f95eca3667f9e0c39bf5ca2980fe
Resource folder writeable: Yes
DOCUMENT_ROOT: /home/whytemelville/public_html
HTTP_HOST: www.whytemelville.co.uk
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Wayne Hooper

Wayne Hooper 6 points

  • 2 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You'll need to update to Perch 3 in order to address that particular issue.

Thanks Drew. Updating to 3 has fixed this. Did I do something wrong with the 2.8.34 update to cause that error. If I see this in my other 2.8.34 versions I'll update them to 3