( ! ) Fatal error: Uncaught Error: Call to a member function count() on array in /var/www/bashtop/apps/controllers/CategoryController.php on line 67
( ! ) Error: Call to a member function count() on array in /var/www/bashtop/apps/controllers/CategoryController.php on line 67
Call Stack
#TimeMemoryFunctionLocation
10.0029448328{main}( ).../index.php:0
20.0030448680Application->main( ).../index.php:261
30.0044522624handle( $uri = '/c/bakali/dlya_doma_i_dachi' ).../index.php:253
40.0048543048dispatch( ).../index.php:253
50.0054563512callActionMethod( $handler = class CategoryController { protected $container = class Phalcon\Di\Di { protected $services = [...]; protected $sharedInstances = [...]; protected $eventsManager = NULL }; public $view = class Phalcon\Mvc\View { protected $container = class Phalcon\Di\Di { ... }; protected $actionName = NULL; protected $activeRenderPaths = NULL; protected $basePath = ''; protected $content = NULL; protected $controllerName = NULL; protected $currentRenderLevel = 0; protected $disabled = TRUE; protected $disabledLevels = [...]; protected $engines = FALSE; protected $eventsManager = NULL; protected $layout = NULL; protected $layoutsDir = ''; protected $mainView = 'index'; protected $options = [...]; protected $params = [...]; protected $pickView = NULL; protected $partialsDir = ''; protected $registeredEngines = [...]; protected $renderLevel = 5; protected $templatesAfter = [...]; protected $templatesBefore = [...]; protected $viewsDirs = '../apps/views/'; protected $viewParams = [...] }; public $dispatcher = class Phalcon\Mvc\Dispatcher { protected $container = class Phalcon\Di\Di { ... }; protected $activeHandler = ...; protected $activeMethodMap = [...]; protected $actionName = 'list'; protected $actionSuffix = 'Action'; protected $camelCaseMap = [...]; protected $defaultAction = 'index'; protected $defaultNamespace = ''; protected $defaultHandler = 'index'; protected $handlerHashes = [...]; protected $handlerName = 'category'; protected $handlerSuffix = 'Controller'; protected $eventsManager = NULL; protected $finished = TRUE; protected $forwarded = FALSE; protected $isControllerInitialize = FALSE; protected $lastHandler = ...; protected $modelBinder = NULL; protected $modelBinding = FALSE; protected $moduleName = ''; protected $namespaceName = ''; protected $params = [...]; protected $previousActionName = ''; protected $previousHandlerName = ''; protected $previousNamespaceName = ''; protected $returnedValue = NULL }; public $request = class Phalcon\Http\Request { protected $container = class Phalcon\Di\Di { ... }; private $filterService = NULL; private $httpMethodParameterOverride = FALSE; private $queryFilters = [...]; private $patchCache = NULL; private $putCache = NULL; private $rawBody = ''; private $strictHostCheck = FALSE } }, $actionMethod = 'listAction', $params = ['city' => 'bakali', 'name' => 'dlya_doma_i_dachi'] ).../index.php:253
60.0054564256CategoryController->listAction( 'bakali', 'dlya_doma_i_dachi' ).../index.php:253
70.04511615096CategoryController::getPhotosByPosts( $postList = [0 => ['id_post' => 1563, 'title_post' => 'Комнатные растения', 'category_post' => 19, 'cat_patch' => '2W19W', 'text_post' => 'Доставим до любого города комнатные и садовые растения. У нас большой ассортимент декоративно-лиственных растений, в том числе и коллекционных. А также красивоцветущие растения - популярные и новинки цветочного рынка.\r\n\r\nУфа и Нефтекамск - самовывоз или доставка, в другие города о'..., 'date_post' => '2023-08-17 17:54:23', 'price_post' => '100', 'city_post' => '6669', 'phone_post' => NULL, 'email_post' => NULL, 'web_post' => NULL, 'name_post' => NULL, 'url_post' => 'komnatnye-rasteniya', 'totall_view' => 281, 'day_view' => NULL, 'vip_post' => NULL, 'select_post' => NULL, 'user_post' => 497, 'contact_post' => NULL, 'reg_post' => NULL, 'hash_post' => NULL, 'active_post' => 1, 'city_name' => 'Бакалы']] ).../CategoryController.php:47