• Resolved jamminjames

    (@jamminjames)


    I’m trying to use Category Icons in Suffusion, but there’s a typo in Suffusion’s functions.php that is preventing it from working.

    On line 956, it said:
    else {
    $cat_str =

    … without finishing the line with quotes and something in them, and a semicolon, and no } to close the statement.

    This caused a parse error, and the site wouldn’t do anything.

    So, I completed the line like so:

    else {
    $cat_str = ”;
    }

    However, the If statement says the same thing, so nothing is accomplished. Anyone know what should go there?

    Also, the next line started

    else

    without the { … so I added that. So, now that whole section, starting from the “if” statement at 953 reads like so, a temporary fix:

    if (count($cat_args) == 0) {
    $cat_str = ”;
    }
    else {
    $cat_str = ”;
    }
    if (function_exists(‘put_cat_icons’))
    put_cat_icons( wp_list_categories($cat_args.’&echo=0′));
    else {
    wp_list_categories($cat_args);
    }

    As you can see, the if/else statement needs fixing.

    Anybody know what I should do? Has Suffusion fixed this? Because I’ve seen nothing…

    Thank you!

Viewing 1 replies (of 1 total)
  • Thread Starter jamminjames

    (@jamminjames)

    Ok, apparently it was a corrupted file, I just downloaded Suffusion again and replaced that one file, and it seems to be working.

Viewing 1 replies (of 1 total)
  • The topic ‘Typo in Suffusion functions.php – how to fix?’ is closed to new replies.