Keyword

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

  • Dmitry Korobov
  • Dmitry Korobov's Avatar Topic Author
  • Offline
  • New Member
More
4 years 9 months ago #174611 by Dmitry Korobov
How can i solve this error?

Warning: count(): Parameter must be an array or an object that implements Countable in C:\wamp64\www\templates\jf_taman\html\com_k2\portfolio\item.php on line 228
Call Stack
# Time Memory Function Location
1 0.0005 405360 {main}( ) ...\index.php:0
2 0.0588 1387112 Joomla\CMS\Application\SiteApplication->execute( ) ...\index.php:49
3 0.0588 1387112 Joomla\CMS\Application\SiteApplication->doExecute( ) ...\CMSApplication.php:196
4 0.1869 2812584 Joomla\CMS\Application\SiteApplication->dispatch( ) ...\SiteApplication.php:233
5 0.1875 2837296 Joomla\CMS\Component\ComponentHelper::renderComponent( ) ...\SiteApplication.php:194
6 0.1898 2840536 Joomla\CMS\Component\ComponentHelper::executeComponent( ) ...\ComponentHelper.php:377
7 0.1899 2857592 require_once( 'C:\wamp64\www\components\com_k2\k2.php' ) ...\ComponentHelper.php:402
8 0.1936 2954376 K2ControllerItem->execute( ) ...\k2.php:64
9 0.1936 2954376 K2ControllerItem->display( ) ...\BaseController.php:710
10 0.1991 2989840 K2ControllerItem->display( ) ...\item.php:78
11 0.1991 2989840 K2ControllerItem->display( ) ...\controller.php:19
12 0.1997 2993616 K2ViewItem->display( ) ...\BaseController.php:672
13 0.3967 4031720 K2ViewItem->display( ) ...\view.html.php:742
14 0.3967 4031720 K2ViewItem->loadTemplate( ) ...\HtmlView.php:230
15 0.3973 4056784 include( 'C:\wamp64\www\templates\jf_taman\html\com_k2\portfolio\item.php' ) ...\HtmlView.php:697
Attachments:

Please Log in or Create an account to join the conversation.

More
4 years 9 months ago #174612 by JoomlaWorks
You need to slightly update your K2 template overrides for PHP 7.

The issue has been discussed extensively here: www.joomlaworks.net/forum/k2-en/51050-warning-count-parameter-must-be-an-array-or-an-object-that-implements

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum