No mode was set? Error when managing forums

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   No mode was set? Error when managing forums
kpopper
CZ Super Newbie
kpopper has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Apr 02, 2004
0.01 posts per day
Posts: 56
Points: 3,090
   
Whenever i try to edit some thing in Forums management, i always get this error: No mode was set



Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,440
   
Does it happen with everything you try to edit or just certain things? Mode is just like an op it is predifined either in a case or a function. Sounds to me like a global problem. Have you recently added anything? When did this start? Have a backup from before your last modifications?




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: No mode was set? Error when managing forums
kpopper
CZ Super Newbie
kpopper has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Apr 02, 2004
0.01 posts per day
Posts: 56
Points: 3,090
   
hi telli. It happens for everything. Whenever i try to edit anything in forums management, i get that error. I'm not sure when it started but i've added a few mods.

I think it would either be:
- sub category mod
- cash mod

i do not have a backup.



Back to top Reply with quote
#4   re: No mode was set? Error when managing forums
Lord_Chaos
CZ Newbie
Lord_Chaos has been a member for over 20 year's 20 Year Member
usa.gif texas.gif
Gender: Male
Website:
Status: Offline
Joined: Nov 19, 2004
0.00 posts per day
Posts: 1
Points: 450
  MSN Messenger 
Well I also am in the same boat with the "No Mode was set"

I was installing the sub catagory mod (version 200) from the the portedmods.com download section.

I have so far traced the line of code that generates this error message to admin_forums.php file and the sub categories hierarchy mod does make changes to this section. Here is the code to look for: (I have included the whole section of code. Look near the bottom for the "No Mode was set"

//
                        // Change order of categories in the DB
                        //
                        $move = intval($HTTP_GET_VARS['move']);
                        $cat_id = intval($HTTP_GET_VARS[POST_CAT_URL]);

                        //-- mod : categories hierarchy --------------------------------------------------------------------
//-- delete
//         $sql = "UPDATE " . CATEGORIES_TABLE . "
//            SET cat_order = cat_order + $move
//            WHERE cat_id = $cat_id";
//         if( !$result = $db->sql_query($sql) )
//         {
//            message_die(GENERAL_ERROR, "Couldn't change category order", "", __LINE__, __FILE__, $sql);
//         }
//
//         renumber_order('category');
//-- add
         // update the level order
         move_tree(POST_CAT_URL, $cat_id, $move);

         // get ids
         $main   = $tree['main'][ $tree['keys'][POST_CAT_URL . $cat_id] ];
         $cat_id = $tree['id'][ $tree['keys'][$main] ];
//-- fin mod : categories hierarchy ----------------------------------------------------------------
                        $show_index = TRUE;

                        break;

                case 'forum_sync':
                        sync('forum', intval($HTTP_GET_VARS[POST_CAT_URL]));
                        $show_index = TRUE;

                        break;

                default:
                        message_die(GENERAL_MESSAGE, $lang['No_mode']);
                        break;
        }

        if ($show_index != TRUE)
        {
                include('./page_footer_admin.'.$phpEx);
                exit;
        }
}

//
// Start page proper
//


I am a newbe at programing languages, but if I find a solution out on the web, I will post it here.

I have also been searching the phpbb sites since this is a ported mod to see if anyone has come up with a solution there, but no luck so far. Here is a link to thier forum thread on this mod:
[ Register or login to view links on this board. ]

Thanks


Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum