• Resolved wingpeople

    (@wingpeople)


    I just upgraded to 2.1, and now have this error in my sidebar:

    Fatal error: [] operator not supported for strings in /home/content/w/i/n/wingerco/html/FreeBlog/wp-includes/classes.php on line 402

    The error is displayed just below the “Categories” heading. Here is a snippet from my sidebar.php:

    <h2><?php _e(‘Categories’); ?></h2>
    <ul id=is_link>

    <?php wp_list_cats(0, ‘All’, ‘name’, ‘asc’, ”, 1, 0, 1, 0, 1, 1, 0,”,”,”,1) ?>

    None of the information that usually appears below “Categories” displays in the sidebar.

    As part of the upgrade, I deleted the old version of the folder wp-includes from the server, and then copied the new version from the unzipped installation files.

    Can anyone help me straighten this out?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    <?php wp_list_cats(0, 'All', 'name', 'asc', '', 1, 0, 1, 0, 1, 1, 0,'','','',1) ?>

    That’s not a valid way to call wp_list_cats. It takes a query string argument, not a list of parameters like that.

    You might be trying to call list_cats instead of wp_list_cats. Remove the wp_, see if that works.

    Alternatively, change the call to use the new wp_list_categories function.

    Thread Starter wingpeople

    (@wingpeople)

    Thanks! The old call worked in the previous version of WordPress that I was using, but that was apparently by accident. ??

    Things are working well again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error: “operator not supported for strings…”’ is closed to new replies.