Illegal string offset ‘class’ 302, Invalid argument supplied for foreach() 316,
-
Getting the warning messages from menu_image version 2.7.0
Warning: Illegal string offset ‘class’ in /home/pillowan/www-eriepittsburghtrail/wp-content/plugins/menu-image/menu-image.php on line 302
Warning: Invalid argument supplied for foreach() in /home/pillowan/www-eriepittsburghtrail/wp-content/plugins/menu-image/menu-image.php on line 316
This us caused at line 277 by “$attributes_array = shortcode_parse_atts($attributes);”
shortcode_parse_atts returns a string on empty parameter.I added the work around just below line 277
if (! is_array($attributes_array))
$attributes_array = array(); // empty $attributes returns a stringI am not sure why $attributes == empty, but the above code removed he warnings.
Roy
- The topic ‘Illegal string offset ‘class’ 302, Invalid argument supplied for foreach() 316,’ is closed to new replies.