Error Info: Array ( [0] => HY000 [1] => 1525 [2] => Incorrect DATETIME value: '2024-03-28 14:0758:' )
in /web/htdocs5/mineralnamalopolskapl/home/www/vendor/yiisoft/yii2/db/Command.php at line 837
$exceptionClass = '\yii\db\Exception'; foreach ($this->exceptionMap as $error => $class) { if (strpos($e->getMessage(), $error) !== false) { $exceptionClass = $class; } } $message = $e->getMessage() . "\nThe SQL being executed was: $rawSql"; $errorInfo = $e instanceof \PDOException ? $e->errorInfo : null; return new $exceptionClass($message, $errorInfo, (int) $e->getCode(), $e); } /** * Returns a value indicating whether a SQL statement is for read purpose. * @param string $sql the SQL statement * @return boolean whether a SQL statement is for read purpose. */ public function isReadQuery($sql) {
$this->pdoStatement->closeCursor(); } Yii::endProfile($token, 'yii\db\Command::query'); } catch (\Exception $e) { Yii::endProfile($token, 'yii\db\Command::query'); throw $this->db->getSchema()->convertException($e, $rawSql); } if (isset($cache, $cacheKey, $info)) { $cache->set($cacheKey, [$result], $info[1], $info[2]); Yii::trace('Saved query result in cache', 'yii\db\Command::query'); }
* @return string|null|boolean the value of the first column in the first row of the query result. * False is returned if there is no value. * @throws Exception execution failed */ public function queryScalar() { $result = $this->queryInternal('fetchColumn', 0); if (is_resource($result) && get_resource_type($result) === 'stream') { return stream_get_contents($result); } else { return $result; } }
$this->select = $select; $this->limit = $limit; $this->offset = $offset; if (empty($this->groupBy) && empty($this->having) && empty($this->union) && !$this->distinct) { return $command->queryScalar(); } else { return (new Query)->select([$selectExpression]) ->from(['c' => $this]) ->createCommand($command->db) ->queryScalar(); }
/** * @inheritdoc */ protected function queryScalar($selectExpression, $db) { if ($this->sql === null) { return parent::queryScalar($selectExpression, $db); } /* @var $modelClass ActiveRecord */ $modelClass = $this->modelClass; if ($db === null) { $db = $modelClass::getDb(); }
* If this parameter is not given (or null), the `db` application component will be used. * @return integer|string number of records. The result may be a string depending on the * underlying database engine and to support integer values higher than a 32bit PHP integer can handle. */ public function count($q = '*', $db = null) { return $this->queryScalar("COUNT($q)", $db); } /** * Returns the sum of the specified column values. * @param string $q the column name or expression. * Make sure you properly [quote](guide:db-dao#quoting-table-and-column-names) column names in the expression.
protected function prepareTotalCount() { if (!$this->query instanceof QueryInterface) { throw new InvalidConfigException('The "query" property must be an instance of a class that implements the QueryInterface e.g. yii\db\Query or its subclasses.'); } $query = clone $this->query; return (int) $query->limit(-1)->offset(-1)->orderBy([])->count('*', $this->db); } /** * @inheritdoc */ public function setSort($value)
*/ public function getTotalCount() { if ($this->getPagination() === false) { return $this->getCount(); } elseif ($this->_totalCount === null) { $this->_totalCount = $this->prepareTotalCount(); } return $this->_totalCount; } /**
<div class="row"> <!-- Results --> <div class="col-md-9 col-sm-9"> <section id="results"> <header><h2><?= $headerTitle;?></h2></header> <section id="search-filter"> <figure><h3><i class="fa fa-search"></i>Ilość znalezionych wydarzeń <strong><?= $dataList->getTotalCount();?></strong></h3> <div class="sorting"> <div class="form-group"> <select class="sort" style="display: none;" name="sort"> <option value="">Sortuj wg.</option> <option value="title">Tytuł</option> <option value="pay">Cena malejąco</option>
*/ public function renderPhpFile($_file_, $_params_ = []) { ob_start(); ob_implicit_flush(false); extract($_params_, EXTR_OVERWRITE); require($_file_); return ob_get_clean(); } /** * Renders dynamic content returned by the given PHP statements.
$this->renderers[$ext] = Yii::createObject($this->renderers[$ext]); } /* @var $renderer ViewRenderer */ $renderer = $this->renderers[$ext]; $output = $renderer->render($this, $viewFile, $params); } else { $output = $this->renderPhpFile($viewFile, $params); } $this->afterRender($viewFile, $params, $output); } array_pop($this->_viewFiles); $this->context = $oldContext;
* @throws InvalidParamException if the view cannot be resolved or the view file does not exist. * @see renderFile() */ public function render($view, $params = [], $context = null) { $viewFile = $this->findViewFile($view, $context); return $this->renderFile($viewFile, $params, $context); } /** * Finds the view file based on the given view name. * @param string $view the view name or the path alias of the view file. Please refer to [[render()]] * on how to specify this parameter.
* These parameters will not be available in the layout. * @return string the rendering result. * @throws InvalidParamException if the view file or the layout file does not exist. */ public function render($view, $params = []) { $content = $this->getView()->render($view, $params, $this); return $this->renderContent($content); } /** * Renders a static string by applying a layout. * @param string $content the static string being rendered
} $city = array_unique($city); } return $this->render('events', [ 'searchModel' => $searchModel,'dataList' => $dataProvider,'citylist'=>$city, ]); } public function actionListobiects(){ $searchModel = new \common\models\WaterLocations(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); $miasta = \yii\helpers\ArrayHelper::map(\common\models\WaterLocations::find()->all(),'post_code_city','post_code_city');
$args = $this->controller->bindActionParams($this, $params); Yii::trace('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__); if (Yii::$app->requestedParams === null) { Yii::$app->requestedParams = $args; } return call_user_func_array([$this->controller, $this->actionMethod], $args); } }
} $result = null; if ($runAction && $this->beforeAction($action)) { // run the action $result = $action->runWithParams($params); $result = $this->afterAction($action, $result); // call afterAction on modules foreach ($modules as $module) { /* @var $module Module */
$parts = $this->createController($route); if (is_array($parts)) { /* @var $controller Controller */ list($controller, $actionID) = $parts; $oldController = Yii::$app->controller; Yii::$app->controller = $controller; $result = $controller->runAction($actionID, $params); Yii::$app->controller = $oldController; return $result; } else { $id = $this->getUniqueId(); throw new InvalidRouteException('Unable to resolve the request "' . ($id === '' ? $route : $id . '/' . $route) . '".');
$params = $this->catchAll; unset($params[0]); } try { Yii::trace("Route requested: '$route'", __METHOD__); $this->requestedRoute = $route; $result = $this->runAction($route, $params); if ($result instanceof Response) { return $result; } else { $response = $this->getResponse(); if ($result !== null) { $response->data = $result;
try { $this->state = self::STATE_BEFORE_REQUEST; $this->trigger(self::EVENT_BEFORE_REQUEST); $this->state = self::STATE_HANDLING_REQUEST; $response = $this->handleRequest($this->getRequest()); $this->state = self::STATE_AFTER_REQUEST; $this->trigger(self::EVENT_AFTER_REQUEST); $this->state = self::STATE_SENDING_RESPONSE; $response->send();
require(__DIR__ . '/../config/main.php'), require(__DIR__ . '/../config/main-local.php') ); $application = new yii\web\Application($config); $application->run();
$_GET = [ 'old' => 'true', ]; $_SERVER = [ 'PATH' => '/sbin:/usr/sbin:/bin:/usr/bin', 'DOCUMENT_ROOT' => '/web/htdocs5/mineralnamalopolskapl/home/www', 'PHPRC' => '/web/htdocs5/mineralnamalopolskapl/php.ini', 'MAGICK_THREAD_LIMIT' => '1', 'HTTP_CONNECTION' => 'close', 'SCRIPT_NAME' => '/frontend/web/index.php', 'REQUEST_URI' => '/eventy?old=true', 'QUERY_STRING' => 'old=true', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'GEOIP_COUNTRY_NAME' => 'United States', 'GEOIP_COUNTRY_CODE' => 'US', 'GEOIP_CONTINENT_CODE' => 'NA', 'GEOIP_ADDR' => '52.205.159.48', 'REDIRECT_URL' => '/frontend/web/eventy', 'REDIRECT_QUERY_STRING' => 'old=true', 'REMOTE_PORT' => '57806', 'SCRIPT_FILENAME' => '/web/htdocs5/mineralnamalopolskapl/home/www/frontend/web/index.php', 'SERVER_ADMIN' => 'admin@forpsi.com', 'REMOTE_ADDR' => '52.205.159.48', 'SERVER_PORT' => '80', 'SERVER_ADDR' => '185.129.138.39', 'SERVER_NAME' => 'mineralnamalopolska.pl', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => 'Apache Server at mineralnamalopolska.pl Port 80 ', 'HTTP_GEOIP_COUNTRY_NAME' => 'United States', 'HTTP_GEOIP_COUNTRY_CODE' => 'US', 'HTTP_GEOIP_CONTINENT_CODE' => 'NA', 'HTTP_GEOIP_ADDR' => '52.205.159.48', 'HTTP_HOST' => 'mineralnamalopolska.pl', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'UNIQUE_ID' => 'ZgVrrn8AAAEABJ2EexkAAADB', 'REDIRECT_STATUS' => '200', 'REDIRECT_GEOIP_COUNTRY_NAME' => 'United States', 'REDIRECT_GEOIP_COUNTRY_CODE' => 'US', 'REDIRECT_GEOIP_CONTINENT_CODE' => 'NA', 'REDIRECT_GEOIP_ADDR' => '52.205.159.48', 'REDIRECT_REDIRECT_URL' => '/eventy', 'REDIRECT_REDIRECT_QUERY_STRING' => 'old=true', 'REDIRECT_REMOTE_PORT' => '57806', 'REDIRECT_SCRIPT_FILENAME' => '', 'REDIRECT_SERVER_ADMIN' => 'admin@forpsi.com', 'REDIRECT_DOCUMENT_ROOT' => '/web/htdocs5/mineralnamalopolskapl/home/www', 'REDIRECT_REMOTE_ADDR' => '52.205.159.48', 'REDIRECT_SERVER_PORT' => '80', 'REDIRECT_SERVER_ADDR' => '185.129.138.39', 'REDIRECT_SERVER_NAME' => 'mineralnamalopolska.pl', 'REDIRECT_SERVER_SOFTWARE' => 'Apache', 'REDIRECT_SERVER_SIGNATURE' => 'Apache Server at mineralnamalopolska.pl Port 80 ', 'REDIRECT_PATH' => '/sbin:/usr/sbin:/bin:/usr/bin', 'REDIRECT_HTTP_GEOIP_COUNTRY_NAME' => 'United States', 'REDIRECT_HTTP_GEOIP_COUNTRY_CODE' => 'US', 'REDIRECT_HTTP_GEOIP_CONTINENT_CODE' => 'NA', 'REDIRECT_HTTP_GEOIP_ADDR' => '52.205.159.48', 'REDIRECT_HTTP_HOST' => 'mineralnamalopolska.pl', 'REDIRECT_HTTP_USER_AGENT' => 'claudebot', 'REDIRECT_HTTP_ACCEPT' => '*/*', 'REDIRECT_UNIQUE_ID' => 'ZgVrrn8AAAEABJ2EexkAAADB', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_GEOIP_COUNTRY_NAME' => 'United States', 'REDIRECT_REDIRECT_GEOIP_COUNTRY_CODE' => 'US', 'REDIRECT_REDIRECT_GEOIP_CONTINENT_CODE' => 'NA', 'REDIRECT_REDIRECT_GEOIP_ADDR' => '52.205.159.48', 'REDIRECT_REDIRECT_REMOTE_PORT' => '57806', 'REDIRECT_REDIRECT_SCRIPT_FILENAME' => '', 'REDIRECT_REDIRECT_SERVER_ADMIN' => 'admin@forpsi.com', 'REDIRECT_REDIRECT_DOCUMENT_ROOT' => '/web/htdocs5/mineralnamalopolskapl/home/www', 'REDIRECT_REDIRECT_REMOTE_ADDR' => '52.205.159.48', 'REDIRECT_REDIRECT_SERVER_PORT' => '80', 'REDIRECT_REDIRECT_SERVER_ADDR' => '185.129.138.39', 'REDIRECT_REDIRECT_SERVER_NAME' => 'mineralnamalopolska.pl', 'REDIRECT_REDIRECT_SERVER_SOFTWARE' => 'Apache', 'REDIRECT_REDIRECT_SERVER_SIGNATURE' => 'Apache Server at mineralnamalopolska.pl Port 80 ', 'REDIRECT_REDIRECT_PATH' => '/sbin:/usr/sbin:/bin:/usr/bin', 'REDIRECT_REDIRECT_HTTP_HOST' => 'mineralnamalopolska.pl', 'REDIRECT_REDIRECT_HTTP_USER_AGENT' => 'claudebot', 'REDIRECT_REDIRECT_HTTP_ACCEPT' => '*/*', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgVrrn8AAAEABJ2EexkAAADB', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/frontend/web/index.php', 'REQUEST_TIME_FLOAT' => 1711631278.1808741092681884765625, 'REQUEST_TIME' => 1711631278, 'argv' => [ 'old=true', ], 'argc' => 1, ]; $_SESSION = [ '__flash' => [], ];