• Resolved bobthedino

    (@bobthedino)


    For info: line 167 of related-posts.php was causing a warning:
    count(): Parameter must be an array or an object that implements Countable

    The fix was to change line 167 from:

    if ( count( $these_tags ) > 0 && count( $these_tags >= 2 ) ) {

    to:

    if ( count( $these_tags ) > 0 && count( $these_tags ) >= 2 ) {

Viewing 2 replies - 1 through 2 (of 2 total)
  • sorry, there is no line 167 in either
    wptouch/themes/foundation/default/related-posts.php
    or
    wptouch/themes/bauhaus/default/related-posts.php

    Thread Starter bobthedino

    (@bobthedino)

    Hi, hmmm OK, well the file I’m referring to is in:

    wp-content/wptouch-data/extensions/related-posts/related-posts.php

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bug in related-posts.php causing count() warning’ is closed to new replies.