register_sidebar function problem

It seems like, you haven’t provide any id to your sidebar which cause problem to generate unique id for each sidebar from above code. So, will you replace your code with these lines. Hope, this will hep to figure our your problem. You can found a good solution for similar to your problem. (updated)

public static function init(){
        //go through each sidebar and register it
        $sidebars = sidebar_generator::get_sidebars();
        //$sidebars = $this->get_sidebars();
        if(is_array($sidebars)){
            foreach($sidebars as $key => $sidebar){
                $sidebar_class = sidebar_generator::name_to_class($sidebar);
                register_sidebar(array(
                                        'id' => $key,
                    'name'=>$sidebar,
                    'before_widget' => '<div id="%1$s" class="widget %2$s">',
                    'after_widget' => '</div>',
                    'before_title' => '<h4 class="sb_title">',
                    'after_title' => '</h4>',
                    ));
                }
            }
        }