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/800884649-Control/') 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.00026416778564453
SQL: DESCRIBE autoresponders; OK 0.00034999847412109
SQL: DESCRIBE blockedEmails; OK 0.00027704238891602
SQL: DESCRIBE blockedIpAddresses; OK 0.00026893615722656
SQL: DESCRIBE cartItems; OK 0.00028204917907715
SQL: DESCRIBE carts; OK 0.00028705596923828
SQL: DESCRIBE crossServer; OK 0.00023818016052246
SQL: DESCRIBE emailBlockers; OK 0.00022697448730469
SQL: DESCRIBE emailOrder; OK 0.0002901554107666
SQL: DESCRIBE facebookMembers; OK 0.00028896331787109
SQL: DESCRIBE ftpOrder; OK 0.0002739429473877
SQL: DESCRIBE itemFilenames; OK 0.0002601146697998
SQL: DESCRIBE itemHash; OK 0.0002739429473877
SQL: DESCRIBE itemMeta; OK 0.0003209114074707
SQL: DESCRIBE itemPhotoReleases; OK 0.00027799606323242
SQL: DESCRIBE itemPhotos; OK 0.00029420852661133
SQL: DESCRIBE itemPurchases; OK 0.00032806396484375
SQL: DESCRIBE itemResizeRequests; OK 0.00028300285339355
SQL: DESCRIBE itemSales; OK 0.00030803680419922
SQL: DESCRIBE itemVectors; OK 0.00030517578125
SQL: DESCRIBE items; OK 0.0003509521484375
SQL: DESCRIBE itemsRemoved; OK 0.0002739429473877
SQL: DESCRIBE keywordSearches; OK 0.00023794174194336
SQL: DESCRIBE keywordTranslations; OK 0.00023818016052246
SQL: DESCRIBE keywords; OK 0.00025391578674316
SQL: DESCRIBE lightboxCollections; OK 0.0002131462097168
SQL: DESCRIBE lightboxMap; OK 0.00020694732666016
SQL: DESCRIBE lightboxThumbs; OK 0.00020503997802734
SQL: DESCRIBE lightboxes; OK 0.00022602081298828
SQL: DESCRIBE memberReferralEarnings; OK 0.00022196769714355
SQL: DESCRIBE memberSellers; OK 0.00025391578674316
SQL: DESCRIBE members; OK 0.00026917457580566
SQL: DESCRIBE packages; OK 0.00026893615722656
SQL: DESCRIBE searchAi; OK 0.00020480155944824
SQL: DESCRIBE searchCategories; OK 0.00021696090698242
SQL: DESCRIBE searchSessions; OK 0.00026106834411621
SQL: DESCRIBE searchShows; OK 0.0001990795135498
SQL: DESCRIBE searchStatistics; OK 0.00021696090698242
SQL: DESCRIBE searchSuggestions; OK 0.00019717216491699
SQL: DESCRIBE searchTags; OK 0.0002138614654541
SQL: DESCRIBE sellerFormW8; OK 0.00030517578125
SQL: DESCRIBE sellerForms; OK 0.0002291202545166
SQL: DESCRIBE sellerPayouts; OK 0.00022196769714355
SQL: DESCRIBE sessions; OK 0.00020885467529297
SQL: DESCRIBE slideshow; OK 0.00022602081298828
SQL: DESCRIBE sphinx; OK 0.00020694732666016
SQL: DESCRIBE statistics; OK 0.00023889541625977
SQL: DESCRIBE statuses; OK 0.00020503997802734
SQL: DESCRIBE topics; OK 0.00022196769714355
SQL: DESCRIBE usersEarnings; OK 0.00023913383483887
SQL: DESCRIBE vectorScale; OK 0.00020909309387207
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.