Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PHP 7.2] count(): Parameter must be an array or an object that implements Countable #12614

Closed
scroom opened this issue Nov 22, 2018 · 2 comments

Comments

@scroom
Copy link

scroom commented Nov 22, 2018

Steps to reproduce

  1. Upgrade to Nextcloud 14.04
  2. Access NC

Expected behaviour

Normal access to nextcloud without errors in error log

Actual behaviour

Access to nextcloud works, but there are errors in the log:
count(): Parameter must be an array or an object that implements Countable at /var/www/nextcloud/apps/user_ldap/lib/Access.php#883

Server configuration

Operating system: Ubuntu 18.04

Web server: Nginx

Database: MySQL

PHP version: 7.2

Nextcloud version: 14.04

Updated from an older Nextcloud/ownCloud or fresh install: Updated from 14.03

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #8975 (count(): Parameter must be an array or an object that implements Countable php 7.2), #7546 (PHP 7.2: Count on object that does not implement countable interface), #7415 (WebDav still works with PHP 7.2), #8210 (Document support for PHP 7.2 in Changelog), and #8964 (Argument 2 passed to OC_App::isAppCompatible() must be of the type array, null given).

@kesselb
Copy link
Contributor

kesselb commented Nov 27, 2018

Fix #12684 will be part of 14.0.5 🎉 Thank you for reporting this issue 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants
@MorrisJobke @kesselb @scroom @nextcloud-bot @violoncelloCH and others