Deprecated (16384)
: Since 5.3.0: Loading plugins without a plugin class is deprecated. You can create the missing class using `bin/cake bake plugin Cctv --class-only`.
/var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line: 137
You can disable all deprecation warnings by setting `Error.errorLevel` to `E_ALL & ~E_USER_DEPRECATED`. Adding `vendor/cakephp/cakephp/src/Http/BaseApplication.php` to `Error.ignoredDeprecationPaths` in your `config/app.php` config will mute deprecations from that file only. [in
/var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Core/functions.php, line
376]
Code
trigger_error($message, E_USER_DEPRECATED);
}
Cake\Error\ErrorTrap->handleError() [internal], line ??
/var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Core/functions.php /var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Core/functions.php, line 376
/var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Core/PluginCollection.php /var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Core/PluginCollection.php, line 299
Cake\Core\PluginCollection->create() /var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 137
Cake\Http\BaseApplication->addPlugin() /var/www/local-vms.techcircles.net/src/Vms/Module/ModulePlugins.php, line 153
App\Vms\Module\ModulePlugins->register() /var/www/local-vms.techcircles.net/src/Application.php, line 113
App\Application->bootstrap() /var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Http/Server.php, line 112
Cake\Http\Server->bootstrap() /var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Http/Server.php, line 74
Cake\Http\Server->run() /var/www/local-vms.techcircles.net/webroot/index.php, line 37
[main]
Deprecated (16384)
: Since 5.3.0: Loading plugins without a plugin class is deprecated. You can create the missing class using `bin/cake bake plugin ConnectorDahua --class-only`.
/var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line: 137
You can disable all deprecation warnings by setting `Error.errorLevel` to `E_ALL & ~E_USER_DEPRECATED`. Adding `vendor/cakephp/cakephp/src/Http/BaseApplication.php` to `Error.ignoredDeprecationPaths` in your `config/app.php` config will mute deprecations from that file only. [in
/var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Core/functions.php, line
376]
Code
trigger_error($message, E_USER_DEPRECATED);
}
Cake\Error\ErrorTrap->handleError() [internal], line ??
/var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Core/functions.php /var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Core/functions.php, line 376
/var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Core/PluginCollection.php /var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Core/PluginCollection.php, line 299
Cake\Core\PluginCollection->create() /var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 137
Cake\Http\BaseApplication->addPlugin() /var/www/local-vms.techcircles.net/src/Vms/Module/ModulePlugins.php, line 153
App\Vms\Module\ModulePlugins->register() /var/www/local-vms.techcircles.net/src/Application.php, line 113
App\Application->bootstrap() /var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Http/Server.php, line 112
Cake\Http\Server->bootstrap() /var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Http/Server.php, line 74
Cake\Http\Server->run() /var/www/local-vms.techcircles.net/webroot/index.php, line 37
[main]
Warning (512)
: Unable to emit headers. Headers sent in file=/var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=37 [in
/var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line
66]
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 ??
/var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 66
Cake\Http\ResponseEmitter->emit() /var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 296
Cake\Error\Renderer\WebExceptionRenderer->write() /var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 237
Cake\Error\ExceptionTrap->handleException() [internal], line ??
[main]
Warning (2)
: Cannot modify header information - headers already sent by (output started at /var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in
/var/www/local-vms.techcircles.net/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 ??
/var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 159
Cake\Http\ResponseEmitter->emitStatusLine() /var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 69
Cake\Http\ResponseEmitter->emit() /var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 296
Cake\Error\Renderer\WebExceptionRenderer->write() /var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 237
Cake\Error\ExceptionTrap->handleException() [internal], line ??
[main]
Warning (2)
: Cannot modify header information - headers already sent by (output started at /var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in
/var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line
192]
Code
foreach ($values as $value) {
header(sprintf(
'%s: %s',
Cake\Error\ErrorTrap->handleError() [internal], line ??
/var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 192
Cake\Http\ResponseEmitter->emitHeaders() /var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 70
Cake\Http\ResponseEmitter->emit() /var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 296
Cake\Error\Renderer\WebExceptionRenderer->write() /var/www/local-vms.techcircles.net/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 237
Cake\Error\ExceptionTrap->handleException() [internal], line ??
[main]
ROOT/plugins/AccessZones/src/AccessZonesPlugin.php at line 57
(edit)
|
|
|
// A deleted visit, purpose, lane or location takes its zone links.
|
|
$events = EventManager::instance();
|
|
if (self::$cleanup === null || self::$cleanupOn !== $events) {
|
|
self::$cleanup = new ZoneCleanup();
|
|
self::$cleanupOn = $events;
|
|
$events->on(self::$cleanup);
|
|
}
|
|
|
-
|
*/
|
|
public function pluginBootstrap(): void
|
|
{
|
|
foreach ($this->plugins->with('bootstrap') as $plugin) {
|
|
$plugin->bootstrap($this);
|
|
}
|
|
}
|
|
|
|
/**
|
Toggle Arguments
-
|
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