PDA


View Full Version : HELP! Can't access Home Page in ADMIN


dons
11-27-2005, 07:29 AM
Hey Guys! I need some help here!

I added a test page in addition to the home page. I then decided to delete the page I added and then BOTH the new page and the HOME page disappeared! HELP!

The ERROR I get is Warning: Invalid argument supplied for foreach() in /admincp/vba_cmps_admin.php3 on line 1032

I checked that FORUMCACHE was not in the file per other notes here.

p.s. The Home page still functions and the ROW defining it is still in the TABLE but I don't see it selected when I EDIT PAGES so i can't modify it. THOUGHTS! This has me DEAD IN THE WATER>

Can someone send me the HOME PAGE row from the PAGES table from a working site...I want to cross check against my row.

dons
11-27-2005, 07:54 AM
OK, I fixed this on my own (hey guys where was all the help out there) but there still is a BUG in the code that causes this. I went into the install script to find out what the default install put in the home page row in the pages table and compared them to my table as it existed. In my DB, PARENTID had been set to 1 instead of 0 which is the default. This was caused somewhere along the line when I added a page and then deleted it. I suggest you all review that add/delete code to see if anything would cause this. I'm BACK ONLINE! Hope to hear something from someone someday!