Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Error on blog

    • 6 years, 1 month ago maxime
      Participant

      Hi,

      I have this error

      Warning: count(): Parameter must be an array or an object that implements Countable in http://www.essexpertises.fr/wp-content/themes/specular/includes/view/blog/loop-timeline.php on line 50

      Would you tell me how to fix it?

      Regard

      • This topic was modified 6 years, 1 month ago by maxime.
    • 6 years, 1 month ago Mirela
      Participant

      Hello,

      When did this first started to happen? Did you perhaps installed any new plugins lately? Or activated any that has been inactive before theme update? Or did you add any code related to blog in your child theme functions file?
      This does not happen on our side so i need as much info as you can get.

      Please add some ftp credentials in your profile. So i can check the files.

      Best regards!

    • 6 years, 1 month ago maxime
      Participant

      Since today. I’ve updated the theme to 3.1 yesterday, i had a bug and you fix it, (it was some plugin which was not updated)
      But i didn’t install something new.

      Just i made some change :

      i made a change to have more text description on the staff.php
      i made a change into “comments.php” to translate “leave a message”
      i made a change into main.js (which have been change by codeless-main.js) to have the client carousel moving

    • 6 years, 1 month ago Mirela
      Participant

      Hello,

      I see. Please enable Appearance > Theme Editor menu in WordPress so i can access the files. Or send us some ftp credentials too. I need to check the files directly.

      Best regards!

    • 6 years, 1 month ago maxime
      Participant

      I put my ftp credential yesterday. So you have the control ;)

    • 6 years, 1 month ago Mirela
      Participant
      This reply has been marked as private.
    • 6 years, 1 month ago maxime
      Participant

      i think you just switch password and username

    • 6 years, 1 month ago maxime
      Participant
      This reply has been marked as private.
    • 6 years, 1 month ago Mirela
      Participant

      Hello,

      After all i didn’t need to edit anything in the files any way. I added excerpts to posts and the warning is gone. Please make sure to add excerpts too when creating a post.

      Let me know if it repeats itself.

      Best regards!

    • 6 years, 1 month ago maxime
      Participant

      Hello, the warning still here. What excerpts did you add?

      Thank you

    • 6 years, 1 month ago Mirela
      Participant

      Hello,

      The excerpts are chunk of text you add as short description for the post. You can make expert box visible by checking it in the Screen Options (top-right corner of screen).
      This removed the warning on my side so i thought it was fixed. Apparently not.

      Now i edited the line 50 in file includes/view/blog/loop-timeline.php:

      $tag_out = ''; $num=count($tags); $i=0; if($tags) foreach($tags as $tag): if(++$i === $num){$tag_out .= $tag->name;} else {$tag_out .= $tag->name.', ';}  endforeach;
                  

      To this:
      $tag_out = ''; if (is_array($tags)) $num=count($tags); $i=0; if($tags) foreach($tags as $tag): if(++$i === $num){$tag_out .= $tag->name;} else {$tag_out .= $tag->name.', ';} endforeach;

      I tested, it’s ok now. Please clear cache and try again.

      Best regards!

    • 6 years, 1 month ago maxime
      Participant

      ok it’s work now !! Thank you for for help

Viewing 11 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password