Warning: count(): Parameter must be an array or an object that implements Counta

Home Forums Jevelin Theme Warning: count(): Parameter must be an array or an object that implements Counta

Home Forums Jevelin Theme Warning: count(): Parameter must be an array or an object that implements Counta

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    RESOLVED Posts
  • sujaselv
    Participant

    <b>Hi,</b>

     

    I am getting the below error in Blog post.

     

    <b>Warning</b>: count(): Parameter must be an array or an object that implements Countable in <b>/wp-content/themes/jevelin/single.php</b> on line <b>152</b>

     

     

    Hi @sujaselv

     

    Sorry to hear of the problem you are having.

     

    Would you mind if i log in to your site and do some troubleshooting? If this is ok then could you please share me your site log in details privately by adding them in the box having text “Click here to share private content. Only you and forum moderators will be able see it.”?

     

    Also could you please share me the page URL from your site where it is displaying so that i can help you?

     

    Best regards,
    Shufflehound team

    sujaselv
    Participant

    Can you please provide me the steps so I can do it myself.  I would prefer to do that first if possible.

    Solution for this topic

    Just edit the theme file /jevelin/single.php from Appearance -> Editor and change the below code on line number 152

     

    if( count($related_posts) > 0 ) :

     

    to the below code.

     

    if( $related_posts->have_posts() ) :

    sujaselv
    Participant

    thanks. working fine now.

    You are most welcome here 🙂

    The issue is resolved in the below latest version of theme so please update the theme as described here https://support.shufflehound.com/updating-theme/

     


    Please login to access this file

Viewing 7 posts - 1 through 7 (of 7 total)

Popular choice

Professional Developers At Your Fingertips!

If you need services beyond standard support, we've got your back!

Services we offer:

Demo setup
Advanced customization
Layout adjustment
Graphic work / visualizations
Custom coding
Full WordPress development and design

Services

What we can offer

  • Demo setup +

    If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.

  • Layout adjustment +

    We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.

  • Advanced customization +

    More complex styling changes, theme option modifications, and third-party integrations.

  • Custom coding +

    If you need something that's not included in the theme, we can code it for you.

  • Graphic work / visualizations +

    Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.

  • Full WordPress development and design +

    Full website builds, custom theme development, or plugin creation from scratch.

  • About pricing +

    We'll provide a clear quote based on what you need. No hidden fees.

Professional Developers At Your Fingertips!

Custom Work Form