title: Wordpress - Notice: Use of undefined constant Redux_TEXT_DOMAIN - assumed 'Redux_TEXT_DOMAIN'
body: <p>I am building my first Wordpress site, I just downloaded and installed v3.9.1. I bought a theme (rustik3) and I am trying to install it, but I am running into these errors produced by WP_DEBUG:</p>
  
  <pre><code>Notice: Use of undefined constant Redux_TEXT_DOMAIN - assumed 'Redux_TEXT_DOMAIN' in /var/www/wp-content/themes/rustik3/admin/options.php on line 501
  
  Notice: Use of undefined constant Redux_TEXT_DOMAIN - assumed 'Redux_TEXT_DOMAIN' in /var/www/wp-content/themes/rustik3/admin/options.php on line 502
  
  Notice: Use of undefined constant Redux_TEXT_DOMAIN - assumed 'Redux_TEXT_DOMAIN' in /var/www/wp-content/themes/rustik3/admin/options.php on line 503
  
  Notice: Undefined variable: item_info in /var/www/wp-content/themes/rustik3/admin/theme-functions.php on line 23
  </code></pre>
  
  <p>I have done some googling, and I'm starting to think that the last Wordpress update made it so that the Redux Framework is deprecated and cannot be used. This is just a hunch though. As of right now, the theme installs, but it shows up as completely blank - either when I go to <code>http://localhost</code> or when I am trying to customize it in the Wordpress UI. I haven't looked into the last part of the error messages log (line 23 error)...but it is just an undefined variable so I might be able to tackle that one myself. Any ideas?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>This is what the chunk of code looks like in <code>options.php</code>:</p>
  
  <pre><code>array(
              'id' =&gt; 'google_webfonts',
              'type' =&gt; 'google_webfonts',
              'title' =&gt; __('Enable Google Webfonts', Redux_TEXT_DOMAIN), 
              'sub_desc' =&gt; __('Pick from over 600 Google Webfonts to use on the site. Then select below which elements you want to apply it to.', Redux_TEXT_DOMAIN),
                  'desc' =&gt; __('', Redux_TEXT_DOMAIN)
        ),
  </code></pre>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I did a text search through all of the wordpress files for <code>Redux_TEXT_DOMAIN</code> and the only spot it appears is in the above chunk of code...</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>This code is what loads the text domain in the theme I have...I am not familiar with what a text domain is - but this might be relevant:</p>
  
  <pre><code>public function load_textdomain() {
          if ( isset( $this-&gt;textdomain_loaded ) )
              return $this-&gt;textdomain_loaded;
  
          $textdomain = $this-&gt;get('TextDomain');
          if ( ! $textdomain ) {
              $this-&gt;textdomain_loaded = false;
              return false;
          }
  
          if ( is_textdomain_loaded( $textdomain ) ) {
              $this-&gt;textdomain_loaded = true;
              return true;
          }
  
          $path = $this-&gt;get_stylesheet_directory();
          if ( $domainpath = $this-&gt;get('DomainPath') )
              $path .= $domainpath;
          else
              $path .= '/languages';
  
          $this-&gt;textdomain_loaded = load_theme_textdomain( $textdomain, $path );
          return $this-&gt;textdomain_loaded;
      }
  </code></pre>
  
  <p>Is there something wrong with the above code?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Thanks to the below answer - I can now see the theme (it isn't showing up as a blank page) - but I am still getting the same errors...and a few more:</p>
  
  <pre><code>Notice: Use of undefined constant Redux_TEXT_DOMAIN - assumed 'Redux_TEXT_DOMAIN' in /var/www/wp-content/themes/rustik3/admin/options.php on line 501
  
  Notice: Use of undefined constant Redux_TEXT_DOMAIN - assumed 'Redux_TEXT_DOMAIN' in /var/www/wp-content/themes/rustik3/admin/options.php on line 502
  
  Notice: Use of undefined constant Redux_TEXT_DOMAIN - assumed 'Redux_TEXT_DOMAIN' in /var/www/wp-content/themes/rustik3/admin/options.php on line 503
  
  Notice: Undefined index: rustik_body_img in /var/www/wp-content/themes/rustik3/admin/theme-functions.php on line 263
  
  Notice: Undefined index: rustik_custom_favicon in /var/www/wp-content/themes/rustik3/admin/theme-functions.php on line 210
  
  Notice: Undefined index: rustik_custom_css in /var/www/wp-content/themes/rustik3/admin/theme-functions.php on line 239
  
  Notice: Undefined index: rustik_google_analytics in /var/www/wp-content/themes/rustik3/admin/theme-functions.php on line 224
  </code></pre>
  
  <p>This is the only other place <code>$item_info</code> is set:</p>
  
  <pre><code>    $item_info = '&lt;div class="rustik-opts-section-desc"&gt;&lt;div style="float: left; margin-right: 20px;"&gt;&lt;img width="300px" alt="Current theme preview" src="'.get_option('home').'/wp-content/themes/rustik3/screenshot.png"&gt;&lt;/div&gt;&lt;div style="float: left;"&gt;';
      $item_info .= '&lt;p class="rustik-opts-item-data description item-uri"&gt;' . __('&lt;strong&gt;Theme URL:&lt;/strong&gt; ', Rustik_TEXT_DOMAIN) . '&lt;a href="' . $item_uri . '" target="_blank"&gt;' . $item_uri . '&lt;/a&gt;&lt;/p&gt;';
      $item_info .= '&lt;p class="rustik-opts-item-data description item-author"&gt;' . __('&lt;strong&gt;Author:&lt;/strong&gt; ', Rustik_TEXT_DOMAIN) . ($author_uri ? '&lt;a href="' . $author_uri . '" target="_blank"&gt;' . $author . '&lt;/a&gt;' : $author) . '&lt;/p&gt;';
      $item_info .= '&lt;p class="rustik-opts-item-data description item-version"&gt;' . __('&lt;strong&gt;Version:&lt;/strong&gt; ', Rustik_TEXT_DOMAIN) . $version . '&lt;/p&gt;';
      $item_info .= '&lt;p class="rustik-opts-item-data description item-description"&gt;' . $description . '&lt;/p&gt;';
      $item_info .= '&lt;p class="rustik-opts-item-data description item-tags"&gt;' . __('&lt;strong&gt;Tags:&lt;/strong&gt; ', Rustik_TEXT_DOMAIN) . implode(', ', $tags) . '&lt;/p&gt;';
      $item_info .= '&lt;/div&gt;&lt;/div&gt;';
  </code></pre>