Title: Undefined variable in my theme
Last modified: August 19, 2016

---

# Undefined variable in my theme

 *  [baszer](https://wordpress.org/support/users/baszer/)
 * (@baszer)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/undefined-variable-in-my-theme/)
 * Hi,
 * i got this error back from the template tester:
 *     ```
       Undefined variable: attr in /home/chipbenn/public_html/themereview/wp-content/themes/acaronia/functions.php on line 384
       Undefined variable: listtag on line 280 of /wp-content/themes/acaronia/functions.php
       Undefined variable: i on line 306 of /wp-content/themes/acaronia/functions.php
       ```
   
 * I checked the code, but i cannot find what to change. Is there someone with a
   little more php experience who can tell me what to change?
 * [the function.php is found here](http://wordpress.pastebin.com/pF7pEaRU)
 * Thank you in advance.
    Bas

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/undefined-variable-in-my-theme/#post-1766932)
 * Try adding:
 *     ```
       /**
        * This will log all errors notices and warnings to a file called debug.log in
        * wp-content (if Apache does not have write permission, you may need to create
        * the file first and set the appropriate permissions (i.e. use 666) )
        */
       define('WP_DEBUG', true);
       define('WP_DEBUG_LOG', true);
       define('WP_DEBUG_DISPLAY', false);
       @ini_set('display_errors',0);
       ```
   
 * near the top if your wp-config.php file on your development install.
 *  Thread Starter [baszer](https://wordpress.org/support/users/baszer/)
 * (@baszer)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/undefined-variable-in-my-theme/#post-1767031)
 * thanks!
 * when i fixed the bugs, is it now bugfree?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Undefined variable in my theme’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [baszer](https://wordpress.org/support/users/baszer/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/undefined-variable-in-my-theme/#post-1767031)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
