THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

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

Offline


Bonjour,
Je viens de reussir à migrer de 1.5.X a 2.1.2. Bizarrement, ce qui buggait en local a fonctionné sur mon serveur qui me sert de version test avant de migrer sur mon adresse normale de mon site (et tant mieux ! )

Mais j'ai un gros soucis, je n'arrive pas du tout à modifier quoi que ce soit dans les rubriques et sous rubriques !

Quand je clique sur "image" ou en fait partout, je n'ai rien qui apparait, impossible d'effectuer le moindre changement.

Une idée?

Merci

Laurent

Last edited by lavache (11-03-2015 14:17:02)

Offline


Pour info, je ne peux pas non plus modifier les fiches produit.

Offline


Quand je clique sur "image" ou en fait partout, je n'ai rien qui apparait

Il se passe quoi exactement ?

Message d'erreur ?

Copie d'écran ?


OpenStudio Toulouse

Offline


Voici la capture d'ecran :

a.png

je peux cliquer mais rien ne s'affiche

Offline


Erreur PHP.

Regarde tes logs apache, ou passe en mode développement (une recherche sur le forum te dira comment faire).


OpenStudio Toulouse

Offline


Je ne sais pas comment regarder les logs apache. Je suis hebergé chez OVH et je trouve aucunes traces de ces logs.
Pour le passage en mode dev, je trouve le index_dev.php, mais rien pour le BO.

Merci

Offline

Offline


J'ai malheureusement exactement la même chose !
Je vais tenter avec un Thelia 2.0.X

Merci

Offline


Pfff, quelle drôle d'idée.

Si tu regarde le code source de la page, tu verras le message d'erreur...

De plus, chez OVH, pour consulter les log: https://www.ovh.com/fr/g1344.statistiques-et-logs (t'as pas Google ?)


OpenStudio Toulouse

Offline


Bon,

J'ai remis 2.1.2

Voici le message d'erreur que j'ai :

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Je parle de la console dans chrome.

Last edited by lavache (11-03-2015 10:35:50)

Offline


Du coup, j'ai réfléchi un peu et j'ai fouillé.

