View Full Version : Problems with Site Navigation Module
Right above the last section Site Navigation Options are the following warnings, and site navigation is not working, none of the links i add are showing up:
Warning: Invalid argument supplied for foreach() in \includes\adminfunctions_vba_cmps.php on line 485
Warning: Invalid argument supplied for foreach() in \includes\adminfunctions_vba_cmps.php on line 494
Edit Pages Module has the following error at the top:
Warning: Invalid argument supplied for foreach() in \admincp\vba_cmps_admin.php on line 996
Add Page - All options, top of the page
Warning: Invalid argument supplied for foreach() in \admincp\vba_cmps_admin.php on line 1192
Quick Permissions Editor, top of the page
Warning: Invalid argument supplied for foreach() in \admincp\vba_cmps_admin.php on line 2064
Any suggestions?
ConqSoft
07-05-2005, 06:40 PM
http://www.vbadvanced.com/forum/showthread.php?t=8513&highlight=Invalid+argument+supplied+for+foreach%28%29
Thanks for the fast reply, but still having the warnings, they are just moved down a few lines.
Any other places to look?
Brian
07-05-2005, 07:31 PM
Try saving one of your pages in the admin cp so that the page cache will be updated and see if that takes care of the problem.
Try saving one of your pages in the admin cp so that the page cache will be updated and see if that takes care of the problem.
Can you explain a little more? I am not sure what you mean by save one of the pages in the admin control panel.
mholtum
07-06-2005, 12:28 AM
open one and without changing anything click save.
I've open and saved just about all the pages in the process of looking for the issue.
ConqSoft
07-06-2005, 12:53 AM
You may want to download the latest edition of CMPS 2 RC1 from the site again, and overwrite your old files, if it has been a while since you downloaded it.
im using 2.0 rc1 that i downloaded a few days ago. is it safe to uninstall and reinstall?
ConqSoft
07-06-2005, 01:21 AM
But the files have been updated with some fixes over time, so try downloading it and just overwriting your PHP files first. No need to uninstall/reinstall.
no, same thing. could it be a mysql value that is causing it?
I was just comparing my Site navigation Options to a new install and noticed that Pages to Exclude is blank on mine. and also under the Additional Pages section there is something extra on my site:
This setting has been customized in the following pages:
AR Forum Homepage this is in a drop down box.
If I goto Edit pages, there is nothing there, I tried to recreate one and give it an identifier of home, but i got an error saying:
You already have a Page with an identifier of 'home'. Please select a different identifier.
So, i gave it an identifer of home1. warning are gone and Site Navigation is functioning better. But, when i add an Additional Page named Forum, under Site Navigation there is a link labled "Default / Homepage" and when i click on it, then the Forums link appears below the "Default / Homepage" link.
redlabour
07-09-2005, 04:31 PM
Same Problem at me - Help ! (RC 2)
burley
08-08-2005, 04:38 PM
I too have the same error reports, but I only have them at 2 lines;
996
and
1192
There was 1 thing we found, at line 1192 there was the following;
foreach ($pages AS $apageid => $pageinfo)
Should this not just be $pageid?
We haven't find a solution jet.
cpmike
08-14-2005, 06:18 AM
Same problem here ?!
Brian
08-14-2005, 02:31 PM
Can you post the exact errors?
wobbly
09-21-2005, 05:33 PM
This is what Im getting after install in the default settings page in admincp
Warning: Invalid argument supplied for foreach() in /includes/adminfunctions_vba_cmps.php on line 486
Warning: Invalid argument supplied for foreach() in /includes/adminfunctions_vba_cmps.php on line 495
I am also getting an error in the /forums/cmps_index.php at the top of the page
Warning: str_repeat() [function.str-repeat]: Second argument has to be greater than or equal to 0. in /modules/navigation.php on line 115
and in my edit pages there is
Warning: Invalid argument supplied for foreach() in /admincp/vba_cmps_admin.php on line 1021
I am running 3.0.9 and have no hack or mods on except the new install of vbadvanced. vbadvanced_cmps_2_0_0_(vb_3_0_x)_
Any ideas at all?
Brian
09-21-2005, 05:46 PM
Sounds like you didn't upload all of the new files when you upgraded to 2.0.0 as I know that at least that last error is fixed, and the rest should be as well.
wobbly
09-21-2005, 05:52 PM
Ok I got rid of this error by entering a level and order on the nav menu items.
Warning: str_repeat() [function.str-repeat]: Second argument has to be greater than or equal to 0. in /modules/navigation.php on line 115
Any ideas on the others, i think it may be something to do with the style.
Brian
09-21-2005, 05:58 PM
Sounds like you didn't upload all of the new files when you upgraded to 2.0.0 as I know that at least that last error is fixed, and the rest should be as well.
.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.