spiralException: Unable to load configuration section 'ormSchema', file not found. in spiralCore/spiral.php at line 167
spiralCore/spiral.php
157        /**
158         * Trying to load configuration from cache.
159         */
160        if ((self::$globalConfig[$section] = spiralEvents::callEvent('loadConfig',
161                $filename)) != $filename
162        ) {
163            return self::$globalConfig[$section];
164        }
165
166        if (spiralDebug && !file_exists($filename)) {
167            throw new spiralException("Unable to load configuration section '$section', file not found.");
168        }
169
170        /**
171         * Configuration should be saved in raw php array,
172         * we not checks files exists for production.
173         */
174        self::$globalConfig[$section] = (include $filename);
175        spiralDebug && self::debugMessage("Configuration section '$section' was successfully loaded.");
176
177        /**
spiralCore/components/orm.php
56     * Creates orm aggregator if required.
57     * Database schema generation.
58     */
59    public function __construct()
60    {
61        if (spiralDebug && !spiralCore::configExists('ormSchema', true))
62        {
63            self::updateSchema();
64        }
65
66        self::$schema = spiralCore::loadConfig('ormSchema', true);
67        spiralDebug && spiralCore::debugMessage("Database schema (orm) was successfully loaded.");
68    }
69
70    /**
71     * Create database schema or refresh exists.
72     * All columns and tables will be grabbed from database via driver,
73     * relationships between tables should be described in spiralConfig/orm/
74     *
75     * @static
76     */
spiralCore/loader.php
285
286        if (!class_exists($name, false)) {
287            throw new spiralException("Unable to load class '$name', required class declaration not found in '$result[0]'.");
288        }
289
290        /**
291         * If class is instance of spiralComponent, we should alias it into spiralCore.
292         */
293        if (utils::isSubclass($name, 'spiralComponent')) {
294            $result[1] = $name;
295            spiralCore::addComponent($name, new $name());
296            spiralDebug && spiralCore::debugMessage("Class '$name' was aliased into the core as component.");
297        }
298
299        self::$loadmap[$name] = $result;
300
301        /**
302         * We can update loadmap each time it was changed,
303         * it makes first runs really slow, but after all calls will be forced.
304         */
305        utils::saveConfig('loadmap', self::$loadmap, false);
spiralApplication/actions/item.php
18     */
19    const cacheSimilar = 2592000;
20
21    /**
22     * Show item.
23     *
24     * @param int|bool $publicID
25     */
26    public function display($publicID = false)
27    {
28        $item = orm::items()->byPublicID((int)$publicID)->forceChildrens('meta', 'photo', 'vector')->fetchOne();
29        if (!$item->isLoaded() || $item->status != 'active')
30        {
31            self::callError('notFound');
32        }
33
34        //Metadata
35        $keywords = $item->meta->keywords;
36        $keywords = explode(',', $keywords);
37        if (count($keywords) < 2)
38        {
spiralRoot/webroot/index.php
130}
131
132/**
133 * Nothing should be sent to user if there is not spiralDebug.
134 */
135ob_start();
136
137/**
138 * Calling parent action.
139 */
140spiralCore::callAction(request::$action, request::$method, request::$arguments);
System messages
Route 'spiralCore/helpers/' was successfully added into loader.
Route 'spiralCore/components/' was successfully added into loader.
Route 'spiralCore/extensions/' was successfully added into loader.
Route 'spiralCore/' was successfully added into loader.
Route 'spiralApplication/' was successfully added into loader.
Route 'spiralApplication/classes/' was successfully added into loader.
Declaration file 'spiralCore/components/i18n.php' was successfully loaded for class 'i18n' (no loadmap).
Declaration file 'spiralCore/helpers/utils.php' was successfully loaded for class 'utils' (using loadmap).
Configuration section 'i18n' was successfully loaded.
Class 'i18n' was aliased into the core as component.
Declaration file 'spiralCore/helpers/file.php' was successfully loaded for class 'file' (no loadmap).
Loadmap was updated and successfully saved at disc.
Loadmap was updated and successfully saved at disc.
Declaration file 'spiralApplication/classes/meta.php' was successfully loaded for class 'meta' (no loadmap).
Configuration section 'models/meta' was successfully loaded.
Declaration file 'spiralCore/components/request.php' was successfully loaded for class 'request' (no loadmap).
Enterpoint ('/vector/100462604-Pop-star-background-Colored-wing-and-white-star-on-blue/') was allocated as as action 'item' with method 'display'.
Class 'request' was aliased into the core as component.
Loadmap was updated and successfully saved at disc.
Declaration file 'spiralCore/components/response.php' was successfully loaded for class 'response' (no loadmap).
Class 'response' was aliased into the core as component.
Loadmap was updated and successfully saved at disc.
Class 'meta' was aliased into the core as component.
Loadmap was updated and successfully saved at disc.
Declaration file 'spiralApplication/classes/member.php' was successfully loaded for class 'member' (no loadmap).
Configuration section 'models/member' was successfully loaded.
Class 'member' was aliased into the core as component.
Loadmap was updated and successfully saved at disc.
Declaration file 'spiralApplication/classes/commerce.php' was successfully loaded for class 'commerce' (no loadmap).
Configuration section 'models/commerce' was successfully loaded.
Class 'commerce' was aliased into the core as component.
Loadmap was updated and successfully saved at disc.
Declaration file 'spiralCore/helpers/inflector.php' was successfully loaded for class 'inflector' (using loadmap).
Configuration section 'helpers/inflector' was successfully loaded.
Declaration file 'spiralApplication/actions/item.php' was successfully loaded for class 'actionItem' (no loadmap).
Loadmap was updated and successfully saved at disc.
Declaration file 'spiralCore/components/orm.php' was successfully loaded for class 'orm' (no loadmap).
Declaration file 'spiralCore/components/orm/schema.php' was successfully loaded for class 'ormSchema' (no loadmap).
Loadmap was updated and successfully saved at disc.
Configuration section 'orm' was successfully loaded.
Declaration file 'spiralCore/components/dbal.php' was successfully loaded for class 'dbal' (no loadmap).
Configuration section 'dbal' was successfully loaded.
Class 'dbal' was aliased into the core as component.
Loadmap was updated and successfully saved at disc.
Declaration file 'spiralCore/components/orm/drivers/mysql.php' was successfully loaded for class 'ormDriverMysql' (no loadmap).
Loadmap was updated and successfully saved at disc.
SQL: SHOW TABLES; OK 0.00028395652770996
SQL: DESCRIBE autoresponders; OK 0.00075507164001465
SQL: DESCRIBE blockedEmails; OK 0.0019450187683105
SQL: DESCRIBE blockedIpAddresses; OK 0.00040984153747559
SQL: DESCRIBE cartItems; OK 0.00050687789916992
SQL: DESCRIBE carts; OK 0.00036406517028809
SQL: DESCRIBE crossServer; OK 0.00039792060852051
SQL: DESCRIBE emailBlockers; OK 0.00030517578125
SQL: DESCRIBE emailOrder; OK 0.00047898292541504
SQL: DESCRIBE facebookMembers; OK 0.00048613548278809
SQL: DESCRIBE ftpOrder; OK 0.0004580020904541
SQL: DESCRIBE itemFilenames; OK 0.00045108795166016
SQL: DESCRIBE itemHash; OK 0.0004730224609375
SQL: DESCRIBE itemMeta; OK 0.00056290626525879
SQL: DESCRIBE itemPhotoReleases; OK 0.00044989585876465
SQL: DESCRIBE itemPhotos; OK 0.00047707557678223
SQL: DESCRIBE itemPurchases; OK 0.00050687789916992
SQL: DESCRIBE itemResizeRequests; OK 0.00034213066101074
SQL: DESCRIBE itemSales; OK 0.00036907196044922
SQL: DESCRIBE itemVectors; OK 0.0004880428314209
SQL: DESCRIBE items; OK 0.00043797492980957
SQL: DESCRIBE itemsRemoved; OK 0.00033807754516602
SQL: DESCRIBE keywordSearches; OK 0.00029397010803223
SQL: DESCRIBE keywordTranslations; OK 0.00045299530029297
SQL: DESCRIBE keywords; OK 0.00035285949707031
SQL: DESCRIBE lightboxCollections; OK 0.00033998489379883
SQL: DESCRIBE lightboxMap; OK 0.00035285949707031
SQL: DESCRIBE lightboxThumbs; OK 0.00033688545227051
SQL: DESCRIBE lightboxes; OK 0.00037479400634766
SQL: DESCRIBE memberReferralEarnings; OK 0.00037217140197754
SQL: DESCRIBE memberSellers; OK 0.00053906440734863
SQL: DESCRIBE members; OK 0.0004580020904541
SQL: DESCRIBE packages; OK 0.00045609474182129
SQL: DESCRIBE searchAi; OK 0.00033116340637207
SQL: DESCRIBE searchCategories; OK 0.00035381317138672
SQL: DESCRIBE searchSessions; OK 0.00043988227844238
SQL: DESCRIBE searchShows; OK 0.00031208992004395
SQL: DESCRIBE searchStatistics; OK 0.00035595893859863
SQL: DESCRIBE searchSuggestions; OK 0.0003209114074707
SQL: DESCRIBE searchTags; OK 0.00038003921508789
SQL: DESCRIBE sellerFormW8; OK 0.00046300888061523
SQL: DESCRIBE sellerForms; OK 0.00035691261291504
SQL: DESCRIBE sellerPayouts; OK 0.00038504600524902
SQL: DESCRIBE sessions; OK 0.0003349781036377
SQL: DESCRIBE slideshow; OK 0.00037312507629395
SQL: DESCRIBE sphinx; OK 0.00032806396484375
SQL: DESCRIBE statistics; OK 0.00039505958557129
SQL: DESCRIBE statuses; OK 0.00032401084899902
SQL: DESCRIBE topics; OK 0.00035500526428223
SQL: DESCRIBE usersEarnings; OK 0.00040793418884277
SQL: DESCRIBE vectorScale; OK 0.0003359317779541
Declaration file 'spiralCore/components/orm/object.php' was successfully loaded for class 'ormObject' (no loadmap).
Loadmap was updated and successfully saved at disc.
Declaration file 'spiralApplication/classes/orm/objects/item/meta.php' was successfully loaded for class 'ormObjectItemMeta' (no loadmap).
Loadmap was updated and successfully saved at disc.
Declaration file 'spiralApplication/classes/orm/objects/item/purchase.php' was successfully loaded for class 'ormObjectItemPurchase' (no loadmap).
Loadmap was updated and successfully saved at disc.
Declaration file 'spiralApplication/classes/orm/objects/item.php' was successfully loaded for class 'ormObjectItem' (no loadmap).
Loadmap was updated and successfully saved at disc.
Declaration file 'spiralApplication/classes/orm/objects/lightbox.php' was successfully loaded for class 'ormObjectLightbox' (no loadmap).
Loadmap was updated and successfully saved at disc.
Declaration file 'spiralApplication/classes/orm/objects/member/seller.php' was successfully loaded for class 'ormObjectMemberSeller' (no loadmap).
Loadmap was updated and successfully saved at disc.
Declaration file 'spiralApplication/classes/orm/objects/member.php' was successfully loaded for class 'ormObjectMember' (no loadmap).
Loadmap was updated and successfully saved at disc.
Declaration file 'spiralApplication/classes/orm/objects/package.php' was successfully loaded for class 'ormObjectPackage' (no loadmap).
Loadmap was updated and successfully saved at disc.
Configuration section 'orm/cartItem' was successfully loaded.
Configuration section 'orm/itemPurchase' was successfully loaded.
Configuration section 'orm/item' was successfully loaded.
Configuration section 'orm/lightbox' was successfully loaded.
Configuration section 'orm/memberSeller' was successfully loaded.
Configuration section 'orm/member' was successfully loaded.
Configuration section 'orm/package' was successfully loaded.
Configuration section 'orm/searchCategory' was successfully loaded.
Configuration section 'orm/sellerForm' was successfully loaded.
Declaration file 'spiralCore/components/orm/virtual/documentation.php' was successfully loaded for class 'ormVirtualDocumentation' (no loadmap).
Loadmap was updated and successfully saved at disc.
Declaration file 'spiralCore/extensions/virtual/class.php' was successfully loaded for class 'virtualClass' (no loadmap).
Loadmap was updated and successfully saved at disc.
Declaration file 'spiralCore/components/orm/selector.php' was successfully loaded for class 'ormSelector' (no loadmap).
Loadmap was updated and successfully saved at disc.
Declaration file 'spiralCore/extensions/virtual/method.php' was successfully loaded for class 'virtualMethod' (no loadmap).
Loadmap was updated and successfully saved at disc.
Database schema (orm) was successfully generated.