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 ('/photo/901728780-portrait-of-a-businessman/') 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.00031900405883789
SQL: DESCRIBE autoresponders; OK 0.0004279613494873
SQL: DESCRIBE blockedEmails; OK 0.00034904479980469
SQL: DESCRIBE blockedIpAddresses; OK 0.00033903121948242
SQL: DESCRIBE cartItems; OK 0.00035309791564941
SQL: DESCRIBE carts; OK 0.00035595893859863
SQL: DESCRIBE crossServer; OK 0.00036191940307617
SQL: DESCRIBE emailBlockers; OK 0.00029301643371582
SQL: DESCRIBE emailOrder; OK 0.00039386749267578
SQL: DESCRIBE facebookMembers; OK 0.0003809928894043
SQL: DESCRIBE ftpOrder; OK 0.00034618377685547
SQL: DESCRIBE itemFilenames; OK 0.0003361701965332
SQL: DESCRIBE itemHash; OK 0.00033998489379883
SQL: DESCRIBE itemMeta; OK 0.00038719177246094
SQL: DESCRIBE itemPhotoReleases; OK 0.00034308433532715
SQL: DESCRIBE itemPhotos; OK 0.00036406517028809
SQL: DESCRIBE itemPurchases; OK 0.0003969669342041
SQL: DESCRIBE itemResizeRequests; OK 0.00034785270690918
SQL: DESCRIBE itemSales; OK 0.00041294097900391
SQL: DESCRIBE itemVectors; OK 0.00037217140197754
SQL: DESCRIBE items; OK 0.00041699409484863
SQL: DESCRIBE itemsRemoved; OK 0.00033807754516602
SQL: DESCRIBE keywordSearches; OK 0.00029611587524414
SQL: DESCRIBE keywordTranslations; OK 0.00029802322387695
SQL: DESCRIBE keywords; OK 0.00029897689819336
SQL: DESCRIBE lightboxCollections; OK 0.00026416778564453
SQL: DESCRIBE lightboxMap; OK 0.00026202201843262
SQL: DESCRIBE lightboxThumbs; OK 0.00025582313537598
SQL: DESCRIBE lightboxes; OK 0.00027799606323242
SQL: DESCRIBE memberReferralEarnings; OK 0.0002748966217041
SQL: DESCRIBE memberSellers; OK 0.0003209114074707
SQL: DESCRIBE members; OK 0.00032901763916016
SQL: DESCRIBE packages; OK 0.00033187866210938
SQL: DESCRIBE searchAi; OK 0.0002589225769043
SQL: DESCRIBE searchCategories; OK 0.00027704238891602
SQL: DESCRIBE searchSessions; OK 0.00031900405883789
SQL: DESCRIBE searchShows; OK 0.00025510787963867
SQL: DESCRIBE searchStatistics; OK 0.0002739429473877
SQL: DESCRIBE searchSuggestions; OK 0.00025486946105957
SQL: DESCRIBE searchTags; OK 0.00027298927307129
SQL: DESCRIBE sellerFormW8; OK 0.00033211708068848
SQL: DESCRIBE sellerForms; OK 0.00027894973754883
SQL: DESCRIBE sellerPayouts; OK 0.00031185150146484
SQL: DESCRIBE sessions; OK 0.00025677680969238
SQL: DESCRIBE slideshow; OK 0.00028085708618164
SQL: DESCRIBE sphinx; OK 0.00025701522827148
SQL: DESCRIBE statistics; OK 0.00029206275939941
SQL: DESCRIBE statuses; OK 0.00025081634521484
SQL: DESCRIBE topics; OK 0.00027704238891602
SQL: DESCRIBE usersEarnings; OK 0.00028800964355469
SQL: DESCRIBE vectorScale; OK 0.00026202201843262
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.