( ! ) 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.0008448312{main}( ).../index.php:0
20.0008448664Application->main( ).../index.php:261
30.0018522608handle( $uri = '/c/beloreck/hobbi_i_otdih' ).../index.php:253
40.0019543032dispatch( ).../index.php:253
50.0023563496callActionMethod( $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' => 'beloreck', 'name' => 'hobbi_i_otdih'] ).../index.php:253
60.0023564240CategoryController->listAction( 'beloreck', 'hobbi_i_otdih' ).../index.php:253
70.05241616448CategoryController::getPhotosByPosts( $postList = [0 => ['id_post' => 1089, 'title_post' => 'Учебник - самоучитель "Новая стенография"', 'category_post' => 80, 'cat_patch' => '73W80W', 'text_post' => 'НОВАЯ СТЕНОГРАФИЯ\r\nЯ, Пашков Анатолий Иванович, автор учебника «НОВАЯ СТЕНОГРАФИЯ». Мой учебник учит всех от школьника до пенсионера писать 80 слов в минуту, то есть писать со скоростью разговорной речи. Учебник написан на основе стенографических знаков системы ГЕСС (Государств'..., 'date_post' => '2023-02-14 17:19:48', 'price_post' => '850', 'city_post' => '6671', 'phone_post' => NULL, 'email_post' => NULL, 'web_post' => NULL, 'name_post' => NULL, 'url_post' => 'uchebnik-samouchitel-novaya-stenografiya', 'totall_view' => 458, 'day_view' => NULL, 'vip_post' => NULL, 'select_post' => NULL, 'user_post' => 366, 'contact_post' => NULL, 'reg_post' => NULL, 'hash_post' => NULL, 'active_post' => 1, 'city_name' => 'Белорецк']] ).../CategoryController.php:47