Warning (2)
: include(/var/www/virtual/ts-dev.itokchinese.com/config/stripe.php): Failed to open stream: Permission denied [in
/var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Core/Configure/Engine/PhpConfig.php, line
84]
Code
$return = include $file;
if (is_array($return)) {
/var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Core/Configure/Engine/PhpConfig.php /var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Core/Configure/Engine/PhpConfig.php, line 84
Cake\Core\Configure\Engine\PhpConfig->read() /var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Core/Configure.php, line 339
Cake\Core\Configure::load() /var/www/virtual/ts-dev.itokchinese.com/config/bootstrap.php, line 234
/var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Http/BaseApplication.php /var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 183
Cake\Http\BaseApplication->bootstrap() /var/www/virtual/ts-dev.itokchinese.com/src/Application.php, line 47
App\Application->bootstrap() /var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Http/Server.php, line 122
Cake\Http\Server->bootstrap() /var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Http/Server.php, line 84
Cake\Http\Server->run() /var/www/virtual/ts-dev.itokchinese.com/webroot/index.php, line 40
[main]
Warning (2)
: include(): Failed opening '/var/www/virtual/ts-dev.itokchinese.com/config/stripe.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') [in
/var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Core/Configure/Engine/PhpConfig.php, line
84]
Code
$return = include $file;
if (is_array($return)) {
/var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Core/Configure/Engine/PhpConfig.php /var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Core/Configure/Engine/PhpConfig.php, line 84
Cake\Core\Configure\Engine\PhpConfig->read() /var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Core/Configure.php, line 339
Cake\Core\Configure::load() /var/www/virtual/ts-dev.itokchinese.com/config/bootstrap.php, line 234
/var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Http/BaseApplication.php /var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 183
Cake\Http\BaseApplication->bootstrap() /var/www/virtual/ts-dev.itokchinese.com/src/Application.php, line 47
App\Application->bootstrap() /var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Http/Server.php, line 122
Cake\Http\Server->bootstrap() /var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Http/Server.php, line 84
Cake\Http\Server->run() /var/www/virtual/ts-dev.itokchinese.com/webroot/index.php, line 40
[main]
Warning (512)
: Unable to emit headers. Headers sent in file=/var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=37 [in
/var/www/virtual/ts-dev.itokchinese.com/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);
}
/var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 65
Cake\Http\ResponseEmitter->emit() /var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 308
Cake\Error\Renderer\WebExceptionRenderer->write() /var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 239
Cake\Error\ExceptionTrap->handleException() [internal], line ??
[main]
Warning (2)
: Cannot modify header information - headers already sent by (output started at /var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in
/var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line
159]
Code
$reasonPhrase = $response->getReasonPhrase();
header(sprintf(
'HTTP/%s %d%s',
/var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 159
Cake\Http\ResponseEmitter->emitStatusLine() /var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 68
Cake\Http\ResponseEmitter->emit() /var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 308
Cake\Error\Renderer\WebExceptionRenderer->write() /var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 239
Cake\Error\ExceptionTrap->handleException() [internal], line ??
[main]
Warning (2)
: Cannot modify header information - headers already sent by (output started at /var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in
/var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line
192]
Code
foreach ($values as $value) {
header(sprintf(
'%s: %s',
/var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 192
Cake\Http\ResponseEmitter->emitHeaders() /var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 69
Cake\Http\ResponseEmitter->emit() /var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Error/Renderer/WebExceptionRenderer.php, line 308
Cake\Error\Renderer\WebExceptionRenderer->write() /var/www/virtual/ts-dev.itokchinese.com/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php, line 239
Cake\Error\ExceptionTrap->handleException() [internal], line ??
[main]
Could this be caused by using Auto-Tables?
Some of the Table objects in your application were created by instantiating "Cake\ORM\Table"
instead of any other specific subclass.
This could be the cause for this exception. Auto-Tables are created for you under the following circumstances:
- The class for the specified table does not exist.
- The Table was created with a typo: $this->getTableLocator()->get('Articles');
- The class file has a typo in the name or incorrect namespace: class Articles extends Table
- The file containing the class has a typo or incorrect casing: Articles.php
- The Table was used using associations but the association has a typo: $this->belongsTo('Articles')
- The table class resides in a Plugin but no plugin notation was used in the association definition.
Please try correcting the issue for the following table aliases:
CORE/src/Core/Configure/Engine/PhpConfig.php at line 89
(edit)
|
if (is_array($return)) {
|
|
return $return;
|
|
}
|
|
|
|
throw new CakeException(sprintf('Config file `%s` did not return an array', $key . '.php.'));
|
|
}
|
|
|
|
/**
|
|
* Converts the provided $data into a string of PHP code that can
|
-
|
)
|
|
);
|
|
}
|
|
|
|
$values = $engine->read($key);
|
|
|
|
if ($merge) {
|
|
$values = Hash::merge(static::$_values, $values);
|
|
}
|
Toggle Arguments
-
|
//\Cake\I18n\FrozenDate::setToStringFormat('dd.MM.yyyy');
|
|
//\Cake\I18n\FrozenTime::setToStringFormat('dd.MM.yyyy HH:mm');
|
|
|
|
Configure::load('mongodb');
|
|
Configure::load('stripe');
|
|
Configure::load('eftpay');
|
|
Configure::load('oss');
|
|
|
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
'/var/www/virtual/ts-dev.itokchinese.com/config/bootstrap.php'
-
|
{
|
|
$this->addPlugin('BootstrapUI');
|
|
|
|
// Call parent to load bootstrap from files.
|
|
parent::bootstrap();
|
|
|
|
if (PHP_SAPI === 'cli') {
|
|
$this->bootstrapCli();
|
|
}
|
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