Ca marche en 2.0.4 (mais j'ai d'autres soucis qui apparaissent comme les images des sous categories qui ne s'affichent plus) -> je peux modifier les fiches produits, etc dans le BO.

Quand je passe en 2.1.2 en réinstallant tout, impossible, j'ai une erreur 500.

- Je suis sous OVH, j'ai mis comme droits 755 pour tout, comme demandé.
- En supprimant htaccess, rien ne change, je l'ai remis.

Une autre idée? une solution?

Merci

Offline


Si tu regarde le code source de la page, tu verras le message d'erreur...

Clic droit -> Afficher la source, quoi.

Sinon, ça va pas être possible d'aller plus loin, je ne suis ni devin, ni voyant.


OpenStudio Toulouse

Offline


<h1>Whoops, looks like something went wrong.</h1>
                                        <div class="block_exception clear_fix">
                            <h2><span>1/1</span> <abbr title="InvalidArgumentException">InvalidArgumentException</abbr>: Relative paths are not allowed in assets names.</h2>
                        </div>
                        <div class="block">
                            <ol class="traces list_exception">
       <li> in /home/lavachesgn/local/modules/TheliaSmarty/Template/Assets/SmartyAssetsResolver.php line 123</li>
       <li>at <abbr title="TheliaSmarty\Template\Assets\SmartyAssetsResolver">SmartyAssetsResolver</abbr>->resolveAssetSourcePath('template-assets', <em>false</em>, '../assets/img/flags/fr.png', <em>object</em>(<abbr title="TheliaSmarty\Template\SmartyParser">SmartyParser</abbr>)) in /home/lavachesgn/local/modules/TheliaSmarty/Template/Assets/SmartyAssetsManager.php line 189</li>
       <li>at <abbr title="TheliaSmarty\Template\Assets\SmartyAssetsManager">SmartyAssetsManager</abbr>->computeAssetUrl('', <em>array</em>('file' => '../assets/img/flags/fr.png'), <em>object</em>(<abbr title="Smarty_Internal_Template">Smarty_Internal_Template</abbr>)) in /home/lavachesgn/local/modules/TheliaSmarty/Template/Plugins/Assets.php line 62</li>
       <li>at <abbr title="TheliaSmarty\Template\Plugins\Assets">Assets</abbr>->functionImage(<em>array</em>('file' => '../assets/img/flags/fr.png'), <em>object</em>(<abbr title="Smarty_Internal_Template">Smarty_Internal_Template</abbr>)) in /home/lavachesgn/cache/dev/smarty/compile/6c666ecddf1bc7f5c2ffbf9297cd1f9cb739c5da.file.inner-form-toolbar.html.php line 66</li>
       <li>at <abbr title=""></abbr>content_55000b7b487274_18679842(<em>object</em>(<abbr title="Smarty_Internal_Template">Smarty_Internal_Template</abbr>)) in /home/lavachesgn/core/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php line 188</li>
       <li>at <abbr title="Smarty_Internal_TemplateBase">Smarty_Internal_TemplateBase</abbr>->fetch(<em>null</em>, <em>null</em>, <em>null</em>, <em>null</em>, <em>false</em>, <em>false</em>, <em>true</em>) in /home/lavachesgn/core/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php line 303</li>
       <li>at <abbr title="Smarty_Internal_Template">Smarty_Internal_Template</abbr>->getSubTemplate('includes/inner-form-toolbar.html', <em>null</em>, <em>null</em>, '0', <em>null</em>, <em>array</em>('close_url' => 'http://www.lavachesenvoletest.com/index … in/catalog'), '0') in /home/lavachesgn/cache/dev/smarty/compile/51cf9cd73d5bf6a8ccf906681a2b0f37215520c0.file.category-edit.html.php line 459</li>
       <li>at <abbr title=""></abbr>content_55000b7b287bb0_79808913(<em>object</em>(<abbr title="Smarty_Internal_Template">Smarty_Internal_Template</abbr>)) in /home/lavachesgn/core/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php line 188</li>
       <li>at <abbr title="Smarty_Internal_TemplateBase">Smarty_Internal_TemplateBase</abbr>->fetch('file:category-edit.html') in /home/lavachesgn/local/modules/TheliaSmarty/Template/SmartyParser.php line 365</li>
       <li>at <abbr title="TheliaSmarty\Template\SmartyParser">SmartyParser</abbr>->internalRenderer('file', 'category-edit.html', <em>array</em>('category_id' => '2', 'folder_id' => '0', 'current_tab' => 'general', 'page' => '1', 'locale' => 'fr_FR', 'lang_code' => 'fr', 'lang_id' => '1', 'edit_language_id' => '2', 'edit_language_locale' => 'en_US', 'edit_currency_id' => '1', 'current_url' => 'http://www.lavachesenvoletest.com/index … egory_id=2'), <em>true</em>) in /home/lavachesgn/local/modules/TheliaSmarty/Template/SmartyParser.php line 389</li>
       <li>at <abbr title="TheliaSmarty\Template\SmartyParser">SmartyParser</abbr>->render('category-edit.html', <em>array</em>('category_id' => '2', 'folder_id' => '0', 'current_tab' => 'general', 'page' => '1', 'locale' => 'fr_FR', 'lang_code' => 'fr', 'lang_id' => '1', 'edit_language_id' => '2', 'edit_language_locale' => 'en_US', 'edit_currency_id' => '1', 'current_url' => 'http://www.lavachesenvoletest.com/index … egory_id=2')) in /home/lavachesgn/core/lib/Thelia/Controller/Admin/BaseAdminController.php line 373</li>
       <li>at <abbr title="Thelia\Controller\Admin\BaseAdminController">BaseAdminController</abbr>->renderRaw('category-edit', <em>array</em>('category_id' => '2', 'folder_id' => '0', 'current_tab' => 'general', 'page' => '1')) in /home/lavachesgn/core/lib/Thelia/Controller/Admin/BaseAdminController.php line 320</li>
       <li>at <abbr title="Thelia\Controller\Admin\BaseAdminController">BaseAdminController</abbr>->render('category-edit', <em>array</em>('category_id' => '2', 'folder_id' => '0', 'current_tab' => 'general', 'page' => '1')) in /home/lavachesgn/core/lib/Thelia/Controller/Admin/CategoryController.php line 219</li>
       <li>at <abbr title="Thelia\Controller\Admin\CategoryController">CategoryController</abbr>->renderEditionTemplate() in /home/lavachesgn/core/lib/Thelia/Controller/Admin/AbstractCrudController.php line 381</li>
       <li>at <abbr title="Thelia\Controller\Admin\AbstractCrudController">AbstractCrudController</abbr>->updateAction()</li>
       <li>at <abbr title=""></abbr>call_user_func_array(<em>array</em>(<em>object</em>(<abbr title="Thelia\Controller\Admin\CategoryController">CategoryController</abbr>), 'updateAction'), <em>array</em>()) in /home/lavachesgn/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php line 117</li>
       <li>at <abbr title="Symfony\Component\HttpKernel\HttpKernel">HttpKernel</abbr>->handleRaw(<em>object</em>(<abbr title="Thelia\Core\HttpFoundation\Request">Request</abbr>), '1') in /home/lavachesgn/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php line 61</li>
       <li>at <abbr title="Symfony\Component\HttpKernel\HttpKernel">HttpKernel</abbr>->handle(<em>object</em>(<abbr title="Thelia\Core\HttpFoundation\Request">Request</abbr>), '1', <em>true</em>) in /home/lavachesgn/core/lib/Thelia/Core/TheliaHttpKernel.php line 78</li>
       <li>at <abbr title="Thelia\Core\TheliaHttpKernel">TheliaHttpKernel</abbr>->handle(<em>object</em>(<abbr title="Thelia\Core\HttpFoundation\Request">Request</abbr>), '1', <em>true</em>) in /home/lavachesgn/core/lib/Thelia/Core/Stack/ParamInitMiddleware.php line 86</li>
       <li>at <abbr title="Thelia\Core\Stack\ParamInitMiddleware">ParamInitMiddleware</abbr>->handle(<em>object</em>(<abbr title="Thelia\Core\HttpFoundation\Request">Request</abbr>), '1', <em>true</em>) in /home/lavachesgn/core/lib/Thelia/Core/Stack/SessionMiddleware.php line 80</li>
       <li>at <abbr title="Thelia\Core\Stack\SessionMiddleware">SessionMiddleware</abbr>->handle(<em>object</em>(<abbr title="Thelia\Core\HttpFoundation\Request">Request</abbr>), '1', <em>true</em>) in /home/lavachesgn/core/vendor/stack/builder/src/Stack/StackedHttpKernel.php line 23</li>
       <li>at <abbr title="Stack\StackedHttpKernel">StackedHttpKernel</abbr>->handle(<em>object</em>(<abbr title="Thelia\Core\HttpFoundation\Request">Request</abbr>), '1', <em>true</em>) in /home/lavachesgn/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php line 187</li>
       <li>at <abbr title="Symfony\Component\HttpKernel\Kernel">Kernel</abbr>->handle(<em>object</em>(<abbr title="Thelia\Core\HttpFoundation\Request">Request</abbr>)) in /home/lavachesgn/web/index_dev.php line 37</li>
    </ol>
</div>

Désolé, mais je ne peux pas non plus tout savoir, tout comprendre, sinon, je ne viendrais pas sur un forum !

Offline


He bien voilà ! Relative paths are not allowed in assets names.

C'est à cause de ça :../assets/img/flags/fr.png, qui ne peut pas marcher.

Un module moisi ? Une modif du template ?


OpenStudio Toulouse

Offline


roadster31 wrote:

He bien voilà ! Relative paths are not allowed in assets names.

C'est à cause de ça :../assets/img/flags/fr.png, qui ne peut pas marcher.

Un module moisi ? Une modif du template ?


Je n'ai en rien modifié le template du back office. Et comme module, rien non plus de plus que ce qui est installé de base.

Tu as un 2.1.1 à m'envoyer par mail par hasard que j'essaye ?

Merci

Offline


J'ai supprimé cette liste de drapeau et je les ai remis.... et ça marche.... bizarre..