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

count(): Parameter must be an array or an object that implements Countable #17

Open
nom3d opened this issue Aug 31, 2019 · 1 comment
Open

Comments

@nom3d
Copy link

nom3d commented Aug 31, 2019

I'm getting this error
Warning: count(): Parameter must be an array or an object that implements Countable in /home/servername/publicapi-php-master/Cpanel/PublicAPI.php on line 343
Using php 7.1 on Hawk Host shared server Aug 31 2019

@nom3d
Copy link
Author

nom3d commented Aug 31, 2019

on php 7.2
change line 343 of PublicAPI.php to
if (count($storedServicesConfig->getAllData()) > 1) {

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

No branches or pull requests

1 participant