help to better help you:
Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!
array_merge(): argument #2 must be type array, null given
array_merge(): argument #2 must be type array, null given
2 months 2 weeks ago
I'm a little bit frustrated. I stumble from one problem to the next.
My configuration:
- Joomla 5.2.5
- PHP 8.4
- JEM 4.4.2
After i've solved the problems on the administration side, I get the error message
"0-array_merge(): argument #2 must be type array, null given"
everytime, when I request information of one of the venues.
https://[host]/index.php?option=com_jem&view=venue&id=xyz
I've turned the $debug option int the configuration.php file to 'true'. but there is no PHP call stack produced.
Can somebody give me a hint, where to check for the source of the bug?
Best regards
hike39
My configuration:
- Joomla 5.2.5
- PHP 8.4
- JEM 4.4.2
After i've solved the problems on the administration side, I get the error message
"0-array_merge(): argument #2 must be type array, null given"
everytime, when I request information of one of the venues.
https://[host]/index.php?option=com_jem&view=venue&id=xyz
I've turned the $debug option int the configuration.php file to 'true'. but there is no PHP call stack produced.
Can somebody give me a hint, where to check for the source of the bug?
Best regards
hike39
Please Log in or Create an account to join the conversation.
Re: array_merge(): argument #2 must be type array, null given
2 months 2 weeks ago - 2 months 2 weeks ago
You can fix it by checking the JEM configuration value for locked venue access levels. Run this query in your Joomla database, replacing #__ with your real table prefix:
UPDATE #__jem_config
SET value = '["1"]'
WHERE keyname = 'access_level_locked_venues';
If the row does not exist, insert it:
INSERT INTO #__jem_config (keyname, value, access)
VALUES ('access_level_locked_venues', '["1"]', '0');
The error is caused by PHP 8.4 being stricter: JEM 4.4.2 tries to merge access levels, but if
is empty or invalid, json_decode()[/code] returns null, causing: --> [code]array_merge(): argument #2 must be type array, null given
Tell me if this fixs it.
UPDATE #__jem_config
SET value = '["1"]'
WHERE keyname = 'access_level_locked_venues';
If the row does not exist, insert it:
INSERT INTO #__jem_config (keyname, value, access)
VALUES ('access_level_locked_venues', '["1"]', '0');
The error is caused by PHP 8.4 being stricter: JEM 4.4.2 tries to merge access levels, but if
Code:
access_level_locked_venues
Tell me if this fixs it.
At the end of the day, computing and technology, like Joomla and JEM are here to help the end user and make our lives a little easier. Help us to be better.
Last edit: 2 months 2 weeks ago by McKillo.
The following user(s) said Thank You: hike39
Please Log in or Create an account to join the conversation.
Re: array_merge(): argument #2 must be type array, null given
2 months 2 weeks ago
just to note:
-> How did you upgrade/install to 4.4.2?
was it a clean install and import data. or did you update JEM files by normal update path;
or something else?
-> How did you upgrade/install to 4.4.2?
was it a clean install and import data. or did you update JEM files by normal update path;
or something else?
JEM 5.01 (beta) + Joomla 6
Please Log in or Create an account to join the conversation.
Re: array_merge(): argument #2 must be type array, null given
2 months 2 weeks ago
THX a lot. Your instruction solved my problem.
Greetings
hike39
Greetings
hike39
Please Log in or Create an account to join the conversation.
Re: array_merge(): argument #2 must be type array, null given
2 months 2 weeks ago
I updated the extension.
Please Log in or Create an account to join the conversation.
Time to create page: 1.109 seconds