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

sizeof(): Parameter must be an array or an object that implements Countable #15

Closed
kaen98 opened this issue Feb 27, 2018 · 2 comments
Closed

Comments

@kaen98
Copy link

kaen98 commented Feb 27, 2018

  • 本地homestead正常!
  • 推送到 heroku上后, 访问后台 报错:
sizeof(): Parameter must be an array or an object that implements Countable

image

  • heroku上PHP 版本: PHP 7.2.2
vagrant@homestead:~$ heroku run 'php -v' --app young-headland-13929
 ▸    heroku-cli: update available from 6.13.19 to 6.15.26-5726b6f
Running php -v on ⬢ young-headland-13929... up, run.8700 (Free)
PHP 7.2.2 (cli) (built: Feb  5 2018 02:24:30) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.2, Copyright (c) 1999-2018, by Zend Technologies

@kingofzihua
Copy link

搜索sizeof,然后替换成 is_array 试试

@kaen98
Copy link
Author

kaen98 commented Mar 12, 2018

@kingofzihua 最终把heroku 上PHP 环境配成和本地一样 , PHP 7.1 正常

@kaen98 kaen98 closed this as completed Mar 19, 2018
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

2 participants