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
2 years 3 months 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: 
@
 Error Suppression operator does not silent fatal errorshttps://php.watch/versions/8.0/fatal-error-suppression


Best Regards

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

  • Anibal Sanchez
  • Anibal Sanchez's Avatar Topic Author
  • Offline
  • Junior Member
More
2 years 3 months 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
2 years 3 months ago #179760 by Anibal Sanchez

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

More
2 years 3 months ago #179761 by JoomlaWorks
Merged. Thank you Anibal.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum