Recurring PHP Warnings in the error log:
PHP Warning: array_reverse() expects parameter 1 to be array, object given in extensions/SemanticMediaWiki/src/Page/ListBuilder/ValueListBuilder.php on line 123
PHP Warning: count(): Parameter must be an array or an object that implements Countable in extensions/SemanticMediaWiki/src/Page/ListBuilder/ValueListBuilder.php on line 128
Unknown,
@@ -117,10 +117,14 @@ class ValueListBuilder {
$isValueSearch = true;
} else {
$dataItems = $this->store->getAllPropertySubjects( $property, $options );
}
+ if ( $dataItems instanceof \Iterator ) {
+ $dataItems = iterator_to_array( $dataItems );
+ }
That should help.
On 9/3/18, Hypolite Petovan notifications@github.com wrote:
Setup and configuration
- SMW version: dev-master 18403e3
- MW version: 1.31.0
- PHP version: 7.2
- DB system (MySQL, Blazegraph, etc.) and version: MySQL 14.14
Issue
Recurring PHP Warnings in the error log:
PHP Warning: array_reverse() expects parameter 1 to be array, object given in extensions/SemanticMediaWiki/src/Page/ListBuilder/ValueListBuilder.php on line 123 PHP Warning: count(): Parameter must be an array or an object that implements Countable in extensions/SemanticMediaWiki/src/Page/ListBuilder/ValueListBuilder.php on line 128Steps to reproduce
Unknown,
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/3408
Thanks a lot for reporting. I have created a pull request containing the proposed code changes.
Most helpful comment
That should help.
On 9/3/18, Hypolite Petovan notifications@github.com wrote: