Раздел в разработке
( ! ) Fatal error: Uncaught TypeError: number_format(): Argument #1 ($num) must be of type float, string given in /var/www/bashtop/apps/views/category.phtml on line 71 ( ! ) TypeError: number_format(): Argument #1 ($num) must be of type float, string given in /var/www/bashtop/apps/views/category.phtml on line 71 Call Stack # Time Memory Function Location 1 0.0009 449432 {main}( ) .../index.php:0 2 0.0010 449784 Application->main( ) .../index.php:261 3 0.0020 523728 handle( $uri = '/list?page=7' ) .../index.php:253 4 0.0021 543696 dispatch( ) .../index.php:253 5 0.0026 564456 callActionMethod( $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 = class Phalcon\Filter\Filter { ... }; private $httpMethodParameterOverride = FALSE; private $queryFilters = [...]; private $patchCache = NULL; private $putCache = NULL; private $rawBody = ''; private $strictHostCheck = FALSE } }, $actionMethod = 'listAction', $params = ['name' => ''] ) .../index.php:253 6 0.0027 565184 CategoryController->listAction( '' ) .../index.php:253 7 0.0519 1698320 render( $path = 'category' ) .../CategoryController.php:59 8 0.0520 1716664 internalRender( $path = 'category', $params = ['title_post' => '', 'textSearch' => '', 'cityLinkBreadcrumbs' => 'category', 'postList' => [0 => class stdClass { ... }, 1 => class stdClass { ... }, 2 => class stdClass { ... }, 3 => class stdClass { ... }, 4 => class stdClass { ... }, 5 => class stdClass { ... }, 6 => class stdClass { ... }, 7 => class stdClass { ... }, 8 => class stdClass { ... }, 9 => class stdClass { ... }, 10 => class stdClass { ... }, 11 => class stdClass { ... }, 12 => class stdClass { ... }, 13 => class stdClass { ... }, 14 => class stdClass { ... }, 15 => class stdClass { ... }, 16 => class stdClass { ... }, 17 => class stdClass { ... }, 18 => class stdClass { ... }, 19 => class stdClass { ... }], 'subCategory' => [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...], 6 => [...], 7 => [...], 8 => [...]], 'breadcrumbs' => '<li>Объявления всей республики Башкортостан</li>', 'catsSearch' => '<select id="top_category" name="top_category">\n<option value="0">Любая категория</option><option value="1" style="font-weight: bold;">Транспорт</option>\n<option value="9"> Автомобили с пробегом</option>\n<option value="10"> Новые автомобили</option>\n<option value="11"> Автозапчасти и аксессуары</option>\n<option value="12"> Водный транспорт</option>\n<option value="13">&nbs'..., 'citySearch' => '<select id="city_list" name="city_list">\n\t<option value="0">Вся Республика</option>\n\t<option value="6715"> Уфа</option>\n\t<option value="6664">Агидель</option>\n\t<option value="6665">Акъяр</option>\n\t<option value="6666">Архангельское</option>\n\t<option value="6667">Аскарово</option>\n\t<option value="6668">Аскино</option>\n\t<option value="6669">Бакалы</option>\n\t<option value="6670">Белебей</option>\n\t<option value="6671">Белорецк</option>\n'..., 'paginatorLink' => '<nav aria-label="Pagination">\r\n <ul class="pagination text-center"><li class="pagination-previous"><a href=/list?page=6 aria-label="Previous page">Назад</a></li><li><a href=/list>1</a></li><li><a href=/list?page=2 aria-label="Page 2">2</a></li><li><a href=/list?page=3 aria-label="Page 3">3</a></li><li><a href=/list?page=4 aria-label="Page 4">4</a></li><li><a href=/list?page=5 aria-label="Page 5">5</a></li><li><a href=/list?page=6 aria-label="Page 6">6</a></li><li class="curre'...] ) .../CategoryController.php:59 9 0.0520 1718496 render( $path = '../apps/views/category.phtml', $params = ['title_post' => '', 'textSearch' => '', 'cityLinkBreadcrumbs' => 'category', 'postList' => [0 => class stdClass { ... }, 1 => class stdClass { ... }, 2 => class stdClass { ... }, 3 => class stdClass { ... }, 4 => class stdClass { ... }, 5 => class stdClass { ... }, 6 => class stdClass { ... }, 7 => class stdClass { ... }, 8 => class stdClass { ... }, 9 => class stdClass { ... }, 10 => class stdClass { ... }, 11 => class stdClass { ... }, 12 => class stdClass { ... }, 13 => class stdClass { ... }, 14 => class stdClass { ... }, 15 => class stdClass { ... }, 16 => class stdClass { ... }, 17 => class stdClass { ... }, 18 => class stdClass { ... }, 19 => class stdClass { ... }], 'subCategory' => [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...], 6 => [...], 7 => [...], 8 => [...]], 'breadcrumbs' => '<li>Объявления всей республики Башкортостан</li>', 'catsSearch' => '<select id="top_category" name="top_category">\n<option value="0">Любая категория</option><option value="1" style="font-weight: bold;">Транспорт</option>\n<option value="9"> Автомобили с пробегом</option>\n<option value="10"> Новые автомобили</option>\n<option value="11"> Автозапчасти и аксессуары</option>\n<option value="12"> Водный транспорт</option>\n<option value="13">&nbs'..., 'citySearch' => '<select id="city_list" name="city_list">\n\t<option value="0">Вся Республика</option>\n\t<option value="6715"> Уфа</option>\n\t<option value="6664">Агидель</option>\n\t<option value="6665">Акъяр</option>\n\t<option value="6666">Архангельское</option>\n\t<option value="6667">Аскарово</option>\n\t<option value="6668">Аскино</option>\n\t<option value="6669">Бакалы</option>\n\t<option value="6670">Белебей</option>\n\t<option value="6671">Белорецк</option>\n'..., 'paginatorLink' => '<nav aria-label="Pagination">\r\n <ul class="pagination text-center"><li class="pagination-previous"><a href=/list?page=6 aria-label="Previous page">Назад</a></li><li><a href=/list>1</a></li><li><a href=/list?page=2 aria-label="Page 2">2</a></li><li><a href=/list?page=3 aria-label="Page 3">3</a></li><li><a href=/list?page=4 aria-label="Page 4">4</a></li><li><a href=/list?page=5 aria-label="Page 5">5</a></li><li><a href=/list?page=6 aria-label="Page 6">6</a></li><li class="curre'...], $mustClean = TRUE ) .../CategoryController.php:59 10 0.0522 1733368 Phalcon\Mvc\View\Engine\Php->render( ) .../CategoryController.php:59 11 0.0525 1801864 number_format( $num = '45000-70000', $decimals = 0, $decimal_separator = '', $thousands_separator = ' ' ) .../category.phtml:71