View Full Version : Array_merge() problem when upgrading
agiacosa
09-24-2006, 06:51 PM
Hi,
I upgraded from 3.5.1. and uploaded CMPS 2.2. I'm getting these errors:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/vba_cmps_include_top.php on line 36
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /includes/vba_cmps_include_top.php on line 36
Also, the modules aren't showing up. http://www.aquaticplantcentral.com.
Little help please!
Brian
09-25-2006, 06:38 PM
Sounds like some of the files may not have been overwritten when you uploaded 2.2.0. I'd suggest downloading the package from here again and then re-uploading all of the files.
agiacosa
09-25-2006, 07:18 PM
Brian,
I uploaded all the files again. I'm using the 2.2 (3.6.1) download from this site. Uploaded in ASCII mode. Same problem.
Submitted a ticket.
agiacosa
09-26-2006, 06:41 AM
Fixed.
Brian
09-26-2006, 12:42 PM
Just out of curiosity, what was the problem?
beduino
10-30-2006, 09:29 AM
I'm interested how he fixed this.
I make the upgrade and setup the 'default settings', cmps URL to http://www.vb-brasil.org [he was http://vb.brasil.org...]
Now I see a problem .......
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /admincp/vba_cmps_admin.php on line 196
How can I fix this?
All the best
Beduino
Brian
10-30-2006, 09:46 AM
Did you recently upgrade to v2.2.1? If so, did you run the upgrade part of the install file?
beduino
10-30-2006, 09:47 AM
I try [re] configure to http://vb-brasil and - know - the error is in all pages.
Please: how can I fix this?
All the best
Beduino
beduino
10-30-2006, 10:18 AM
Yes, Brian,
I make the upgrade of vBa and upgrade the vBlinks. This script -vblinks - i need uninstall. But this error is in vBA.
www.vb-brasil.org
you see.... :(
tks,
beduino
========
editing: i solve uninstalling old vBa and install new vBa :(
boo151
11-20-2006, 09:52 AM
Can someone tell me how this problem was fixed? I am receiving a similar problem from the admincp when viewing the vBa CMPS options.
Here is the error
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in \admincp\vba_cmps_admin.php on line 196
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in \admincp\vba_cmps_admin.php on line 196
Now the weird thing is that everything appears to be working fine.
Any suggestions?
thanks
boo151
11-20-2006, 09:56 AM
OK Fixed it.
I just copied the vba_cmps_admin over to the site again and it works.
E-Dog
11-24-2006, 05:58 PM
I tried that didnt work for me
djnth
12-28-2006, 04:49 AM
I'm having the same problem as Agiacosa but unfortunately I don't know how this problem was resolved.
I just upgraded to vBulletin 3.6 and vBadvanced 2.2.1 and now I get this error. I don't want to have to uninstall vba and reinstall because I have lots of custom pages and modules I don't want deleted.
Can anyone help? Thanks!!
Brian
12-28-2006, 01:12 PM
It seems to be working fine for me, so I'm assuming you were able to figure out the problem?
djnth
12-28-2006, 02:25 PM
Yes. I did not edit and upload the cmps_index.php file.
galey801
03-20-2007, 08:22 AM
Folks I am having the exact same problem as boo151.
I get the following errors when I load the vbacmps_index.php (renamed to index.php) file:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/vba_cmps_include_top.php on line 37
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /includes/vba_cmps_include_top.php on line 37
Fatal error: Cannot use string offset as an array in /home/di/dir/dirtbikeworld.net/public/www/testing/forum/includes/vba_cmps_include_bottom.php on line 296
and these errors when I try to access the vbacmps settings in admincp:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /techonly/vba_cmps_admin.php on line 196
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /techonly/vba_cmps_admin.php on line 196
Interestingly line 37 in vba_cmps_include_top.php and line 196 in vba_cmps_admin.php are both the same.
$portal_options = array_merge($cmps_options['adv_portal_main'], $cmps_options['adv_global']);
No matter what I do I cannot resolve the issue.
It started after upgrading from vb3.5.4 to 3.6.5 and upgrading VBACMPS from 2.0 to the latest 2.2.1 (vb3.6)
galey801
03-20-2007, 08:37 AM
Tried again with a full un-install and then re-install and everything now works but I have lost my customised pages and modules.
I should have mentioned before that I am using a testing site that replicates exactly my live environment before upgrading vb and vba on the live site. I would like to not have to remove and reinstall vba if possible when I do the live upgrade or if I have to is there any way to backup and restore the customised modules and pages?
Brian
03-20-2007, 09:52 AM
galey801 - You should not receive that error if you uploaded all of the new files for v2.2.1 and ran the upgrade script afterwards.
Your modules and pages can be backed up by making backups of your 'adv_pages' and 'adv_modules' tables.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.