Support » Plugin: WP-Cirrus » PHP Warning: wp-cirrus.php:368 – Undefined index: args

Viewing 3 replies - 1 through 3 (of 3 total)
  • Replacing line 368 with

    $options['args'] = (isset($options['args']) ? $options['args'] : '');
        if ( $options['args'] == '') {
            echo wp_tag_cloud($options['args'] = $options['args'] . "&taxonomy=". $options['mode'] ."&number=" . $options['number'] . "&orderby=" . $options['orderBy'] . "&order=" . $options['sortOrder'] . "&smallest=" . $options['smallest']  . "&largest=" . $options['biggest']);
        }

    seems to remove the warning.

    I don’t know why the author wright: $options[‘args’] = $options[‘args’] . “…. this make no sens? should it be: $args = $options[‘args’]….
    there are some if above, code shoudle be:

    $options['args'] = (isset($options['args']) ? $options['args'] : 'unit=pt');
    if($options['mode'] == 'both'){
    	echo wp_tag_cloud($options['args']. "&taxonomy=post_tag&number=" . $options['number'] . "&orderby=" . $options['orderBy'] . "&order=" . $options['sortOrder'] . "&smallest=" . $options['smallest']  . "&largest=" . $options['biggest']);
    	echo " " . wp_tag_cloud($options['args']. "&taxonomy=category&number=" . $options['number'] . "&orderby=" . $options['orderBy'] . "&order=" . $options['sortOrder'] . "&smallest=" . $options['smallest']  . "&largest=" . $options['biggest']);
    } else if($options['mode'] == 'pages'){
    	echo wp_list_pages("echo=0&title_li=");
    } else {
    	if ( $options['args'] == '') {
        	echo wp_tag_cloud($options['args']. "&taxonomy=". $options['mode'] ."&number=" . $options['number'] . "&orderby=" . $options['orderBy'] . "&order=" . $options['sortOrder'] . "&smallest=" . $options['smallest']  . "&largest=" . $options['biggest']);
    	}
    }

    http://neroxing.x10.mx/2013/07/21/wp-cirrus-args-error/

    Plugin Author ga_ap

    (@ga_ap)

    Thanks, we’ll look into this. Please post such comments to our website next time. We don’t monitor these forums regularly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Warning: wp-cirrus.php:368 – Undefined index: args’ is closed to new replies.