PDA

View Full Version : Need Help!array merge??


Cubie
11-14-2004, 08:03 AM
I can't login to my site anymore.
The forum is still accesable but my vbadvanced portal gives errors:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/.sites/119/site80/web/forum/global.php on line 26

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/.sites/119/site80/web/forum/global.php on line 41

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/.sites/119/site80/web/forum/global.php on line 48

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/.sites/119/site80/web/forum/includes/init.php on line 519




Unable to add cookies, header already sent.
File: /home/.sites/119/site80/web/forum/global.php
Line: 26

Does anybody know what to do?
I already uploaded an old backup, but it results in the same errors
I have a little overhead in my sql database (don't know what that means yet)


my site: http://www.ringoffate.com

shorty
11-14-2004, 08:34 AM
Have you reuploaded the vbadvanced files?

I can access your standard vb files (showthread.php, forumdisplay.php) but not index.php.

If vbadvanced uses a different index.php to the default VBulletin one AND this error obviously only occurs on that vbadvanced one.. then something seems to be wrong with the vbandvanced one you are running.

Michael Morris
11-14-2004, 10:44 AM
I can't login to my site anymore.
The forum is still accesable but my vbadvanced portal gives errors:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/.sites/119/site80/web/forum/global.php on line 26

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/.sites/119/site80/web/forum/global.php on line 41

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/.sites/119/site80/web/forum/global.php on line 48

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/.sites/119/site80/web/forum/includes/init.php on line 519


Array merge merges one array to another. Without seeing the statments on those it's hard to say what's going wrong, but it's probable that they are all acting on the same variable that you've failed to define as an array at some point. Certain spelling errors will also do this.

If you upgraded to the latest version of PHP 5.0 this might also occur - they changed the behavior of the array_merge function some (And for that reason and others changing to PHP 5.0 is a bad idea until Jelsoft greenlights it).

Cubie
11-14-2004, 04:50 PM
Thanx Michael, you set me on the right track.
My provider has installed php 5 on 11 november en before that it all worked just fine.

I did some editing in the index file,

Above:
require_once('./global.php');

I added:
$phrasegroups = array();
$specialtemplates = array();
$globaltemplates = array();

Thanx to Brian