ErrorException: Cannot use a scalar value as an array in frameworkDirectory/cache/adapters/native.php at line 94
frameworkDirectory/cache/adapters/native.php at line 94
89
*/
90
public function set($key, $data, $expiration)
91
{
92
$this->loadData();
93
94
$this->cache[$key] = array(time() + $expiration, $data);
95
$this->isUpdated = true;
96
}
97
98
/**
99
* Delete data by key.
frameworkDirectory/cache.php at line 88
83
* @param int $lifetime
84
* @return mixed
85
*/
86
static public function set($key, $data, $lifetime = null)
87
{
88
return self::$adapter->set(self::escape($key), $data, $lifetime == null ? self::$config['defaultLifetime'] : $lifetime);
89
}
90
91
/**
92
* Delete data from cache.
93
*
applicationDirectory/models/orm/objects/option.php at line 73
68
$options = array('category', 'vendor', 'tag', 'location');
69
foreach (ORM::options()->setDistinct(true)->fetchColumns('typeURL')->fetchAll() as $option)
70
{
71
$options[] = $option['typeURL'];
72
}
73
Cache::set('sortOptions', $options, 3600);
74
}
75
76
return $options;
77
}
78
applicationDirectory/application.php at line 104
99
header('Content-Encoding: gzip');
100
});
101
102
I18n::setLanguage('en');
103
104
$availableOptions = \application\models\orm\objects\Option::createAvailableOptionsArray();
105
106
Request::addRoute('vendorsA',
107
'http://<title:(?!www)[^\.]+>\.' . self::state()->shortAppDomain() . '/account(/<accountController>(/<accountAction>(/<id>(/<idAction>))))',
108
'account');
109
frameworkDirectory/core.php at line 793
788
Loader::enable();
789
790
//Bootstrapping
791
try
792
{
793
static::bootstrap();
794
}
795
catch (\Exception $exception)
796
{
797
}
798
rootDirectory/index.php at line 43
38
39
require_once spiralDirectory . 'core.php';
40
require_once applicationDirectory . 'application.php';
41
42
//Starting
43
Application::start();
44
spiral\core\ApplicationModel::start ()
rootDirectory/index.php at line 43
Application::bootstrap ()
frameworkDirectory/core.php at line 793
application\models\orm\objects\Option::createAvailableOptionsArray ()
applicationDirectory/application.php at line 104
spiral\core\Cache::set (string
string(11) sortOptions
, array
array(8)
(
·    [0] = string(8) category
·    [1] = string(6) vendor
·    [2] = string(3) tag
·    [3] = string(8) location
·    [4] = string(6) season
·    [5] = string(5) color
·    [6] = string(5) style
·    [7] = string(9) sponsored
)
, 3600
integer(4) 3600
)
applicationDirectory/models/orm/objects/option.php at line 73
spiral\core\cache\adapters\Native->set (string
string(11) sortOptions
, array
array(8)
(
·    [0] = string(8) category
·    [1] = string(6) vendor
·    [2] = string(3) tag
·    [3] = string(8) location
·    [4] = string(6) season
·    [5] = string(5) color
·    [6] = string(5) style
·    [7] = string(9) sponsored
)
, 3600
integer(4) 3600
)
frameworkDirectory/cache.php at line 88
spiral\core\ApplicationModel::errorHandler (2
integer(1) 2
, string
string(37) Cannot use a scalar value as an array
, string
string(67) /var/www/maharaniweddings.com/spiral/core/cache/adapters/native.php
, 94
integer(2) 94
, array
array(3)
(
·    ['key'] = string(11) sortOptions
·    ['data'] = array(8)
·    (
·    ·    [0] = string(8) category
·    ·    [1] = string(6) vendor
·    ·    [2] = string(3) tag
·    ·    [3] = string(8) location
·    ·    [4] = string(6) season
·    ·    [5] = string(5) color
·    ·    [6] = string(5) style
·    ·    [7] = string(9) sponsored
·    )
·    ['expiration'] = integer(4) 3600
)
)
frameworkDirectory/cache/adapters/native.php at line 94
GET (1)
POST (0)
COOKIES (0)
SERVER (28)
Messages
spiral\core\Loader
Class "spiral\core\Debug" was found in "frameworkDirectory/debug.php", cached.
Application
Configuration "debug" loaded, cached.
spiral\core\Loader
Class "spiral\core\I18n" was found in "frameworkDirectory/i18n.php", cached.
Application
Configuration "i18n" loaded, cached.
spiral\core\Loader
Class "spiral\classes\Model" was found in "rootDirectory/spiral/classes/model.php", cached.
spiral\core\Loader
Class "spiral\core\orm\Object" was found in "frameworkDirectory/orm/object.php", cached.
spiral\core\Loader
Class "application\models\orm\objects\Option" was found in "applicationDirectory/models/orm/objects/option.php", cached.
spiral\core\Loader
Class "spiral\core\Cache" was found in "frameworkDirectory/cache.php", cached.
Application
Configuration "cache" loaded, cached.
spiral\core\Loader
Class "spiral\core\cache\Adapter" was found in "frameworkDirectory/cache/adapter.php", cached.
spiral\core\Loader
Class "spiral\core\cache\adapters\Native" was found in "frameworkDirectory/cache/adapters/native.php", cached.
spiral\core\Loader
Class "spiral\core\ORM" was found in "frameworkDirectory/orm.php", cached.
ORM
ORM Schema successfully loaded.
spiral\core\Loader
Class "spiral\core\dbal\Statement" was found in "frameworkDirectory/dbal/statement.php", cached.
spiral\core\Loader
Class "spiral\classes\paginator\Paginable" was found in "rootDirectory/spiral/classes/paginator/paginable.php", cached.
spiral\core\Loader
Class "spiral\core\orm\Table" was found in "frameworkDirectory/orm/table.php", cached.
spiral\core\Loader
Class "spiral\core\DBAL" was found in "frameworkDirectory/dbal.php", cached.
Application
Configuration "dbal" loaded, cached.
spiral\core\Loader
Class "spiral\core\dbal\Query" was found in "frameworkDirectory/dbal/query.php", cached.
DBAL
SELECT DISTINCT `typeURL` FROM `options`
spiral\core\Loader
Class "spiral\core\dbal\Result" was found in "frameworkDirectory/dbal/result.php", cached.
spiral\core\Loader
Class "spiral\core\Request" was found in "frameworkDirectory/request.php", cached.
Application
Configuration "request" loaded, cached.
request
Requested URL was performed using route "default", controller "gallery", action "photo".
error
ErrorException: Cannot use a scalar value as an array in frameworkDirectory/cache/adapters/native.php at line 94
spiral\core\Loader
Class "spiral\helpers\FileHelper" was found in "rootDirectory/spiral/helpers/fileHelper.php", cached.
spiral\core\Loader
Class "spiral\core\View" was found in "frameworkDirectory/view.php", cached.
Application
Configuration "views" loaded, cached.
spiral\core\Loader
Class "spiral\classes\php\Tokenizer" was found in "rootDirectory/spiral/classes/php/tokenizer.php", cached.
Thu, 23 Mar 2017 23:21:27 -0700
Client: 54.157.205.247, Unknown (Unknown)
Elapsed: 0.0403 seconds
Memory: 965.1 Kb
ErrorException
ErrorException: file_put_contents(dataDirectory/logging/errors.log): failed to open stream: Permission denied in rootDirectory/spiral/helpers/fileHelper.php at line 70
rootDirectory/spiral/helpers/fileHelper.php at line 70
65
* @param bool $append
66
* @return bool
67
*/
68
static public function write($filename, $data, $append = false)
69
{
70
return file_put_contents($filename, $data, $append ? FILE_APPEND | LOCK_EX : LOCK_EX);
71
}
72
73
/**
74
* Read file
75
*
spiral\core\ApplicationModel::shutdownHandler ()
rootDirectory/spiral/helpers/fileHelper.php at line 70
GET (1)
POST (0)
COOKIES (0)
SERVER (28)
Messages
spiral\core\Loader
Class "spiral\core\Debug" was found in "frameworkDirectory/debug.php", cached.
Application
Configuration "debug" loaded, cached.
spiral\core\Loader
Class "spiral\core\I18n" was found in "frameworkDirectory/i18n.php", cached.
Application
Configuration "i18n" loaded, cached.
spiral\core\Loader
Class "spiral\classes\Model" was found in "rootDirectory/spiral/classes/model.php", cached.
spiral\core\Loader
Class "spiral\core\orm\Object" was found in "frameworkDirectory/orm/object.php", cached.
spiral\core\Loader
Class "application\models\orm\objects\Option" was found in "applicationDirectory/models/orm/objects/option.php", cached.
spiral\core\Loader
Class "spiral\core\Cache" was found in "frameworkDirectory/cache.php", cached.
Application
Configuration "cache" loaded, cached.
spiral\core\Loader
Class "spiral\core\cache\Adapter" was found in "frameworkDirectory/cache/adapter.php", cached.
spiral\core\Loader
Class "spiral\core\cache\adapters\Native" was found in "frameworkDirectory/cache/adapters/native.php", cached.
spiral\core\Loader
Class "spiral\core\ORM" was found in "frameworkDirectory/orm.php", cached.
ORM
ORM Schema successfully loaded.
spiral\core\Loader
Class "spiral\core\dbal\Statement" was found in "frameworkDirectory/dbal/statement.php", cached.
spiral\core\Loader
Class "spiral\classes\paginator\Paginable" was found in "rootDirectory/spiral/classes/paginator/paginable.php", cached.
spiral\core\Loader
Class "spiral\core\orm\Table" was found in "frameworkDirectory/orm/table.php", cached.
spiral\core\Loader
Class "spiral\core\DBAL" was found in "frameworkDirectory/dbal.php", cached.
Application
Configuration "dbal" loaded, cached.
spiral\core\Loader
Class "spiral\core\dbal\Query" was found in "frameworkDirectory/dbal/query.php", cached.
DBAL
SELECT DISTINCT `typeURL` FROM `options`
spiral\core\Loader
Class "spiral\core\dbal\Result" was found in "frameworkDirectory/dbal/result.php", cached.
spiral\core\Loader
Class "spiral\core\Request" was found in "frameworkDirectory/request.php", cached.
Application
Configuration "request" loaded, cached.
request
Requested URL was performed using route "default", controller "gallery", action "photo".
error
ErrorException: Cannot use a scalar value as an array in frameworkDirectory/cache/adapters/native.php at line 94
spiral\core\Loader
Class "spiral\helpers\FileHelper" was found in "rootDirectory/spiral/helpers/fileHelper.php", cached.
spiral\core\Loader
Class "spiral\core\View" was found in "frameworkDirectory/view.php", cached.
Application
Configuration "views" loaded, cached.
spiral\core\Loader
Class "spiral\classes\php\Tokenizer" was found in "rootDirectory/spiral/classes/php/tokenizer.php", cached.
spiral\core\Loader
Class "spiral\core\Detect" was found in "frameworkDirectory/detect.php", cached.
Application
Configuration "detect" loaded, cached.
spiral\core\Loader
Class "spiral\core\detect\Client" was found in "frameworkDirectory/detect/client.php", cached.
spiral\core\Loader
Class "spiral\core\Response" was found in "frameworkDirectory/response.php", cached.
Application
Configuration "response" loaded, cached.
error
ErrorException: file_put_contents(dataDirectory/logging/errors.log): failed to open stream: Permission denied in rootDirectory/spiral/helpers/fileHelper.php at line 70
Thu, 23 Mar 2017 23:21:27 -0700
Client: 54.157.205.247, Unknown (Unknown)
Elapsed: 0.0455 seconds
Memory: 991.2 Kb