Title: Undefined variable $args
Last modified: April 18, 2022

---

# Undefined variable $args

 *  [comntdoulas](https://wordpress.org/support/users/comntdoulas/)
 * (@comntdoulas)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-args-2/)
 * I am getting the following error on my website:
    Warning: Undefined variable 
   $args in /home/dcvytn7gq6hh/coloradobirthservices.com/wp-content/themes/agama/
   framework/admin/kirki/packages/kirki-framework/compatibility/src/Kirki.php on
   line 175
 * I have found this line, but I have no idea what to do with it or how to fix it.
 * Lines 165 to 178:
 *     ```
       /**
       	 * Remove a section.
       	 *
       	 * @static
       	 * @access public
       	 * @since 3.0.17
       	 * @param string $id The ID for this section.
       	 */
       	public static function remove_section( $id = '' ) {
   
       		$section = new \Kirki\Section( $id, $args );
       		$section->remove();
   
       	}
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fundefined-variable-args-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [comntdoulas](https://wordpress.org/support/users/comntdoulas/)
 * (@comntdoulas)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-args-2/#post-15496334)
 * Does anyone have answers for me here?
 *  [Gal Baras](https://wordpress.org/support/users/galbaras/)
 * (@galbaras)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-args-2/#post-15499224)
 * Seems like a bug, albeit just a warning.
 *  Thread Starter [comntdoulas](https://wordpress.org/support/users/comntdoulas/)
 * (@comntdoulas)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-args-2/#post-15503569)
 * And what do I do about that?
 *  [Gal Baras](https://wordpress.org/support/users/galbaras/)
 * (@galbaras)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-args-2/#post-15504621)
 * For now, ignore it. The plugin authors should address it, though.
 * Or, if your comfortable hacking the plugin code, replace `$args` with `''` and
   see what happens.
 *  Thread Starter [comntdoulas](https://wordpress.org/support/users/comntdoulas/)
 * (@comntdoulas)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-args-2/#post-15511370)
 * Thanks! That worked!
 *  [Gal Baras](https://wordpress.org/support/users/galbaras/)
 * (@galbaras)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-args-2/#post-15512143)
 * So now, we wait for the official release.

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

The topic ‘Undefined variable $args’ is closed to new replies.

 * ![](https://ps.w.org/kirki/assets/icon-256x256.jpg?rev=3518366)
 * [Kirki – Freeform Page Builder, Website Builder & Customizer](https://wordpress.org/plugins/kirki/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/kirki/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/kirki/)
 * [Active Topics](https://wordpress.org/support/plugin/kirki/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/kirki/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/kirki/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Gal Baras](https://wordpress.org/support/users/galbaras/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-args-2/#post-15512143)
 * Status: not resolved