THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

Rejoignez la communauté sur le Discord Thelia : https://discord.gg/YgwpYEE3y3

Offline


Bonjour,

Sur un Thelia en 2.4.4 et suite à l'activation du module Carousel, j'obtiens le message d'erreur suivant quand j'essaie d'accéder aux réglages du module

TableNotFoundException in DatabaseMap.php line 152: 
Cannot fetch TableMap for undefined table: carousel_i18n.

J'ai bien vidé les caches et la table a bien été crée lors de l'installation du module. Avez-vous déjà rencontré cette erreur ?

Offline


On peut avoir la stack trace complète ?


OpenStudio Toulouse

Offline


Oui bien sûr

    in DatabaseMap.php line 152
    at DatabaseMap->getTable('carousel_i18n') in ModelJoin.php line 213
    at ModelJoin->buildFromJoin(object(Join)) in ModelCriteria.php line 608
    at ModelCriteria->addJoinObject(object(Join), 'requested_locale_i18n') in ModelCriteriaTools.php line 197
    at ModelCriteriaTools::getBackEndI18n(object(CarouselQuery), 'fr_FR', array('ALT', 'TITLE', 'CHAPO', 'DESCRIPTION', 'POSTSCRIPTUM'), 'carousel', 'ID', 'carousel') in ModelCriteriaTools.php line 266
    at ModelCriteriaTools::getI18n(true, '1', object(CarouselQuery), 'fr_FR', array('ALT', 'TITLE', 'CHAPO', 'DESCRIPTION', 'POSTSCRIPTUM'), null, 'ID', false) in BaseI18nLoop.php line 75
    at BaseI18nLoop->configureI18nProcessing(object(CarouselQuery), array('ALT', 'TITLE', 'CHAPO', 'DESCRIPTION', 'POSTSCRIPTUM')) in CarouselLoop.php line 209
    at CarouselLoop->buildModelCriteria() in BaseLoop.php line 512
    at BaseLoop->exec(null) in TheliaLoop.php line 174
    at TheliaLoop->theliaLoop(array('name' => 'carousel.image', 'type' => 'carousel', 'width' => '550', 'height' => '200', 'resize_mode' => 'borders', 'backend_context' => '1', 'lang' => '1', 'filter_disable_slides' => false), null, object(Smarty_Internal_Template), true) in e7bd4e1d392b2b481af3fc4077f79745d317a236_0.file.module_configuration.html.php line 142
    at content_624b555d871979_71433039(object(Smarty_Internal_Template)) in smarty_template_resource_base.php line 123
    at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(Smarty_Internal_Template)) in smarty_template_compiled.php line 114
    at Smarty_Template_Compiled->render(object(Smarty_Internal_Template)) in smarty_internal_template.php line 216
    at Smarty_Internal_Template->render(false, '0') in smarty_internal_templatebase.php line 232
    at Smarty_Internal_TemplateBase->_execute(object(Smarty_Internal_Template), null, null, null, '0') in smarty_internal_templatebase.php line 116
    at Smarty_Internal_TemplateBase->fetch('file:/Applications/MAMP/htdocs/electricmoov/local/modules/Carousel/templates/backOffice/default/module_configuration.html') in SmartyParser.php line 507
    at SmartyParser->internalRenderer('file', '/Applications/MAMP/htdocs/electricmoov/local/modules/Carousel/templates/backOffice/default/module_configuration.html', array('SCRIPT_NAME' => '/index_dev.php', 'THELIA_VERSION' => '2.4.4', 'module_code' => 'Carousel', 'edit_language_id' => '1', 'edit_language_locale' => 'fr_FR', 'edit_currency_id' => '1', 'locale' => 'fr_FR', 'lang_code' => 'fr', 'lang_id' => '1', 'current_url' => 'http://electricmoov.wip/index_dev.php/admin/module/Carousel', 'app' => object(stdClass), 'admin_current_location' => 'modules', 'asset_url' => 'http://electricmoov.wip/assets/backOffice/default/template-assets/assets/img/7000c29.png', 'LOOP_COUNT' => '1', 'LOOP_TOTAL' => '1', 'ID' => null, 'TITLE' => null, 'CODE' => null, 'LOCALE' => null, 'URL' => null, 'ACTIVE' => null, 'VISIBLE' => null, 'IS_DEFAULT' => null, 'DATE_FORMAT' => null, 'TIME_FORMAT' => null, 'DECIMAL_SEPARATOR' => null, 'THOUSANDS_SEPARATOR' => null, 'DECIMAL_COUNT' => null, 'POSITION' => null, 'CREATE_DATE' => null, 'UPDATE_DATE' => null, 'IS_TRANSLATED' => null, 'CHAPO' => null, 'DESCRIPTION' => null, 'POSTSCRIPTUM' => null, 'TYPE' => null, 'CATEGORY' => null, 'VERSION' => null, 'CLASS' => null, 'MANDATORY' => null, 'HIDDEN' => null, 'EXISTS' => null, 'CONFIGURABLE' => null, 'HOOKABLE' => null, 'location' => 'module_configuration', 'modulecode' => 'Carousel'), true) in SmartyParser.php line 533
    at SmartyParser->render('/Applications/MAMP/htdocs/electricmoov/local/modules/Carousel/templates/backOffice/default/module_configuration.html', array('SCRIPT_NAME' => '/index_dev.php', 'THELIA_VERSION' => '2.4.4', 'module_code' => 'Carousel', 'edit_language_id' => '1', 'edit_language_locale' => 'fr_FR', 'edit_currency_id' => '1', 'locale' => 'fr_FR', 'lang_code' => 'fr', 'lang_id' => '1', 'current_url' => 'http://electricmoov.wip/index_dev.php/admin/module/Carousel', 'app' => object(stdClass), 'admin_current_location' => 'modules', 'asset_url' => 'http://electricmoov.wip/assets/backOffice/default/template-assets/assets/img/7000c29.png', 'LOOP_COUNT' => '1', 'LOOP_TOTAL' => '1', 'ID' => null, 'TITLE' => null, 'CODE' => null, 'LOCALE' => null, 'URL' => null, 'ACTIVE' => null, 'VISIBLE' => null, 'IS_DEFAULT' => null, 'DATE_FORMAT' => null, 'TIME_FORMAT' => null, 'DECIMAL_SEPARATOR' => null, 'THOUSANDS_SEPARATOR' => null, 'DECIMAL_COUNT' => null, 'POSITION' => null, 'CREATE_DATE' => null, 'UPDATE_DATE' => null, 'IS_TRANSLATED' => null, 'CHAPO' => null, 'DESCRIPTION' => null, 'POSTSCRIPTUM' => null, 'TYPE' => null, 'CATEGORY' => null, 'VERSION' => null, 'CLASS' => null, 'MANDATORY' => null, 'HIDDEN' => null, 'EXISTS' => null, 'CONFIGURABLE' => null, 'HOOKABLE' => null, 'location' => 'module_configuration', 'modulecode' => 'Carousel')) in BaseHook.php line 144
    at BaseHook->render('module_configuration.html', array('SCRIPT_NAME' => '/index_dev.php', 'THELIA_VERSION' => '2.4.4', 'module_code' => 'Carousel', 'edit_language_id' => '1', 'edit_language_locale' => 'fr_FR', 'edit_currency_id' => '1', 'locale' => 'fr_FR', 'lang_code' => 'fr', 'lang_id' => '1', 'current_url' => 'http://electricmoov.wip/index_dev.php/admin/module/Carousel', 'app' => object(stdClass), 'admin_current_location' => 'modules', 'asset_url' => 'http://electricmoov.wip/assets/backOffice/default/template-assets/assets/img/7000c29.png', 'LOOP_COUNT' => '1', 'LOOP_TOTAL' => '1', 'ID' => null, 'TITLE' => null, 'CODE' => null, 'LOCALE' => null, 'URL' => null, 'ACTIVE' => null, 'VISIBLE' => null, 'IS_DEFAULT' => null, 'DATE_FORMAT' => null, 'TIME_FORMAT' => null, 'DECIMAL_SEPARATOR' => null, 'THOUSANDS_SEPARATOR' => null, 'DECIMAL_COUNT' => null, 'POSITION' => null, 'CREATE_DATE' => null, 'UPDATE_DATE' => null, 'IS_TRANSLATED' => null, 'CHAPO' => null, 'DESCRIPTION' => null, 'POSTSCRIPTUM' => null, 'TYPE' => null, 'CATEGORY' => null, 'VERSION' => null, 'CLASS' => null, 'MANDATORY' => null, 'HIDDEN' => null, 'EXISTS' => null, 'CONFIGURABLE' => null, 'HOOKABLE' => null, 'location' => 'module_configuration', 'modulecode' => 'Carousel')) in BaseHook.php line 104
    at BaseHook->insertTemplate(object(HookRenderEvent), 'hook.2.module.configuration.34', object(ContainerAwareEventDispatcher)) in EventDispatcher.php line 184
    at EventDispatcher->doDispatch(array(array(object(DefaultHook), 'insertTemplate')), 'hook.2.module.configuration.34', object(HookRenderEvent)) in EventDispatcher.php line 46
    at EventDispatcher->dispatch('hook.2.module.configuration.34', object(HookRenderEvent)) in Hook.php line 107
    at Hook->processHookFunction(array('name' => 'module.configuration', 'location' => 'module_configuration', 'modulecode' => 'Carousel'), object(Smarty_Internal_Template)) in AbstractSmartyPlugin.php line 118
    at AbstractSmartyPlugin->__call('processHookFunction', array(array('name' => 'module.configuration', 'location' => 'module_configuration', 'modulecode' => 'Carousel'), object(Smarty_Internal_Template))) in b84d954e58a9cd42716f1072662fe2628db53443_0.file.module-configure.html.php line 143
    at Block_945917266624b555bcc3581_46010105->callBlock(object(Smarty_Internal_Template)) in smarty_internal_runtime_inheritance.php line 248
    at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_945917266624b555bcc3581_46010105), object(Smarty_Internal_Template)) in smarty_internal_runtime_inheritance.php line 184
    at Smarty_Internal_Runtime_Inheritance->process(object(Smarty_Internal_Template), object(Block_945917266624b555bcc3581_46010105), object(Block_1892294800624b555be0a675_18755958)) in smarty_internal_runtime_inheritance.php line 186
    at Smarty_Internal_Runtime_Inheritance->process(object(Smarty_Internal_Template), object(Block_1892294800624b555be0a675_18755958)) in smarty_internal_runtime_inheritance.php line 156
    at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(Smarty_Internal_Template), 'Block_1892294800624b555be0a675_18755958', 'main-content') in 8cdaeffcc466cb77dac49cbba8f9ebfe8abe8a73_0.file.admin-layout.tpl.php line 292
    at content_624b555be5d272_85829721(object(Smarty_Internal_Template)) in smarty_template_resource_base.php line 123
    at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(Smarty_Internal_Template)) in smarty_template_compiled.php line 114
    at Smarty_Template_Compiled->render(object(Smarty_Internal_Template)) in smarty_internal_template.php line 216
    at Smarty_Internal_Template->render() in smarty_internal_template.php line 385
    at Smarty_Internal_Template->_subTemplateRender('admin-layout.tpl', null, null, '0', '3600', array(), '2', false, null, null) in smarty_internal_runtime_inheritance.php line 116
    at Smarty_Internal_Runtime_Inheritance->endChild(object(Smarty_Internal_Template), 'admin-layout.tpl') in b84d954e58a9cd42716f1072662fe2628db53443_0.file.module-configure.html.php line 51
    at content_624b555bcfe811_28912776(object(Smarty_Internal_Template)) in smarty_template_resource_base.php line 123
    at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(Smarty_Internal_Template)) in smarty_template_compiled.php line 114
    at Smarty_Template_Compiled->render(object(Smarty_Internal_Template)) in smarty_internal_template.php line 216
    at Smarty_Internal_Template->render(false, '0') in smarty_internal_templatebase.php line 232
    at Smarty_Internal_TemplateBase->_execute(object(Smarty_Internal_Template), null, null, null, '0') in smarty_internal_templatebase.php line 116
    at Smarty_Internal_TemplateBase->fetch('file:module-configure.html') in SmartyParser.php line 507
    at SmartyParser->internalRenderer('file', 'module-configure.html', array('module_code' => 'Carousel', 'edit_language_id' => '1', 'edit_language_locale' => 'fr_FR', 'edit_currency_id' => '1', 'locale' => 'fr_FR', 'lang_code' => 'fr', 'lang_id' => '1', 'current_url' => 'http://electricmoov.wip/index_dev.php/admin/module/Carousel', 'app' => object(stdClass)), true) in SmartyParser.php line 533
    at SmartyParser->render('module-configure.html', array('module_code' => 'Carousel', 'edit_language_id' => '1', 'edit_language_locale' => 'fr_FR', 'edit_currency_id' => '1')) in BaseAdminController.php line 390
    at BaseAdminController->renderRaw('module-configure.html', array('module_code' => 'Carousel', 'edit_language_id' => '1', 'edit_language_locale' => 'fr_FR', 'edit_currency_id' => '1')) in BaseAdminController.php line 346
    at BaseAdminController->render('module-configure', array('module_code' => 'Carousel')) in ModuleController.php line 239
    at ModuleController->configureAction('Carousel') in HttpKernel.php line 135
    at HttpKernel->handleRaw(object(Request), '1') in HttpKernel.php line 57
    at HttpKernel->handle(object(Request), '1', true) in TheliaHttpKernel.php line 76
    at TheliaHttpKernel->handle(object(Request), '1', true) in BackOfficePathMiddleware.php line 106
    at BackOfficePathMiddleware->handle(object(Request), '1', true) in ParamInitMiddleware.php line 87
    at ParamInitMiddleware->handle(object(Request), '1', true) in SessionMiddleware.php line 80
    at SessionMiddleware->handle(object(Request), '1', true) in StackedHttpKernel.php line 23
    at StackedHttpKernel->handle(object(Request), '1', true) in Kernel.php line 183
    at Kernel->handle(object(Request)) in index_dev.php line 47

Offline


Pour moi il y a eu un problème de génération des classes Propel dans le cache. Tu as bien ceci dans ton cache ?

cache\propel\Model\Carousel
└───Model
    ├───Base
    │       Carousel.php
    │       CarouselI18n.php
    │       CarouselI18nQuery.php
    │       CarouselQuery.php
    │
    ├───Event
    │       CarouselEvent.php
    │       CarouselI18nEvent.php
    │
    └───Map
            CarouselI18nTableMap.php
            CarouselTableMap.php

OpenStudio Toulouse

Offline


Oui j'ai bien cette arborescence de fichiers (sous MacOS) : /htdocs/webshop/cache/propel/model/Carousel/Model

Sur l'environnement de production (serveur LAMP), le module fonctionne correctement (/webshop/cache/propel/model/Carousel/Model)

Offline


Là je sèche.


OpenStudio Toulouse

Offline


:-/

Merci pour ton aide. Je continue mes investigations. LE problème semble être circonscrit  à mon poste uniquement.