• Resolved joestuart

    (@joestuart)


    Hi,

    I get this error when I have your plugin installed. When I turn off all my plugins and activate them one by one, it was your plugin that triggered this error.

    Warning: count(): Parameter must be an array or an object that implements Countable in …/wp-includes/post-template.php on line 319

    Any idea what this could be? I’m on WP 5.8.1

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Hardeep Asrani

    (@hardeepasrani)

    Hey @joestuart,

    I very much doubt that our plugin could be the one causing it as the issue seems to be coming from something else, our plugin doesn’t use that function.

    But coding is weird so never discount anything, would it be possible for you to reproduce this issue somewhere so we could check why that is happening?

    Thank you!

    mtech

    (@mtechoh)

    I’m having this same issue, but have narrowed it to any Gantry template and BA being enabled at the same time. Any ideas on what could be causing it or where to look to fix it?

    Thanks.

    I found the problem — or at least it’s working now. Don’t know if I broke something else, but it doesn’t appear so.

    Commenting out:

    if ( is_singular() && strpos( get_the_content(), ‘<!– wp:’ ) === false ) {
    return;
    }

    in class-blocks-animation.php fixes the problem I was having.

    Plugin Author Hardeep Asrani

    (@hardeepasrani)

    Hey,

    Which plugin are you referring to there as BA? Can you give us a link so we could try to reproduce it on our end? Thank you!

    Also, if you aren’t using Block Animations then that shouldn’t cause much.

    Block Animations is BA, which is what I do very much want to use. It’s related to the Gantry template engine, but commenting out the line above allowed everything to work properly. I don’t have a place to put a broken version of the site to test, but it did it with default Helium theme, so easy to reproduce.

    Plugin Author Hardeep Asrani

    (@hardeepasrani)

    Hey @mtechoh,

    Would it be possible for you to reproduce it here as we don’t have access to the Helium theme and also copy/paste the same page?: tastewp.com/

    This website allows you to create a test WordPress website instantly that will be up for 2 days.

    After you’re done, you can send me the details at [email protected] as posting it here would be against the forum guidelines.

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Parameter must be an array or an object that implements Countable’ is closed to new replies.