We are having errors displayed on news pages on our site. We have tried to server configuration to solve the problem but no impact. Here is a samples:

Warning: count(): Parameter must be an array or an object that implements Countable in ...../templates/gk_news/html/com_k2/templates/default/category.php on line 196

Could you please help solve this problem?

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/modules/mod_news_pro_gk5/tmpl/default.php on line 135

    Hi Biznews

    These are warnings and not errors , they has no effects on your website functionality , if you want to hide them then set from global configuration -> Server tab error reporting to none.

    Regards

    Okay. I will try and get back if it is not solved.

    But is there a way to resolve the warning?

      Biznews But is there a way to resolve the warning?

      Try to decrease your php version to a lower one and see if they can be solved - most probably they should be updated to be compatible to latest php release

      Hi

      PHP is on 5.* I think that is currently the lowest version possible.

        Biznews Hi. I agree with Pavit. This warning message has no effect on functionality. It shows because as I'm guessing You have one of the values for leading, primary, secondary or links articles set to 0, so no table with article information are provided. If You do not want to disable showing errors You can also change those settings in configuration to show at least 1 or edit mentioned files:

        /templates/gk_news/html/com_k2/templates/default/category.php on line 196
        /modules/mod_news_pro_gk5/tmpl/default.php

        and place a "@" sign in front of them.

        We still have issues. Please help us get the template working again.

        This is what we get. Please help.



          Hi Biznews

          Please share your hosting cpanel access , we will have a look at your configuration.

          I entered the CP information above. Thanks.

          Thanks.

            Biznews I entered the CP information above.

            Please correct your super user account , login to your backend doesn't works , we will need to check also your backend settings

              pavit Hi Pavit, the information i provided works. What does not work for you, the path, or the password?

              Write a Reply...
              You need to Login to view replies.