Title: Undefined variable functions.php
Last modified: September 1, 2016

---

# Undefined variable functions.php

 *  [simon2902](https://wordpress.org/support/users/simon2902/)
 * (@simon2902)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/undefined-variable-functionsphp/)
 * Hi
 * I get the following message on my site: Notice: Undefined variable: zerif_lite_sidebars
   in /home3/thougjk5/public_html/wp-content/themes/zeriflite_child/functions.php
   on line 12
 * code:
 *     ```
       <?php
       add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
       function theme_enqueue_styles() {
           wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
   
       }
       add_theme_support('custom-background', apply_filters('zerif_custom_background_args', array(
               'default-color' => 'ffffff',
               'default-image' => get_stylesheet_directory_uri() . "/images/khiva3.jpg",
           )));
   
       	if ( empty ( $active_widgets[ $zerif_lite_sidebars['sidebar-ourfocus'] ] ) ):
   
       		$zerif_lite_counter = 1;
       ```
   
 * The message appeared after I changed WP DEBUG to true in wp-config.php.
 * Any help would be be appreciated.
 * Thanks
    Simon

Viewing 1 replies (of 1 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/undefined-variable-functionsphp/#post-7516242)
 * I recommend asking at [https://wordpress.org/support/theme/zerif-lite](https://wordpress.org/support/theme/zerif-lite)
   so the theme’s developers and support community can help you with this.

Viewing 1 replies (of 1 total)

The topic ‘Undefined variable functions.php’ is closed to new replies.

## Tags

 * [undefined variable](https://wordpress.org/support/topic-tag/undefined-variable/)
 * [zerif-lite](https://wordpress.org/support/topic-tag/zerif-lite/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/undefined-variable-functionsphp/#post-7516242)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
