Here’s a few remaining instances that I’m still seeing since updating to 8.4 –
include/message_functions.php, line 283
include/general.php, line 669
Same as before:
“/srv/http/include/general.php line 669: count(): Parameter must be an array or an object that implements Countable”
The general.php error came up in the “search for similar resources” section of item details from a search result - you can see an example screenshot at https://cl.ly/p6Gu. The message_functions.php one came when I tried to approve a resource download request.
In both cases, I temporarily patched around the error message by changing
count($remote_refs)==0
on the indicated line to
((is_array($remote_refs)) && (count($remote_refs)==0 ))
but I haven’t done any sort of in-depth analysis to see whether there might be some weird edge cases where that might result in something unexpected.
From: resour...@googlegroups.com [mailto:resour...@googlegroups.com]
On Behalf Of dan....@montala.com
Sent: Thursday, January 25, 2018 4:51 AM
To: ResourceSpace <resour...@googlegroups.com>
Subject: Re: PHP 7.2.0 compatibility
Hi Mark,
What are the actual error messages?
8.4 was tested against PHP 7.0.2 with no issues found.
Thanks,
Dan
On Thursday, January 18, 2018 at 8:42:49 PM UTC, MarkR wrote:
Here’s a few remaining instances that I’m still seeing since updating to 8.4 –
include/message_functions.php, line 283
include/general.php, line 669
From: resour...@googlegroups.com [mailto:resour...@googlegroups.com] On Behalf Of dan....@montala.com
Sent: Thursday, December 14, 2017 2:31 PM
To: ResourceSpace <resour...@googlegroups.com>
Subject: Re: PHP 7.2.0 compatibility
Hi Mark,
I'll make sure we test the up-coming 8.4 release on PHP 7.2.0. I know there have already been several fixes to the trunk. That should be released the second week in January.
Thanks,
Dan
On Thursday, 14 December 2017 19:40:49 UTC, MarkR wrote:After upgrading to PHP 7.2.0, we have a number of places in ResourceSpace that now throw an error "count(): Parameter must be an array or an object that implements Countable." This looks to be related to the changelog entry on https://secure.php.net/manual/en/function.count.php (beginning with version 7.2.0, "count() will not yield a warning on invalid countable types passed to the array_or_countable parameter")
One example of this is pages/search.php line 513 - in this case it seems to be fixable by swapping the order of lines 513 and 514, but there are other places where I suspect it's a bit more involved than that...
--
ResourceSpace: Open Source Digital Asset Management
http://www.resourcespace.com
---
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
resourcespac...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.
T: +44(0)1782 577566 ¦ F: +44(0)1782 524355 ¦ www.churchill1795.com ¦ Twitter: @churchill1795
Head Office & Showroom: Marlborough Pottery, High Street, Tunstall, Stoke-on-Trent, England, ST6 5NZ
London Showroom: Churchill Showroom, Business Design Centre, Suite 102, 52 Upper Street, Islington, London, N1 0QH