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

Error when creating a group in PHP 7 #9318

Closed
c-cesar opened this Issue Jan 25, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@c-cesar

c-cesar commented Jan 25, 2016

Argument 2 passed to elgg_format_element() must be of the type array, null given, called in /srv/http/e/mod/groups/views/default/groups/edit/tools.php on line 24
The line is:
echo elgg_format_element('div', null, elgg_view('input/checkbox', array([long array of options])
Changing null to array() everything works.
Seems PHP 7 don't handle null as empty any more.

@mrclay

This comment has been minimized.

Show comment
Hide comment
@mrclay
Member

mrclay commented Jan 26, 2016

Try #9319

@mrclay mrclay closed this in e0d5433 Feb 9, 2016

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