[fixed r1341] Error function.array-merge

More
12 years 11 months ago #26114 by arche
I am currently using version 1.5.6 RC5 (r1338) on Joomla 1.5.26 If I click on items menu I get this error on the top just below the menu:
Code:
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/test/public_html/components/com_flexicontent/classes/flexicontent.categories.php on line 279 Warning: array_unique() [function.array-unique]: The argument should be an array in /home/test/public_html/components/com_flexicontent/classes/flexicontent.categories.php on line 279

If I click on an actual item, I get this error:
Code:
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/test/public_html/components/com_flexicontent/classes/flexicontent.categories.php on line 279 Warning: array_unique() [function.array-unique]: The argument should be an array in /home/test/public_html/components/com_flexicontent/classes/flexicontent.categories.php on line 279 Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/test/public_html/components/com_flexicontent/classes/flexicontent.categories.php on line 279 Warning: array_unique() [function.array-unique]: The argument should be an array in /home/test/public_html/components/com_flexicontent/classes/flexicontent.categories.php on line 279

Same happens when clicking on the categories option or clicking on a specific category.

Also, just FYI. The latest SVN version shows RC5 r1336, but once installed, it shows RC5 r1338. Just a heads up.

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

More
12 years 11 months ago #26139 by ggppdk
Fixed in r1341

Replace
Code:
// Add already selected categories to the category list $selectedcats = !is_array($selected) ? array($selected) : $selected; $usercats = array_unique(array_merge($selectedcats, $usercats));
with
Code:
if (FLEXI_J16GE || FLEXI_ACCESS) { // Add already selected categories to the category list $selectedcats = !is_array($selected) ? array($selected) : $selected; $usercats = array_unique(array_merge($selectedcats, $usercats)); }


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
12 years 11 months ago #26190 by arche
I applied this fix and worked great, thank you for the info. Actually fixed a few issues with the layout on the categories side, but still same issue with the items side. But will wait for the latest SVN to see if it is fixed.

Thanks

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.326 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save