WP Framework Forums » Troubleshooting

semantic-classes.php Bug

(2 posts)
  1. msykes

    I came across this using v0.2.4, but the code appears to persist in the svn repository.

    In the file semantic-classes.php, in the function semantic_comments, there is the following:

    $classes = get_comment_type();

    This generates the following error for me: [] operator not supported for strings (line 334, which is actually a couple lines later), and causes all comments to fail to display. This is a big enough bug I can only assume some particular configuration of the PHP at Pair.com results in this and it is not commonly observed.

    Changing the line in question to...

    $classes[] = get_comment_type();

    ...appears to solve the issue, though my PHP skills are not such that I can really be sure I haven't introduced some unintended "feature" in the mix.

    Posted 2 days ago #
  2. ptahdunbar
    Framework Overlord

    Yeah, that's a bug. I just fixed it and updated the download links. Thanks.

    Posted 2 days ago #

RSS feed for this topic


You must log in to post.