PDA

View Full Version : FORUMHOME error 'array_merge'


danward
10-03-2008, 03:29 PM
Just had this error appear on FORUMHOME:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1219) : eval()'d code on line 12

Any ideas why its come up? Quick fix?

http://www.street-legal.biz/board/

All comments welcome. Thanks. :)

noppid
10-03-2008, 04:26 PM
One of the vars you are trying to merge is not an array. Check all your proposed arrays for merging for is_array before trying to merge them. If not an array, there's an error or lack of data and you need to skip the merge and throw the proper error or result.

Lynne
10-03-2008, 04:38 PM
This should help. It's probably from a plugin, so you'll have to find it and fix it or see if the author has updated it. [Fix How to] PHP 5 and array_merge errors (https://vborg.vbsupport.ru/showthread.php?t=125302&highlight=array_merge)

danward
10-03-2008, 06:10 PM
Cheers guys I'll look into it properly tomorrow.

danward
10-05-2008, 01:18 PM
Thanks peeps got this all sorted now!