array_merge(): Argument #2 must be of type array, null given - Forum | JoomShaper
Staff replied SP Page Builder

array_merge(): Argument #2 must be of type array, null given

Asked by patrick 4 years ago Last activity 3 years ago

Hi when i upgrad to php8 i becom this error

array_merge(): Argument #2 must be of type array, null given

by my website

8 replies

Toufiq Senior Staff

Hi there,

Thanks for contacting us. Sorry for the inconvenience. Please downgrade PHP version 8 to 7.4 & check again.

-Thanks

Paul Frankowski Senior Staff

we support only PHP 7.x and PHP 8.0.x, not PHP 8.1

Besides error message can be from different extensions as well, not only from ours.

Rafael Cavalcante Teixeira

I have this problem. Do you have a solution other than returning the PHP version?

Paul Frankowski Senior Staff

@Radael

To help you more we need more details:

  1. Used template (full name!)
  2. Used extensions (components, modules)
  3. Used PHP version when was OK
Rafael Cavalcante Teixeira

1 - Template: THEMYS
2 - We use basic Joomla 4 components, extensions and modules
3 - PHP 7.4 Work and in PHP 8.0 not work

www.tpp.adv.br

gemmajoom

Hi, I have the same problem with Themis template.
Can you tell me how you solved it?

Toufiq Senior Staff

Will you please provide me the Joomla administrator access to check the issue?

gemmajoom

Hi, I have the same problem with Themis template.
When I login via front-end, with php 7.4 it works, with php 8.0 there is 0 error
in_array(): Argument #2 ($haystack) must be of type array, null given.

Now we are back to php 7.4, but we need to update it soon.

Toufiq Senior Staff

Will you please provide me the Joomla administrator access to check the issue?

gemmajoom

This is the link of the page that generates the error once you try to login.
With php 7.4 everything works correctly

Toufiq Senior Staff

Disable this module MODULO RICERCA COMPOSIZIONE(Articles Good Search). Cause, this module occurred the problem. Thanks

gemmajoom

even after disabling the module you indicated an error appears, this time the error is "0 Attempt to modify property "params" on null"

Toufiq Senior Staff

Please check now and let me know. Thanks

Ton Kemp

I just resolved this probel. The cause was at an other extension!

Toufiq Senior Staff

Glad to know that your problem is solved. Thanks for inform us. <3

Log in to reply.