Codoforum related discussions
Error when trying to view user list

When I try to view the user list from the administration page, I get the following error:

Parse error: syntax error, unexpected '[' in /path/to/codoforum/admin/modules/users.php on line 10
When I try to view the user list from the administration page, I get the following error: ```` Parse error: syntax error, unexpected '[' in /path/to/codoforum/admin/modules/users.php on line 10 ````
This is my signature. There are many like it but this one is mine.

Hi,

Thanks for reporting the bug , we were testing in PHP 5.4 environment so we did not notice it.

PHP 5.4 uses a new syntax for defining arrays which is not supported in older versions.

It will be fixed in our next release (by using the standard syntax) .

For a quick fix, you can do the following :

Go to codoforum/admin/modules/users.php

On line 10,

replace

$filter_array = [];

with

$filter_array = array();
Hi, Thanks for reporting the bug , we were testing in PHP 5.4 environment so we did not notice it. PHP 5.4 uses a new syntax for defining arrays which is not supported in older versions. It will be fixed in our next release (by using the standard syntax) . For a quick fix, you can do the following : Go to codoforum/admin/modules/users.php On line 10, replace ```` $filter_array = []; ```` with ```` $filter_array = array(); ````
Necessity is the mother of all inventions!
133
1
0
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft