Deprecated (8192)
: Creation of dynamic property App\Controller\ErrorController::$app_folder is deprecated [in
/home/poll2know/web/poll2know.com/public_html/src/Controller/AppController.php, line
32]
Code
$this->app_folder = Configure::read('app_folder');
$this->mailer = ['mailer@poll2know.com'=>__('Poll2Know')];
Cake\Error\ErrorTrap->handleError() /home/poll2know/web/poll2know.com/public_html/src/Controller/AppController.php, line 32
App\Controller\AppController->initialize() /home/poll2know/web/poll2know.com/public_html/src/Controller/ErrorController.php, line 12
App\Controller\ErrorController->initialize() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Controller/Controller.php, line 238
Cake\Controller\Controller->__construct() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 175
Cake\Error\Renderer\WebExceptionRenderer->_getController() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 126
Cake\Error\Renderer\WebExceptionRenderer->__construct() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 133
Cake\Error\ExceptionTrap->renderer() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 239
Cake\Error\ExceptionTrap->handleException() [internal], line ??
[main]
Deprecated (8192)
: Creation of dynamic property App\Controller\ErrorController::$mailer is deprecated [in
/home/poll2know/web/poll2know.com/public_html/src/Controller/AppController.php, line
33]
Code
$this->app_folder = Configure::read('app_folder');
$this->mailer = ['mailer@poll2know.com'=>__('Poll2Know')];
$serverName = $_SERVER['SERVER_NAME'] ?? 'localhost';
Cake\Error\ErrorTrap->handleError() /home/poll2know/web/poll2know.com/public_html/src/Controller/AppController.php, line 33
App\Controller\AppController->initialize() /home/poll2know/web/poll2know.com/public_html/src/Controller/ErrorController.php, line 12
App\Controller\ErrorController->initialize() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Controller/Controller.php, line 238
Cake\Controller\Controller->__construct() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 175
Cake\Error\Renderer\WebExceptionRenderer->_getController() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 126
Cake\Error\Renderer\WebExceptionRenderer->__construct() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 133
Cake\Error\ExceptionTrap->renderer() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 239
Cake\Error\ExceptionTrap->handleException() [internal], line ??
[main]
Deprecated (8192)
: Creation of dynamic property App\Controller\ErrorController::$protocol is deprecated [in
/home/poll2know/web/poll2know.com/public_html/src/Controller/AppController.php, line
36]
Code
$host = $_SERVER['HTTP_HOST'] ?? $serverName;
$this->protocol = strpos($serverName, 'localhost') === false ? 'https' : 'http';
$this->path = '//' . $serverName . $this->app_folder;
Cake\Error\ErrorTrap->handleError() /home/poll2know/web/poll2know.com/public_html/src/Controller/AppController.php, line 36
App\Controller\AppController->initialize() /home/poll2know/web/poll2know.com/public_html/src/Controller/ErrorController.php, line 12
App\Controller\ErrorController->initialize() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Controller/Controller.php, line 238
Cake\Controller\Controller->__construct() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 175
Cake\Error\Renderer\WebExceptionRenderer->_getController() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 126
Cake\Error\Renderer\WebExceptionRenderer->__construct() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 133
Cake\Error\ExceptionTrap->renderer() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 239
Cake\Error\ExceptionTrap->handleException() [internal], line ??
[main]
Deprecated (8192)
: Creation of dynamic property App\Controller\ErrorController::$path is deprecated [in
/home/poll2know/web/poll2know.com/public_html/src/Controller/AppController.php, line
37]
Code
$this->protocol = strpos($serverName, 'localhost') === false ? 'https' : 'http';
$this->path = '//' . $serverName . $this->app_folder;
$this->isLocal = $host == 'localhost' ? true : false;
Cake\Error\ErrorTrap->handleError() /home/poll2know/web/poll2know.com/public_html/src/Controller/AppController.php, line 37
App\Controller\AppController->initialize() /home/poll2know/web/poll2know.com/public_html/src/Controller/ErrorController.php, line 12
App\Controller\ErrorController->initialize() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Controller/Controller.php, line 238
Cake\Controller\Controller->__construct() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 175
Cake\Error\Renderer\WebExceptionRenderer->_getController() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 126
Cake\Error\Renderer\WebExceptionRenderer->__construct() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 133
Cake\Error\ExceptionTrap->renderer() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 239
Cake\Error\ExceptionTrap->handleException() [internal], line ??
[main]
Deprecated (8192)
: Creation of dynamic property App\Controller\ErrorController::$isLocal is deprecated [in
/home/poll2know/web/poll2know.com/public_html/src/Controller/AppController.php, line
38]
Code
$this->path = '//' . $serverName . $this->app_folder;
$this->isLocal = $host == 'localhost' ? true : false;
Cake\Error\ErrorTrap->handleError() /home/poll2know/web/poll2know.com/public_html/src/Controller/AppController.php, line 38
App\Controller\AppController->initialize() /home/poll2know/web/poll2know.com/public_html/src/Controller/ErrorController.php, line 12
App\Controller\ErrorController->initialize() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Controller/Controller.php, line 238
Cake\Controller\Controller->__construct() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 175
Cake\Error\Renderer\WebExceptionRenderer->_getController() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 126
Cake\Error\Renderer\WebExceptionRenderer->__construct() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 133
Cake\Error\ExceptionTrap->renderer() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 239
Cake\Error\ExceptionTrap->handleException() [internal], line ??
[main]
Deprecated (8192)
: Creation of dynamic property App\Controller\ErrorController::$currlang is deprecated [in
/home/poll2know/web/poll2know.com/public_html/src/Controller/AppController.php, line
114]
Code
I18n::setLocale($langval);
$this->currlang = $langval ;
$this->currlangid = $this->Do->get('langs_ids')[$langval] ;
Cake\Error\ErrorTrap->handleError() /home/poll2know/web/poll2know.com/public_html/src/Controller/AppController.php, line 114
App\Controller\AppController->initialize() /home/poll2know/web/poll2know.com/public_html/src/Controller/ErrorController.php, line 12
App\Controller\ErrorController->initialize() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Controller/Controller.php, line 238
Cake\Controller\Controller->__construct() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 175
Cake\Error\Renderer\WebExceptionRenderer->_getController() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 126
Cake\Error\Renderer\WebExceptionRenderer->__construct() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 133
Cake\Error\ExceptionTrap->renderer() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 239
Cake\Error\ExceptionTrap->handleException() [internal], line ??
[main]
Warning (512)
: Unable to emit headers. Headers sent in file=/home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=37 [in
/home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line
65]
Code
$message = "Unable to emit headers. Headers sent in file={$file} line={$line}";
trigger_error($message, E_USER_WARNING);
}
Cake\Error\ErrorTrap->handleError() [internal], line ??
/home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 65
Cake\Http\ResponseEmitter->emit() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 296
Cake\Error\Renderer\WebExceptionRenderer->write() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 240
Cake\Error\ExceptionTrap->handleException() [internal], line ??
[main]
Warning (2)
: Cannot modify header information - headers already sent by (output started at /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in
/home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line
159]
Code
$reasonPhrase = $response->getReasonPhrase();
header(sprintf(
'HTTP/%s %d%s',
Cake\Error\ErrorTrap->handleError() [internal], line ??
/home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 159
Cake\Http\ResponseEmitter->emitStatusLine() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 68
Cake\Http\ResponseEmitter->emit() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 296
Cake\Error\Renderer\WebExceptionRenderer->write() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 240
Cake\Error\ExceptionTrap->handleException() [internal], line ??
[main]
Warning (2)
: Cannot modify header information - headers already sent by (output started at /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in
/home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line
192]
Code
foreach ($values as $value) {
header(sprintf(
'%s: %s',
Cake\Error\ErrorTrap->handleError() [internal], line ??
/home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 192
Cake\Http\ResponseEmitter->emitHeaders() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 69
Cake\Http\ResponseEmitter->emit() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 296
Cake\Error\Renderer\WebExceptionRenderer->write() /home/poll2know/web/poll2know.com/public_html/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 240
Cake\Error\ExceptionTrap->handleException() [internal], line ??
[main]
CORE/src/Utility/Security.php at line 304
(edit)
|
*
|
|
* @param string $salt The salt to use for encryption routines.
|
|
* @return void
|
|
*/
|
|
public static function setSalt(string $salt): void
|
|
{
|
|
static::$_salt = $salt;
|
|
}
|
|
}
|
-
|
ConnectionManager::setConfig(Configure::consume('Datasources'));
|
|
TransportFactory::setConfig(Configure::consume('EmailTransport'));
|
|
Mailer::setConfig(Configure::consume('Email'));
|
|
Log::setConfig(Configure::consume('Log'));
|
|
Security::setSalt(Configure::consume('Security.salt'));
|
|
|
|
/*
|
|
* Setup detectors for mobile and tablet.
|
|
* If you don't use these checks you can safely remove this code
|
Toggle Arguments
-
|
* @inheritDoc
|
|
*/
|
|
public function bootstrap(): void
|
|
{
|
|
require_once $this->configDir . 'bootstrap.php';
|
|
|
|
// phpcs:ignore
|
|
$plugins = @include $this->configDir . 'plugins.php';
|
|
if (is_array($plugins)) {
|
Toggle Arguments
'/home/poll2know/web/poll2know.com/public_html/config/bootstrap.php'
-
|
*/
|
|
public function bootstrap(): void
|
|
{
|
|
// Call parent to load bootstrap from files.
|
|
parent::bootstrap();
|
|
|
|
$this->addPlugin('Theme2');
|
|
|
|
if (PHP_SAPI !== 'cli') {
|
Toggle Arguments
-
|
* @return void
|
|
*/
|
|
protected function bootstrap(): void
|
|
{
|
|
$this->app->bootstrap();
|
|
if ($this->app instanceof PluginApplicationInterface) {
|
|
$this->app->pluginBootstrap();
|
|
}
|
|
}
|
Toggle Arguments
-
|
public function run(
|
|
?ServerRequestInterface $request = null,
|
|
?MiddlewareQueue $middlewareQueue = null,
|
|
): ResponseInterface {
|
|
$this->bootstrap();
|
|
|
|
$request = $request ?: ServerRequestFactory::fromGlobals();
|
|
|
|
if ($middlewareQueue === null) {
|
Toggle Arguments
-
|
// Bind your application to the server.
|
|
$server = new Server(new Application(dirname(__DIR__) . '/config'));
|
|
|
|
// Run the request/response through the application and emit the response.
|
|
$server->emit($server->run());
|
|
|
Toggle Arguments
-
If you want to customize this error message, create
templates/Error/error500.php