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/100470465-Lingerie-236/') 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.00026202201843262
SQL: DESCRIBE autoresponders; OK 0.00036907196044922
SQL: DESCRIBE blockedEmails; OK 0.00028204917907715
SQL: DESCRIBE blockedIpAddresses; OK 0.00027608871459961
SQL: DESCRIBE cartItems; OK 0.00028896331787109
SQL: DESCRIBE carts; OK 0.00029706954956055
SQL: DESCRIBE crossServer; OK 0.00024795532226562
SQL: DESCRIBE emailBlockers; OK 0.00023198127746582
SQL: DESCRIBE emailOrder; OK 0.00029587745666504
SQL: DESCRIBE facebookMembers; OK 0.00029397010803223
SQL: DESCRIBE ftpOrder; OK 0.00028014183044434
SQL: DESCRIBE itemFilenames; OK 0.00029587745666504
SQL: DESCRIBE itemHash; OK 0.00026488304138184
SQL: DESCRIBE itemMeta; OK 0.00031590461730957
SQL: DESCRIBE itemPhotoReleases; OK 0.0002751350402832
SQL: DESCRIBE itemPhotos; OK 0.0002899169921875
SQL: DESCRIBE itemPurchases; OK 0.00032615661621094
SQL: DESCRIBE itemResizeRequests; OK 0.00028896331787109
SQL: DESCRIBE itemSales; OK 0.00031113624572754
SQL: DESCRIBE itemVectors; OK 0.00031113624572754
SQL: DESCRIBE items; OK 0.00036096572875977
SQL: DESCRIBE itemsRemoved; OK 0.0002739429473877
SQL: DESCRIBE keywordSearches; OK 0.00023698806762695
SQL: DESCRIBE keywordTranslations; OK 0.00026893615722656
SQL: DESCRIBE keywords; OK 0.00023913383483887
SQL: DESCRIBE lightboxCollections; OK 0.00021815299987793
SQL: DESCRIBE lightboxMap; OK 0.0002138614654541
SQL: DESCRIBE lightboxThumbs; OK 0.0002129077911377
SQL: DESCRIBE lightboxes; OK 0.00023484230041504
SQL: DESCRIBE memberReferralEarnings; OK 0.00023198127746582
SQL: DESCRIBE memberSellers; OK 0.00026607513427734
SQL: DESCRIBE members; OK 0.00028109550476074
SQL: DESCRIBE packages; OK 0.00027799606323242
SQL: DESCRIBE searchAi; OK 0.00020599365234375
SQL: DESCRIBE searchCategories; OK 0.00021886825561523
SQL: DESCRIBE searchSessions; OK 0.00026893615722656
SQL: DESCRIBE searchShows; OK 0.00020098686218262
SQL: DESCRIBE searchStatistics; OK 0.00021886825561523
SQL: DESCRIBE searchSuggestions; OK 0.00021791458129883
SQL: DESCRIBE searchTags; OK 0.0002288818359375
SQL: DESCRIBE sellerFormW8; OK 0.0002751350402832
SQL: DESCRIBE sellerForms; OK 0.00023007392883301
SQL: DESCRIBE sellerPayouts; OK 0.00022697448730469
SQL: DESCRIBE sessions; OK 0.0002138614654541
SQL: DESCRIBE slideshow; OK 0.00023388862609863
SQL: DESCRIBE sphinx; OK 0.00021004676818848
SQL: DESCRIBE statistics; OK 0.00024509429931641
SQL: DESCRIBE statuses; OK 0.00020599365234375
SQL: DESCRIBE topics; OK 0.00022602081298828
SQL: DESCRIBE usersEarnings; OK 0.00023889541625977
SQL: DESCRIBE vectorScale; OK 0.00021505355834961
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.