Re: Warning: array_merge()



mark said the following on 26/09/2005 22:46:
I recently moved all my files onto a new machine, groing from XP Home to XP Pro.

On my old machine, I had wamp installed and my site ran fine locally, however, when moving to this new machine using exactly the same install of wamp, and the same site files I keep getting:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in

when running PHP5, yet the same files didn't produce this error when running PHP5 on my old machine and they also run fine remotely on my server with PHP5. Any ideas?


It sounds as if argument #1 is not an array! (Sorry to repeat the obvious... ;) ) What is the code (mimimal) leading up to the array_merge() call, i.e. where/how is argumeny #1 created?


As for the error, did you have error reporting disabled on the old server(s)?



--
Oli
.