title: error 500: PHP Fatal error: Cannot redeclare thim_widgets_inits()
body: <p>I'm getting a error500 on my page tolkeuddannelsen.dk. Through the error log I can se that its line 93-185 in my themes function.php that is causing the trouble. This is what my webhost says: 
   Backend fatal error: PHP Fatal error: Cannot redeclare thim_widgets_inits() (previously declared in /var/www/www.tolkeuddannelsen.dk/www/functions.php:93) in /var/www/www.tolkeuddannelsen.dk/www/wp-content/themes/elearningwp/functions.php on line 185\n, referer: <a href="http://tolkeuddannelsen.dk/" rel="nofollow noreferrer">http://tolkeuddannelsen.dk/</a> </p>
  
  <p>The code in these lines looks like this. </p>
  
  <pre><code>function thim_widgets_inits() {
      register_sidebar( array(
          'name'          =&gt; __( 'Sidebar 1', 'thim' ),
          'id'            =&gt; 'sidebar-1',
          'description'   =&gt; 'Left Sidebar',
          'before_widget' =&gt; '&lt;aside id="%1$s" class="widget %2$s"&gt;',
          'after_widget'  =&gt; '&lt;/aside&gt;',
          'before_title'  =&gt; '&lt;h4 class="widget-title"&gt;',
          'after_title'   =&gt; '&lt;/h4&gt;',
      ) );
  
  //  register_sidebar( array(
  //      'name'          =&gt; __( 'Sidebar 2', 'thim' ),
  //      'id'            =&gt; 'sidebar-2',
  //      'description'   =&gt; 'Right Sidebar',
  //      'before_widget' =&gt; '&lt;aside id="%1$s" class="widget %2$s"&gt;',
  //      'after_widget'  =&gt; '&lt;/aside&gt;',
  //      'before_title'  =&gt; '&lt;h4 class="widget-title"&gt;',
  //      'after_title'   =&gt; '&lt;/h4&gt;',
  //  ) );
  
      register_sidebar( array(
          'name'          =&gt; 'Top Drawer',
          'id'            =&gt; 'drawer_top',
          'description'   =&gt; __( 'Drawer Top', 'thim' ),
          'before_widget' =&gt; '&lt;aside id="%1$s" class="widget %2$s"&gt;',
          'after_widget'  =&gt; '&lt;/aside&gt;',
          'before_title'  =&gt; '&lt;h4 class="widget-title"&gt;',
          'after_title'   =&gt; '&lt;/h4&gt;',
      ) );
      register_sidebar( array(
          'name'          =&gt; __( 'Offcanvas', 'thim' ),
          'id'            =&gt; 'offcanvas_sidebar',
          'description'   =&gt; 'Drawer Right',
          'before_widget' =&gt; '&lt;aside id="%1$s" class="widget %2$s"&gt;',
          'after_widget'  =&gt; '&lt;/aside&gt;',
          'before_title'  =&gt; '&lt;h4 class="widget-title"&gt;',
          'after_title'   =&gt; '&lt;/h4&gt;',
      ) );
  
      register_sidebar( array(
          'name'          =&gt; 'Menu Right',
          'id'            =&gt; 'menu_right',
          'description'   =&gt; __( 'Menu Right', 'thim' ),
          'before_widget' =&gt; '&lt;li id="%1$s" class="widget %2$s"&gt;',
          'after_widget'  =&gt; '&lt;/li&gt;',
          'before_title'  =&gt; '&lt;h3&gt;',
          'after_title'   =&gt; '&lt;/h3&gt;',
      ) );
      register_sidebar( array(
          'name'          =&gt; 'Footer',
          'id'            =&gt; 'footer',
          'description'   =&gt; __( 'Footer Sidebar', 'thim' ),
          'before_widget' =&gt; '&lt;aside id="%1$s" class="widget %2$s footer_widget"&gt;',
          'after_widget'  =&gt; '&lt;/aside&gt;',
          'before_title'  =&gt; '&lt;h4 class="widget-title"&gt;',
          'after_title'   =&gt; '&lt;/h4&gt;',
      ) );
  
      register_sidebar( array(
          'name'          =&gt; 'Copyright',
          'id'            =&gt; 'copyright',
          'description'   =&gt; __( 'Copyright', 'thim' ),
          'before_widget' =&gt; '&lt;aside id="%1$s" class="widget %2$s"&gt;',
          'after_widget'  =&gt; '&lt;/aside&gt;',
          'before_title'  =&gt; '&lt;h4 class="widget-title"&gt;',
          'after_title'   =&gt; '&lt;/h4&gt;',
      ) );
      register_sidebar( array(
          'name'          =&gt; __( 'Sidebar Shop', 'thim' ),
          'id'            =&gt; 'shop',
          'description'   =&gt; 'Shop Sidebar',
          'before_widget' =&gt; '&lt;aside id="%1$s" class="widget %2$s"&gt;',
          'after_widget'  =&gt; '&lt;/aside&gt;',
          'before_title'  =&gt; '&lt;h4 class="widget-title"&gt;',
          'after_title'   =&gt; '&lt;/h4&gt;',
      ) );
      if ( class_exists( 'LearnPress' ) ) {
          register_sidebar( array(
              'name'          =&gt; 'Top Sidebar Courses',
              'id'            =&gt; 'top_sidebar_courses',
              'description'   =&gt; __( 'Top Sidebar Courses', 'thim' ),
              'before_widget' =&gt; '',
              'after_widget'  =&gt; '',
              'before_title'  =&gt; '&lt;h3&gt;',
              'after_title'   =&gt; '&lt;/h3&gt;',
          ) );
  
          register_sidebar( array(
              'name'          =&gt; 'Sidebar Courses',
              'id'            =&gt; 'sidebar_courses',
              'description'   =&gt; __( 'Sidebar Courses', 'thim' ),
              'before_widget' =&gt; '&lt;aside id="%1$s" class="widget %2$s"&gt;',
              'after_widget'  =&gt; '&lt;/aside&gt;',
              'before_title'  =&gt; '&lt;h4 class="widget-title"&gt;',
              'after_title'   =&gt; '&lt;/h4&gt;',
          ) );
      }
  }
  </code></pre>
  
  <p>Can anyone help me fix this problem? Thanks! </p>