Notice: Undefined index: snippet_i
-
Getting this error on frontend
Notice: Undefined index: snippet_1 in ~/wp-content/plugins/header-footer/plugin.php on line 366 Notice: Undefined index: snippet_2 in ~/wp-content/plugins/header-footer/plugin.php on line 366 Notice: Undefined index: snippet_3 in ~/wp-content/plugins/header-footer/plugin.php on line 366 Notice: Undefined index: snippet_4 in ~/wp-content/plugins/header-footer/plugin.php on line 366 Notice: Undefined index: snippet_5 in ~/wp-content/plugins/header-footer/plugin.php on line 366
Looking at the code
$buffer = str_replace('[snippet_' . $i . ']', $hefo_options['snippet_' . $i], $buffer);
You could resolve it using “isset”.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Notice: Undefined index: snippet_i’ is closed to new replies.