IMPORTANT MESSAGE REGARDING THE FORUM

As you may already know, the JoomlaWorks Forum is powered by Kunena (the only decent forum component for Joomla).

Unfortunately, the latest update for Kunena has seemingly broken all code snippets (old and new) in the forum.

Until this message is removed, please paste any code as regular text - in other words, don't use the [code]...[/code] tags in Kunena's post editor.

Keyword

PHP 8, New Group => array_merge(): Argument #1 must be of type array, null given

  • Anibal Sanchez
  • Anibal Sanchez's Avatar Topic Author
  • Offline
  • Junior Member
More
1 month 2 days ago #179758 by Anibal Sanchez
Hi,

If you try to create a new group on PHP 8, array_merge(): Argument #1 must be of type array, null given

To fix it:

administrator/components/com_k2/views/usergroup/view.html.php, line 51:

$categories_option = $categories;

if ($categories_option) {
    $categories_options = array_merge($categories_option, $categories);
}

Error impression with  @ doesn't work as before on PHP 8. PHP 8.0: 
Log in  or Create an account to join the conversation.

  • Anibal Sanchez
  • Anibal Sanchez's Avatar Topic Author
  • Offline
  • Junior Member
More
1 month 2 days ago #179759 by Anibal Sanchez
... hmmm ...$categories_options is not used.... it could be removed.

Regards

Please Log in or Create an account to join the conversation.

  • Anibal Sanchez
  • Anibal Sanchez's Avatar Topic Author
  • Offline
  • Junior Member
More
1 month 2 days ago #179760 by Anibal Sanchez

Please Log in or Create an account to join the conversation.

More
1 month 2 days ago #179761 by Fotis
Merged. Thank you Anibal.

Please Log in or Create an account to join the conversation.