Fatal Error au_subgroups 1.9

Someone already experienced the same problem as me?
 
Chat (1)

Fatal error.

Redirect could not be issued due to headers already being sent. Halting execution for security. Output started in file /home/proftpd/www@integrasocial.net/anprotec/mod/au_subgroups/lib/functions.php at line 298. Search http://learn.elgg.org/ for more information.

SecurityException Object
(
[message:protected] => Redirect could not be issued due to headers already being sent. Halting execution for security. Output started in file /home/proftpd/www@integrasocial.net/anprotec/mod/au_subgroups/lib/functions.php at line 298. Search http://learn.elgg.org/ for more information.
[string:Exception:private] => exception 'SecurityException' with message 'Redirect could not be issued due to headers already being sent. Halting execution for security. Output started in file /home/proftpd/www@integrasocial.net/anprotec/mod/au_subgroups/lib/functions.php at line 298. Search http://learn.elgg.org/ for more information.' in /home/proftpd/www@integrasocial.net/anprotec/engine/lib/elgglib.php:99
Stack trace:
#0 /home/proftpd/www@integrasocial.net/anprotec/engine/lib/pagehandler.php(217): forward('activity')
#1 [internal function]: elgg_front_page_handler(NULL, NULL)
#2 /home/proftpd/www@integrasocial.net/anprotec/engine/classes/Elgg/Router.php(79): call_user_func('elgg_front_page...', NULL, NULL)
#3 /home/proftpd/www@integrasocial.net/anprotec/index.php(22): Elgg_Router->route(Object(Elgg_Http_Request))
#4 {main}
[code:protected] => 0
[file:protected] => /home/proftpd/www@integrasocial.net/anprotec/engine/lib/elgglib.php
[line:protected] => 99
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /home/proftpd/www@integrasocial.net/anprotec/engine/lib/pagehandler.php
[line] => 217
[function] => forward
[args] => Array
(
[0] => activity
)

)

[1] => Array
(
[function] => elgg_front_page_handler
[args] => Array
(
[0] =>
[1] =>
)

)

[2] => Array
(
[file] => /home/proftpd/www@integrasocial.net/anprotec/engine/classes/Elgg/Router.php
[line] => 79
[function] => call_user_func
[args] => Array
(
[0] => elgg_front_page_handler
[1] =>
[2] =>
)

)

[3] => Array
(
[file] => /home/proftpd/www@integrasocial.net/anprotec/index.php
[line] => 22
[function] => route
[class] => Elgg_Router
[type] => ->
[args] => Array
(
[0] => Elgg_Http_Request Object
(
[query] => Elgg_Http_ParameterBag Object
(
[parameters:protected] => Array
(
[__elgg_uri] => groups/all
[filter] => open
)

)

[request] => Elgg_Http_ParameterBag Object
(
[parameters:protected] => Array
(
)

)

[cookies] => Elgg_Http_ParameterBag Object
(
[parameters:protected] => Array
(
[Elgg] => 3cuhc8082hpkpg586oap6590a5
)

)

[files] => Elgg_Http_ParameterBag Object
(
[parameters:protected] => Array
(
)

)

[server] => Elgg_Http_ParameterBag Object
(
[parameters:protected] => Array
(
[REDIRECT_UNIQUE_ID] => VRltg38AAQEAAEOQPMwAAAA@
[REDIRECT_STATUS] => 200
[UNIQUE_ID] => VRltg38AAQEAAEOQPMwAAAA@
[HTTP_HOST] => integrasocial.net
[HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 6.3; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[HTTP_ACCEPT_LANGUAGE] => pt-BR,pt;q=0.8,en-US;q=0.5,en;q=0.3
[HTTP_ACCEPT_ENCODING] => gzip, deflate
[HTTP_REFERER] => http://integrasocial.net/anprotec/groups/all
[HTTP_COOKIE] => Elgg=3cuhc8082hpkpg586oap6590a5
[HTTP_CONNECTION] => keep-alive
[PATH] => /usr/local/bin:/usr/bin:/bin
[SERVER_SIGNATURE] =>
[SERVER_SOFTWARE] => Apache
[SERVER_NAME] => integrasocial.net
[SERVER_ADDR] => 186.225.239.144
[SERVER_PORT] => 80
[REMOTE_ADDR] => 177.42.52.84
[DOCUMENT_ROOT] => /home/proftpd/www@integrasocial.net
[SERVER_ADMIN] => [no address given]
[SCRIPT_FILENAME] => /home/proftpd/www@integrasocial.net/anprotec/index.php
[REMOTE_PORT] => 50377
[REDIRECT_QUERY_STRING] => __elgg_uri=groups/all&filter=open
[REDIRECT_URL] => /anprotec/groups/all
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] => __elgg_uri=groups/all&filter=open
[REQUEST_URI] => /anprotec/groups/all?filter=open
[SCRIPT_NAME] => /anprotec/index.php
[PHP_SELF] => /anprotec/index.php
[REQUEST_TIME] => 1427729795
)

)

[headers] => Elgg_Http_ParameterBag Object
(
[parameters:protected] => Array
(
[Host] => integrasocial.net
[User-Agent] => Mozilla/5.0 (Windows NT 6.3; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0
[Accept] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[Accept-Language] => pt-BR,pt;q=0.8,en-US;q=0.5,en;q=0.3
[Accept-Encoding] => gzip, deflate
[Referer] => http://integrasocial.net/anprotec/groups/all
[Cookie] => Elgg=3cuhc8082hpkpg586oap6590a5
[Connection] => keep-alive
)

)

[baseUrl:protected] =>
[requestUri:protected] => /anprotec/groups/all?filter=open
[pathInfo:protected] =>
)

)

)

)

[previous:Exception:private] =>
)

  • Go to au_subgroups/lib/hooks.php. On lines 162 - 165 you will see the following: 

     

        if(in_array($filter, array("open", "closed", "alpha"))){
          au_subgroups_handle_openclosed_tabs();
          return true;
            }

    Change to 

        if(in_array($filter, array("open", "closed", "alpha"))){
          au_subgroups_handle_openclosed_tabs();
          return false;
            }

    That will (very likely) fix it for you!