Many alerts in logs
-
Hello,
Using your plugin, I have tons of Notice alerts in my logs.
Maybe a good idea to correct your source code ?[STDERR] PHP Notice: Trying to access array offset on value of type bool in /public/wp-content/plugins/open-graphite/_open_graphite.php on line 458 [STDERR] PHP Notice: Trying to access array offset on value of type bool in /public/wp-content/plugins/open-graphite/_open_graphite.php on line 459 [STDERR] PHP Notice: Trying to access array offset on value of type bool in /public/wp-content/plugins/open-graphite/_open_graphite.php on line 460 [STDERR] PHP Notice: Trying to access array offset on value of type bool in /public/wp-content/plugins/open-graphite/_open_graphite.php on line 549 [STDERR] PHP Notice: Trying to access array offset on value of type bool in /public/wp-content/plugins/open-graphite/_open_graphite.php on line 550 [STDERR] PHP Notice: Trying to access array offset on value of type bool in /public/wp-content/plugins/open-graphite/_open_graphite.php on line 551
You could solve this adding
?? ''
behind your array valuesLike this
$full_image = wp_get_attachment_image_src( $image_ID, $size = 'full', $icon = false); $full_image_URL = $full_image[0] ?? ''; $full_image_width = $full_image[1] ?? ''; $full_image_height = $full_image[2] ?? '';
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Many alerts in logs’ is closed to new replies.