• Resolved rweil55

    (@rweil55)


    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 string

    I am not sure why $attributes == empty, but the above code removed he warnings.

    Roy

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Illegal string offset ‘class’ 302, Invalid argument supplied for foreach() 316,’ is closed to new replies.