Notice (8) : file_put_contents(): Write of 271 bytes failed with errno=28 No space left on device [CORE/src/Log/Engine/FileLog.php , line 140 ]Code Context if (! $mask ) {
file_put_contents ( $pathname , $message . "\n" , FILE_APPEND );
file_put_contents - [internal], line ??
Cake\Log\Engine\FileLog::log() - CORE/src/Log/Engine/FileLog.php, line 140
Cake\Log\Log::write() - CORE/src/Log/Log.php, line 392
Cake\Log\Log::warning() - CORE/src/Log/Log.php, line 477
DebugKit\ToolbarService::isSuspiciouslyProduction() - ROOT/vendor/cakephp/debug_kit/src/ToolbarService.php, line 169
DebugKit\ToolbarService::isEnabled() - ROOT/vendor/cakephp/debug_kit/src/ToolbarService.php, line 105
DebugKit\Plugin::bootstrap() - ROOT/vendor/cakephp/debug_kit/src/Plugin.php, line 48
Cake\Http\BaseApplication::pluginBootstrap() - CORE/src/Http/BaseApplication.php, line 182
Cake\Http\Server::bootstrap() - CORE/src/Http/Server.php, line 111
Cake\Http\Server::run() - CORE/src/Http/Server.php, line 79
[main] - ROOT/webroot/index.php, line 40
Notice : file_put_contents() [function.file-put-contents ]: Write of 1105 bytes failed with errno=28 No space left on device in /www/wwwroot/kangbaba.com/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 140
Notice (8) : file_put_contents() [<a href='https://secure.php.net/function.file-put-contents'>function.file-put-contents</a>]: Write of 6540 bytes failed with errno=28 No space left on device [CORE/src/Log/Engine/FileLog.php , line 140 ]Code Context if (! $mask ) {
file_put_contents ( $pathname , $message . "\n" , FILE_APPEND );
file_put_contents - [internal], line ??
Cake\Log\Engine\FileLog::log() - CORE/src/Log/Engine/FileLog.php, line 140
Cake\Log\Log::write() - CORE/src/Log/Log.php, line 392
Cake\Log\Log::error() - CORE/src/Log/Log.php, line 461
Cake\Error\ErrorLogger::log() - CORE/src/Error/ErrorLogger.php, line 91
Cake\Error\BaseErrorHandler::logException() - CORE/src/Error/BaseErrorHandler.php, line 334
Cake\Error\Middleware\ErrorHandlerMiddleware::handleException() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 147
Cake\Error\Middleware\ErrorHandlerMiddleware::process() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 130
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 58
Cake\Http\Server::run() - CORE/src/Http/Server.php, line 90
[main] - ROOT/webroot/index.php, line 40
Error: Missing Database Connection
Connection to Mysql could not be established: SQLSTATE[HY000] [1040] Too many connections
$retry = new CommandRetry (new ErrorCodeWaitStrategy (static:: RETRY_ERROR_CODES , 5 ), 4 );
try {
$retry -> run ( $action );
} catch ( PDOException $e ) {
throw new MissingConnectionException (
[
'driver' => App :: shortName (static::class, 'Database/Driver' ),
'reason' => $e -> getMessage (),
],
Arguments
if (!empty( $config [ 'encoding' ])) {
$dsn .= ";charset= { $config [ 'encoding' ]} " ;
}
$this -> _connect ( $dsn , $config );
if (!empty( $config [ 'init' ])) {
$connection = $this -> getConnection ();
foreach ((array) $config [ 'init' ] as $command ) {
Arguments
'mysql:host=localhost;port=3306;dbname=mulus;charset=utf8mb4'
[
'driver' => 'Cake\Database\Driver\Mysql' ,
'persistent' => false ,
'timezone' => '+0:00' ,
'flags' => [
(int) 12 => false ,
(int) 1000 => true ,
(int) 3 => (int) 2 ,
] ,
'cacheMetadata' => true ,
'log' => false ,
'quoteIdentifiers' => false ,
'host' => 'localhost' ,
'username' => 'mulus' ,
'password' => 'f3tCPCisE7WLPCh7' ,
'database' => 'mulus' ,
'url' => null ,
'name' => 'default' ,
'port' => '3306' ,
'encoding' => 'utf8mb4' ,
'init' => [
(int) 0 => 'SET time_zone = '+0:00'' ,
] ,
]
* @ param \Cake\Database\DriverInterface $driver The driver to use.
*/
public function __construct ( DriverInterface $driver )
{
$driver -> connect ();
$this -> _driver = $driver ;
}
/**
*/
public function schemaDialect (): SchemaDialect
{
if ( $this -> _schemaDialect === null ) {
$this -> _schemaDialect = new MysqlSchemaDialect ( $this );
}
return $this -> _schemaDialect ;
}
Arguments
object( Cake\Database\Driver\Mysql ) id: 0 {
'connected' => false
}
*/
public function __construct ( Connection $connection )
{
$this -> _connection = $connection ;
$this -> _dialect = $connection -> getDriver ()-> schemaDialect ();
}
/**
* Get the list of tables available in the current connection .
}
if (!empty( $this -> _config [ 'cacheMetadata' ])) {
return $this -> _schemaCollection = new CachedCollection (
new SchemaCollection ( $this ),
empty( $this -> _config [ 'cacheKeyPrefix' ]) ? $this -> configName () : $this -> _config [ 'cacheKeyPrefix' ],
$this -> getCacher ()
);
}
Arguments
object( Cake\Database\Connection ) id: 0 {
'config' => [
'password' => '*****' ,
'username' => '*****' ,
'host' => '*****' ,
'database' => '*****' ,
'driver' => 'Cake\Database\Driver\Mysql' ,
'persistent' => false ,
'timezone' => 'UTC' ,
'flags' => [
] ,
'cacheMetadata' => true ,
'log' => false ,
'quoteIdentifiers' => false ,
'url' => null ,
'name' => 'default' ,
]
'driver' => object( Cake\Database\Driver\Mysql ) id: 1 {
'connected' => false
}
'transactionLevel' => (int) 0
'transactionStarted' => false
'useSavePoints' => false
'logQueries' => false
'logger' => null
}
{
if ( $this -> _schema === null ) {
$this -> _schema = $this -> _initializeSchema (
$this -> getConnection ()
-> getSchemaCollection ()
-> describe ( $this -> getTable ())
);
if ( Configure :: read ( 'debug' )) {
$this -> checkAliasLengths ();
*/
public function addDefaultTypes ( Table $table )
{
$alias = $table -> getAlias ();
$map = $table -> getSchema ()-> typeMap ();
$fields = [];
foreach ( $map as $f => $type ) {
$fields [ $f ] = $fields [ $alias . '.' . $f ] = $fields [ $alias . '__' . $f ] = $type ;
}
parent :: __construct ( $connection );
$this -> repository ( $table );
if ( $this -> _repository !== null ) {
$this -> addDefaultTypes ( $this -> _repository );
}
}
/**
Arguments
object( App\Model\Table\navsTable ) id: 0 {
'registryAlias' => 'Navs'
'table' => 'navs'
'alias' => 'Navs'
'entityClass' => 'Cake\ORM\Entity'
'associations' => [
(int) 0 => 'Domains' ,
]
'behaviors' => [
]
'defaultConnection' => 'default'
'connectionName' => 'default'
}
* @return \Cake\ORM\Query
*/
public function query (): Query
{
return new Query ( $this -> getConnection (), $this );
}
/**
* Creates a new Query :: subquery () instance for a table .
Arguments
object( Cake\Database\Connection ) id: 0 {
'config' => [
'password' => '*****' ,
'username' => '*****' ,
'host' => '*****' ,
'database' => '*****' ,
'driver' => 'Cake\Database\Driver\Mysql' ,
'persistent' => false ,
'timezone' => 'UTC' ,
'flags' => [
] ,
'cacheMetadata' => true ,
'log' => false ,
'quoteIdentifiers' => false ,
'url' => null ,
'name' => 'default' ,
]
'driver' => object( Cake\Database\Driver\Mysql ) id: 1 {
'connected' => false
}
'transactionLevel' => (int) 0
'transactionStarted' => false
'useSavePoints' => false
'logQueries' => false
'logger' => null
}
object( App\Model\Table\navsTable ) id: 0 {
'registryAlias' => 'Navs'
'table' => 'navs'
'alias' => 'Navs'
'entityClass' => 'Cake\ORM\Entity'
'associations' => [
(int) 0 => 'Domains' ,
]
'behaviors' => [
]
'defaultConnection' => 'default'
'connectionName' => 'default'
}
* @return \Cake\ORM\Query The query builder
*/
public function find ( string $type = 'all' , array $options = []): Query
{
$query = $this -> query ();
$query -> select ();
return $this -> callFinder ( $type , $query , $options );
}
$recentArticles = $this -> fetchTable ( $table_name )-> find ( 'all' , $where_ )-> contain ( $belongsTo )-> all ();;
}
else
{
$recentArticles = $this -> fetchTable ( $table_name )-> find ( 'all' , $where_ )-> all ();
}
$return = $this -> object2array ( $recentArticles );
}
Arguments
[
'conditions' => [
'domain_id' => (int) 9 ,
] ,
'order' => 'title_showid asc' ,
]
set_time_limit ( 240 ); //4minutes
ini_set ( 'memory_limit' , '512M' );
date_default_timezone_set ( 'PRC' );
$abc = $this -> action_ ( $array , $is_http = 1 );
$show =array();
$show [ "code" ]= 200 ;
$show [ "data" ]= $abc ;
Arguments
[
'table_name' => 'Navs' ,
'cache_folder' => 'long' ,
'where' => [
'domain_id' => (int) 9 ,
] ,
'order' => 'title_showid asc' ,
'Async' => (int) 0 ,
'cache_cache_file_name' => 'b876b651785c2bf522517ba8b313ff1d' ,
]
// echo "<br>======2======<br>\n";
// echo "不存在/";
$file = $this -> $action ( $array );
if ( $file [ "code" ]== 200 and is_array ( $file [ "data" ]))
{
//获取数据成功!
Arguments
[
'table_name' => 'Navs' ,
'cache_folder' => 'long' ,
'where' => [
'domain_id' => (int) 9 ,
] ,
'order' => 'title_showid asc' ,
'Async' => (int) 0 ,
'cache_cache_file_name' => 'b876b651785c2bf522517ba8b313ff1d' ,
]
{
date_default_timezone_set ( 'PRC' );
$file = $this -> action_cache ( $get_data );
if ( $file [ "code" ]== 200 )
{
$match = $file [ "data" ];
Arguments
[
'table_name' => 'Navs' ,
'cache_folder' => 'long' ,
'where' => [
'domain_id' => (int) 9 ,
] ,
'order' => 'title_showid asc' ,
'Async' => (int) 0 ,
'cache_cache_file_name' => 'b876b651785c2bf522517ba8b313ff1d' ,
]
$get_data [ "cache_folder" ]= "long" ;
$where [ "domain_id" ]= id ;
$get_data [ "where" ]= $where ;
$get_data [ "order" ]= "title_showid asc" ;
$content1 = $this -> cache_action ( $get_data );
//查出相应的文章分类信息
$sort_name = "" ;
Arguments
[
'table_name' => 'Navs' ,
'cache_folder' => 'long' ,
'where' => [
'domain_id' => (int) 9 ,
] ,
'order' => 'title_showid asc' ,
]
* @ throws \UnexpectedValueException If return value of action is not ` null ` or ` ResponseInterface ` instance .
*/
public function invokeAction ( Closure $action , array $args ): void
{
$result = $action (... $args );
if ( $result !== null && ! $result instanceof ResponseInterface ) {
throw new UnexpectedValueException ( sprintf (
'Controller actions can only return ResponseInterface instance or null. '
. 'Got %s instead.' ,
$args = $this -> getActionArgs (
$action ,
array_values ((array) $controller -> getRequest ()-> getParam ( 'pass' ))
);
$controller -> invokeAction ( $action , $args );
$result = $controller -> shutdownProcess ();
if ( $result instanceof ResponseInterface ) {
return $result ;
return $runner -> run ( $middlewareQueue , $controller -> getRequest (), $this );
}
return $this -> handle ( $controller -> getRequest ());
}
/**
* Invoke the action .
Arguments
object( Cake\Http\ServerRequest ) id: 0 {
trustProxy => false
protected params => [
'pass' => [
] ,
'controller' => 'Home' ,
'action' => 'indexed' ,
'plugin' => null ,
'_matchedRoute' => '/indexed' ,
'?' => [
'domain' => '