PDA


View Full Version : Invalid argument supplied for foreach() in /admincp/vba_cmps_admin.php on line 764


jj jacobi
06-21-2005, 07:48 PM
When I edit almost any 2.0 module in the admincp CMPS area, I get the following warning:
Invalid argument supplied for foreach()
in /admincp/vba_cmps_admin.php
on line 764
I don't see this warning when I edit the search module... not sure if that is a red herring tho.

First - a little information about my development vbulletin environment where I'm debugging/updating to the latest versions of vbulletin and cmps.

1) Fresh copy of vbulletin 3.0.7
2) upgraded my database from 3.0.3 to 3.0.7 -- everything went smoothly
3) Fresh copy of CMPS 2.0 (on June 15 2005), and integrated into 3.0.7
4) upgraded my database from CMPS 1.0 to 2.0 -- no error messages
5) started testing

During testing, I saw the above warning in the admin area of "edit module" so I then reinstalled the database changes for CMPS 2.0 to see if it would cause the problem to go away. It did not.

I followed the advice given for a similar error that was found around line 600ish -- but that did not fix the problem either.

Any advice would be greatly appreciated while I continue to look into the problem. :D

Thanks,
--jj

Brian
06-21-2005, 08:19 PM
Try editing your 'Default / Homepage' page and save it.

jj jacobi
06-21-2005, 08:40 PM
Only editing my default home page, and saving it, didn't fix the problem -- but I edited and saved all of my custom pages and that did fix the problem.

I had 4 custom pages created with the original vBadvanced CMPS -- each of those seemed to work once I upgraded. I made no changes when editing and saving each one -- but doing this action caused the error messages to go away when editing modules in the admincp.

Thanks so much for the pointer,
--jj