WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Category Excluder
Undefined variable on 404 pages (2 posts)

  1. bolivares
    Member
    Posted 1 year ago #

    Anytime I go to a non existing page on my WordPress I get some Undefined variable errors caused by the plugin. Any ideas how to fix this?

    "Notice: Undefined variable: filter in /home1/coreyteg/public_html/bolivares/wp-content/plugins/advanced-category-excluder/advanced-category-excluder.php on line 446"

    http://www.coreytegeler.com/bolivares/asdas

    http://wordpress.org/extend/plugins/advanced-category-excluder/

  2. bolivares
    Member
    Posted 1 year ago #

    function ace_get_section()
    {
    	global $wp_query, $ace_targets;
    
    	if (is_array($ace_targets))
    	{
    		foreach ($ace_targets as $key=>$val)
    		{
    		  if (!empty($wp_query->$key) && $wp_query->$key == 1) $filter = $key;
    		}
    	}
    	return $filter;
    }

    return $filter; is line 446

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic