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/801061458-Eggs/') 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.0003199577331543
SQL: DESCRIBE autoresponders; OK 0.00042200088500977
SQL: DESCRIBE blockedEmails; OK 0.00036215782165527
SQL: DESCRIBE blockedIpAddresses; OK 0.00035810470581055
SQL: DESCRIBE cartItems; OK 0.00039505958557129
SQL: DESCRIBE carts; OK 0.00039100646972656
SQL: DESCRIBE crossServer; OK 0.00032711029052734
SQL: DESCRIBE emailBlockers; OK 0.00031399726867676
SQL: DESCRIBE emailOrder; OK 0.00038385391235352
SQL: DESCRIBE facebookMembers; OK 0.0003819465637207
SQL: DESCRIBE ftpOrder; OK 0.00037717819213867
SQL: DESCRIBE itemFilenames; OK 0.00036978721618652
SQL: DESCRIBE itemHash; OK 0.00035786628723145
SQL: DESCRIBE itemMeta; OK 0.00041413307189941
SQL: DESCRIBE itemPhotoReleases; OK 0.00037407875061035
SQL: DESCRIBE itemPhotos; OK 0.00039100646972656
SQL: DESCRIBE itemPurchases; OK 0.00042510032653809
SQL: DESCRIBE itemResizeRequests; OK 0.00078797340393066
SQL: DESCRIBE itemSales; OK 0.00041699409484863
SQL: DESCRIBE itemVectors; OK 0.00048303604125977
SQL: DESCRIBE items; OK 0.00050497055053711
SQL: DESCRIBE itemsRemoved; OK 0.00047898292541504
SQL: DESCRIBE keywordSearches; OK 0.00037097930908203
SQL: DESCRIBE keywordTranslations; OK 0.00039315223693848
SQL: DESCRIBE keywords; OK 0.00031900405883789
SQL: DESCRIBE lightboxCollections; OK 0.0004119873046875
SQL: DESCRIBE lightboxMap; OK 0.00029516220092773
SQL: DESCRIBE lightboxThumbs; OK 0.00030112266540527
SQL: DESCRIBE lightboxes; OK 0.00051212310791016
SQL: DESCRIBE memberReferralEarnings; OK 0.00030899047851562
SQL: DESCRIBE memberSellers; OK 0.00046205520629883
SQL: DESCRIBE members; OK 0.00035309791564941
SQL: DESCRIBE packages; OK 0.00037598609924316
SQL: DESCRIBE searchAi; OK 0.00027012825012207
SQL: DESCRIBE searchCategories; OK 0.00028610229492188
SQL: DESCRIBE searchSessions; OK 0.00034785270690918
SQL: DESCRIBE searchShows; OK 0.00026893615722656
SQL: DESCRIBE searchStatistics; OK 0.00028300285339355
SQL: DESCRIBE searchSuggestions; OK 0.00026297569274902
SQL: DESCRIBE searchTags; OK 0.00028300285339355
SQL: DESCRIBE sellerFormW8; OK 0.00033903121948242
SQL: DESCRIBE sellerForms; OK 0.0002899169921875
SQL: DESCRIBE sellerPayouts; OK 0.00028896331787109
SQL: DESCRIBE sessions; OK 0.00027704238891602
SQL: DESCRIBE slideshow; OK 0.00033783912658691
SQL: DESCRIBE sphinx; OK 0.0002748966217041
SQL: DESCRIBE statistics; OK 0.00030899047851562
SQL: DESCRIBE statuses; OK 0.00026702880859375
SQL: DESCRIBE topics; OK 0.00029087066650391
SQL: DESCRIBE usersEarnings; OK 0.00030183792114258
SQL: DESCRIBE vectorScale; OK 0.00028109550476074
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.