Forum
Warning error after updating
Hi
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.
Diagnostics
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_LOGINPATH: /perch
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
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