Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: homeslice on November 02, 2004, 12:11:26 AM

Title: HELP! Manage boards error
Post by: homeslice on November 02, 2004, 12:11:26 AM
Board Discussion does not have a valid parent. Use the 'find and repair errors' function to fix this.

this is what I get when I open up the manage boards menu on the admin panel

and when I go to the find and repair errors screen it doesnt show it as an error at all so there's no way for me to fix it ???

WHAT DO I DO ?????

:-[
Title: Re: HELP! Manage boards error
Post by: [Unknown] on November 02, 2004, 12:15:13 AM
Did you modify any of the tables manually (for example, through phpMyAdmin)?

Do you have phpMyAdmin?

--> Administration and Functionality.

-[Unknown]
Title: Re: HELP! Manage boards error
Post by: homeslice on November 02, 2004, 12:33:04 AM
I didnt modify any tables, I added a category called discussion and than I added a forum trying to make it a child board, now I cant access the editting features at all ? is there a was a can default it back to the original stuff
Title: Re: HELP! Manage boards error
Post by: [Unknown] on November 02, 2004, 12:39:18 AM
Strange... it should be theoretically impossible to use the board management interface to cause this error.

Create a new file in Notepad (or similar, not Word or anything though) with the following contents:
<?php
include('SSI.php');

db_query("
   UPDATE 
{$db_prefix}boards
   SET ID_PARENT = 0"
__FILE____LINE__);

echo 
'Fixed, hopefully.';

?>


Save it as "quickfix.php" (note the quotation marks) and upload it to your server, in the same directory as SMF.  Then go to:

http://www.example.com/forum/quickfix.php

After you've used it, please delete the file (because it could theoretically be used again by someone other than yourself.)

Did that help?

-[Unknown]
Title: Re: HELP! Manage boards error
Post by: homeslice on November 02, 2004, 12:42:34 AM
explain what u want me to do, I am confused
Title: Re: HELP! Manage boards error
Post by: [Unknown] on November 02, 2004, 12:59:57 AM
I posted some PHP code you can use to fix your problems temporarily and make your forum work properly again.

All you need to do is copy the code I posted, put it in a file, upload that file, and access the file.  As I stated in my post.

Which part is causing you confusion?

-[Unknown]
Title: Re: HELP! Manage boards error
Post by: homeslice on November 02, 2004, 01:05:48 AM
Ok, thanks, I'll try, sorry I sound so stupid
Title: Re: HELP! Manage boards error
Post by: [Unknown] on November 02, 2004, 01:10:48 AM
I've never met a single person in my life I would consider stupid, and that's including you.

I mean, come on, you're using SMF - that's a stroke of brilliance there :P!  I'm kidding, I'm kidding....

-[Unknown]
Title: Re: HELP! Manage boards error
Post by: homeslice on November 02, 2004, 01:24:33 AM
in the same directory as SMF ? Where should I upload it to exactly (not sure)

in the cgi-bin ? attachment folder ?
Title: Re: HELP! Manage boards error
Post by: [Unknown] on November 02, 2004, 01:31:42 AM
Same directory as SMF.  Meaning, not in attachments or cgi-bin... just in the same place those are, and SSI.php is, and index.php is, etc.

-[Unknown]
Title: Re: HELP! Manage boards error
Post by: homeslice on November 02, 2004, 01:36:19 AM
Ok, I did it, and went to the correct address where it said hopefully fixed, but than I went back to the admin panel and went to the manage boards to see if it works and I still get the error, hey unknown, contact me right now on AIM please
Title: Re: HELP! Manage boards error
Post by: homeslice on November 02, 2004, 02:08:07 AM
AOL Messenger: SliceofTSM@aol.com

Title: Re: HELP! Manage boards error
Post by: [Unknown] on November 02, 2004, 02:30:19 AM
Really.  Try it with these contents then:

<?php
include('SSI.php');

db_query("
   UPDATE 
{$db_prefix}boards
   SET ID_PARENT = 0, childLevel = 0"
__FILE____LINE__);

echo 
'Fixed, hopefully.';

?>


-[Unknown]
Title: Re: HELP! Manage boards error
Post by: homeslice on November 02, 2004, 02:52:59 AM
Thanks, it works now, I dont know how you did it but thanks alot! You have good help here at the Simple Machines site,

Much appreciation

1
Title: Re: HELP! Manage boards error
Post by: sharks on August 01, 2007, 01:59:38 PM
Thanks for this great piece of work and advice, [Unknown] :D Much appreciated.

cheers,
sharks
Title: Re: HELP! Manage boards error
Post by: syndicate on April 16, 2008, 01:14:07 AM
hey man, Thanks SO MUCH!! really easy instructions to follow and it works, thanks a lot
Title: Re: HELP! Manage boards error
Post by: cfriskme on March 06, 2009, 12:44:41 AM
You are the man!!!...It fixed my error you are the man!!! ;D
Title: Re: HELP! Manage boards error
Post by: BJE on November 13, 2010, 05:03:21 PM
I'll say that again...You are the man!  thank you!