THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

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

Offline

#1 Gestion des documents

(07-04-2014 21:36:09)


Bonjour,

J'ai essayé d'ajouter des documents sur des fiches produits et des pages de contenu mais impossible d'afficher ces documents. 

L'upload fonctionne, les fichiers sont bien téléchargés sur le serveur. Impossible de les retrouver dans le BO et impossible de les afficher avec les boucles.

Est-ce quelqu'un à déjà eu ce problème ?

Merci d'avance smile

Offline

#2 Re: Gestion des documents

(08-04-2014 07:13:42)


Impossible de les retrouver dans le BO et impossible de les afficher avec les boucles.

Que veux-tu dire par là ? Que se passe-t-il exactement ?


OpenStudio Toulouse

Offline

#3 Re: Gestion des documents

(08-04-2014 15:48:35)


1) J'ajout un document
2) Il se télécharger
3) La page se MAJ mais j'ai le message comme quoi le produit n'as pas de document

Offline

#4 Re: Gestion des documents

(15-04-2014 15:46:24)


Bonjour,
Je teste Thélia2 en local à partir du Template de démo et même constat que bepascal.
1/ Ajout d'un document
2/ Le répertoire "document" et "product" est bien créé. Le document se loge automatiquement et correctement au sein de ce dernier.
3/ Mais, le BO affiche rapidement l'icone du document avant de disparaître et indique "Il n'y a aucun document lié à ce product."
Sinon, j'en profite pour saluer la nouvelle version de Thélia !!! Et remercier nos gentils développeurs wink
Une idée pour le forum maintenant qu'il y a deux versions (Thélia1 et Thélia2) : Lors d'une recherche simple sur le forum, il serait intéressant de spécifier si la discussion traite de T1 ou de T2. A travers le fil d’Ariane par exemple. Ainsi d'un coup d’œil, on peut vérifier sur quelle version porte les échanges.
@+

Offline

#5 Re: Gestion des documents

(15-04-2014 17:21:52)


Sous Windows ? Unix ? Mac ?

Avez-vous des messages (d'erreur ou pas) dans la console du navigateur ?


OpenStudio Toulouse

Offline

#6 Re: Gestion des documents

(15-04-2014 19:59:31)


Bonjour Roadster !

Windows 8.1
WampServer 2.4 - x64
THELIA 2.0.0-RC1
Testé sur plusieurs navigateurs

En testant un fichier plus lourd, l'icone qui stipule "file is too big" (au delà de 8mo) reste bien à l'écran. Mais celui qui devrait valider le bon déroulement du chargement se volatilise hmm

@+

Offline

#7 Re: Gestion des documents

(15-04-2014 21:33:23)


Avez-vous des messages (d'erreur ou pas) dans la console du navigateur ?


OpenStudio Toulouse

Offline

#8 Re: Gestion des documents

(15-04-2014 22:34:16)


Désolé de ma réponse incomplète
Voici le résultat de la console Firefox à partir du moment ou je clique sur 'parcourir les fichiers' : il en résulte 2 avertissements JS :

23:30:14,581 reflow : 0.41ms
23:30:14,581 reflow : 0.26ms
23:30:14,460 Une chaîne vide a été transmise à « getElementById() ». jquery-2.0.3.min.js:4
23:30:14,582 reflow : 0.28ms
23:30:14,469 Une chaîne vide a été transmise à « getElementById() ». jquery-2.0.3.min.js:4
23:30:16,870 reflow : 0.29ms
23:30:26,156 reflow : 0.73ms
23:30:26,156 reflow : 0.26ms
23:30:26,336 POST http://localhost/thelia/web/admin/document/type/product/22/save-ajax [HTTP/1.1 200 OK 411ms]
23:30:26,337 reflow : 0.21ms
23:30:26,423 reflow : 0.27ms
23:30:26,423 reflow : 0.27ms
23:30:26,486 POST http://localhost/thelia/web/admin/document/type/product/22/list-ajax [HTTP/1.1 200 OK 412ms]
23:30:26,851 reflow : 0.32ms
23:30:27,966 reflow : 0.3ms

Offline

#9 Re: Gestion des documents

(16-04-2014 08:26:46)


OK, merci.

Et le error.log d'apache ?


OpenStudio Toulouse

Offline

#10 Re: Gestion des documents

(16-04-2014 08:51:03)


Voici, bonne journée !

[Wed Apr 16 09:39:54.196539 2014] [mpm_winnt:notice] [pid 4052:tid 556] AH00455: Apache/2.4.4 (Win64) PHP/5.4.12 configured -- resuming normal operations
[Wed Apr 16 09:39:54.196984 2014] [mpm_winnt:notice] [pid 4052:tid 556] AH00456: Server built: Feb 22 2013 22:08:37
[Wed Apr 16 09:39:54.196984 2014] [core:notice] [pid 4052:tid 556] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4'
[Wed Apr 16 09:39:54.197590 2014] [mpm_winnt:notice] [pid 4052:tid 556] AH00418: Parent: Created child process 640
[Wed Apr 16 09:39:54.488534 2014] [mpm_winnt:notice] [pid 640:tid 464] AH00354: Child: Starting 150 worker threads.
[Wed Apr 16 09:41:41.819224 2014] [access_compat:error] [pid 640:tid 1648] [client ::1:49909] AH01797: client denied by server configuration: C:/wamp/www/thelia/cache/, referer: http://localhost/
[Wed Apr 16 09:41:41.826522 2014] [access_compat:error] [pid 640:tid 1648] [client ::1:49909] AH01797: client denied by server configuration: C:/wamp/www/thelia/log/, referer: http://localhost/
[Wed Apr 16 09:42:23.662072 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP Deprecated:  Passing parameters to the constructor is no longer supported. Please use set_feed_url(), set_cache_location(), and set_cache_location() directly. in C:\\wamp\\www\\thelia\\core\\vendor\\simplepie\\simplepie\\library\\SimplePie.php on line 640, referer: http://localhost/thelia/web/admin/login
[Wed Apr 16 09:42:23.662072 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP Stack trace:, referer: http://localhost/thelia/web/admin/login
[Wed Apr 16 09:42:23.662072 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP   1. {main}() C:\\wamp\\www\\thelia\\web\\index.php:0, referer: http://localhost/thelia/web/admin/login
[Wed Apr 16 09:42:23.662072 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP   2. Symfony\\Component\\HttpKernel\\Kernel->handle() C:\\wamp\\www\\thelia\\web\\index.php:15, referer: http://localhost/thelia/web/admin/login
[Wed Apr 16 09:42:23.662072 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP   3. Thelia\\Core\\TheliaHttpKernel->handle() C:\\wamp\\www\\thelia\\core\\vendor\\symfony\\http-kernel\\Symfony\\Component\\HttpKernel\\Kernel.php:197, referer: http://localhost/thelia/web/admin/login
[Wed Apr 16 09:42:23.662072 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP   4. Symfony\\Component\\HttpKernel\\HttpKernel->handle() C:\\wamp\\www\\thelia\\core\\lib\\Thelia\\Core\\TheliaHttpKernel.php:92, referer: http://localhost/thelia/web/admin/login
[Wed Apr 16 09:42:23.662072 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP   5. Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() C:\\wamp\\www\\thelia\\core\\vendor\\symfony\\http-kernel\\Symfony\\Component\\HttpKernel\\HttpKernel.php:73, referer: http://localhost/thelia/web/admin/login
[Wed Apr 16 09:42:23.662072 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP   6. call_user_func_array() C:\\wamp\\www\\thelia\\core\\vendor\\symfony\\http-kernel\\Symfony\\Component\\HttpKernel\\HttpKernel.php:129, referer: http://localhost/thelia/web/admin/login
[Wed Apr 16 09:42:23.662072 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP   7. Thelia\\Controller\\Admin\\BaseAdminController->processTemplateAction() C:\\wamp\\www\\thelia\\core\\vendor\\symfony\\http-kernel\\Symfony\\Component\\HttpKernel\\HttpKernel.php:129, referer: http://localhost/thelia/web/admin/login
[Wed Apr 16 09:42:23.662072 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP   8. Thelia\\Controller\\Admin\\BaseAdminController->render() C:\\wamp\\www\\thelia\\core\\lib\\Thelia\\Controller\\Admin\\BaseAdminController.php:92, referer: http://localhost/thelia/web/admin/login
[Wed Apr 16 09:42:23.662072 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP   9. Thelia\\Controller\\Admin\\BaseAdminController->renderRaw() C:\\wamp\\www\\thelia\\core\\lib\\Thelia\\Controller\\Admin\\BaseAdminController.php:414, referer: http://localhost/thelia/web/admin/login
[Wed Apr 16 09:42:23.662072 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP  10. Thelia\\Core\\Template\\Smarty\\SmartyParser->render() C:\\wamp\\www\\thelia\\core\\lib\\Thelia\\Controller\\Admin\\BaseAdminController.php:462, referer: http://localhost/thelia/web/admin/login
[Wed Apr 16 09:42:23.662072 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP  11. Thelia\\Core\\Template\\Smarty\\SmartyParser->internalRenderer() C:\\wamp\\www\\thelia\\core\\lib\\Thelia\\Core\\Template\\Smarty\\SmartyParser.php:222, referer: http://localhost/thelia/web/admin/login
[Wed Apr 16 09:42:23.662072 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP  12. Smarty_Internal_TemplateBase->fetch() C:\\wamp\\www\\thelia\\core\\lib\\Thelia\\Core\\Template\\Smarty\\SmartyParser.php:206, referer: http://localhost/thelia/web/admin/login
[Wed Apr 16 09:42:23.662072 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP  13. content_534d7cd5d669f1_19963119() C:\\wamp\\www\\thelia\\core\\vendor\\smarty\\smarty\\libs\\sysplugins\\smarty_internal_templatebase.php:180, referer: http://localhost/thelia/web/admin/login
[Wed Apr 16 09:42:23.662072 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP  14. Thelia\\Core\\Template\\Smarty\\Plugins\\TheliaLoop->theliaLoop() C:\\wamp\\www\\thelia\\cache\\prod\\smarty\\compile\\b37a4ee994b919d11595b17b2cc51281395e559a.file.thelia_news_feed.html.php:34, referer: http://localhost/thelia/web/admin/login
[Wed Apr 16 09:42:23.662072 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP  15. Thelia\\Core\\Template\\Element\\BaseLoop->exec() C:\\wamp\\www\\thelia\\core\\lib\\Thelia\\Core\\Template\\Smarty\\Plugins\\TheliaLoop.php:128, referer: http://localhost/thelia/web/admin/login
[Wed Apr 16 09:42:23.662072 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP  16. Thelia\\Core\\Template\\Loop\\Feed->buildArray() C:\\wamp\\www\\thelia\\core\\lib\\Thelia\\Core\\Template\\Element\\BaseLoop.php:382, referer: http://localhost/thelia/web/admin/login
[Wed Apr 16 09:42:23.662072 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP  17. SimplePie->__construct() C:\\wamp\\www\\thelia\\core\\lib\\Thelia\\Core\\Template\\Loop\\Feed.php:60, referer: http://localhost/thelia/web/admin/login
[Wed Apr 16 09:42:23.663075 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP  18. trigger_error() C:\\wamp\\www\\thelia\\core\\vendor\\simplepie\\simplepie\\library\\SimplePie.php:640, referer: http://localhost/thelia/web/admin/login
[Wed Apr 16 09:42:28.918270 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP Deprecated:  Passing parameters to the constructor is no longer supported. Please use set_feed_url(), set_cache_location(), and set_cache_location() directly. in C:\\wamp\\www\\thelia\\core\\vendor\\simplepie\\simplepie\\library\\SimplePie.php on line 640, referer: http://localhost/thelia/web/admin/checklogin
[Wed Apr 16 09:42:28.918270 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP Stack trace:, referer: http://localhost/thelia/web/admin/checklogin
[Wed Apr 16 09:42:28.918270 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP   1. {main}() C:\\wamp\\www\\thelia\\web\\index.php:0, referer: http://localhost/thelia/web/admin/checklogin
[Wed Apr 16 09:42:28.918270 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP   2. Symfony\\Component\\HttpKernel\\Kernel->handle() C:\\wamp\\www\\thelia\\web\\index.php:15, referer: http://localhost/thelia/web/admin/checklogin
[Wed Apr 16 09:42:28.918270 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP   3. Thelia\\Core\\TheliaHttpKernel->handle() C:\\wamp\\www\\thelia\\core\\vendor\\symfony\\http-kernel\\Symfony\\Component\\HttpKernel\\Kernel.php:197, referer: http://localhost/thelia/web/admin/checklogin
[Wed Apr 16 09:42:28.918270 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP   4. Symfony\\Component\\HttpKernel\\HttpKernel->handle() C:\\wamp\\www\\thelia\\core\\lib\\Thelia\\Core\\TheliaHttpKernel.php:92, referer: http://localhost/thelia/web/admin/checklogin
[Wed Apr 16 09:42:28.918270 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP   5. Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() C:\\wamp\\www\\thelia\\core\\vendor\\symfony\\http-kernel\\Symfony\\Component\\HttpKernel\\HttpKernel.php:73, referer: http://localhost/thelia/web/admin/checklogin
[Wed Apr 16 09:42:28.918270 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP   6. call_user_func_array() C:\\wamp\\www\\thelia\\core\\vendor\\symfony\\http-kernel\\Symfony\\Component\\HttpKernel\\HttpKernel.php:129, referer: http://localhost/thelia/web/admin/checklogin
[Wed Apr 16 09:42:28.918270 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP   7. Thelia\\Controller\\Admin\\BaseAdminController->processTemplateAction() C:\\wamp\\www\\thelia\\core\\vendor\\symfony\\http-kernel\\Symfony\\Component\\HttpKernel\\HttpKernel.php:129, referer: http://localhost/thelia/web/admin/checklogin
[Wed Apr 16 09:42:28.918270 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP   8. Thelia\\Controller\\Admin\\BaseAdminController->render() C:\\wamp\\www\\thelia\\core\\lib\\Thelia\\Controller\\Admin\\BaseAdminController.php:92, referer: http://localhost/thelia/web/admin/checklogin
[Wed Apr 16 09:42:28.918270 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP   9. Thelia\\Controller\\Admin\\BaseAdminController->renderRaw() C:\\wamp\\www\\thelia\\core\\lib\\Thelia\\Controller\\Admin\\BaseAdminController.php:414, referer: http://localhost/thelia/web/admin/checklogin
[Wed Apr 16 09:42:28.918270 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP  10. Thelia\\Core\\Template\\Smarty\\SmartyParser->render() C:\\wamp\\www\\thelia\\core\\lib\\Thelia\\Controller\\Admin\\BaseAdminController.php:462, referer: http://localhost/thelia/web/admin/checklogin
[Wed Apr 16 09:42:28.918270 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP  11. Thelia\\Core\\Template\\Smarty\\SmartyParser->internalRenderer() C:\\wamp\\www\\thelia\\core\\lib\\Thelia\\Core\\Template\\Smarty\\SmartyParser.php:222, referer: http://localhost/thelia/web/admin/checklogin
[Wed Apr 16 09:42:28.918270 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP  12. Smarty_Internal_TemplateBase->fetch() C:\\wamp\\www\\thelia\\core\\lib\\Thelia\\Core\\Template\\Smarty\\SmartyParser.php:206, referer: http://localhost/thelia/web/admin/checklogin
[Wed Apr 16 09:42:28.918270 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP  13. content_534d7cd5d669f1_19963119() C:\\wamp\\www\\thelia\\core\\vendor\\smarty\\smarty\\libs\\sysplugins\\smarty_internal_templatebase.php:180, referer: http://localhost/thelia/web/admin/checklogin
[Wed Apr 16 09:42:28.918270 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP  14. Thelia\\Core\\Template\\Smarty\\Plugins\\TheliaLoop->theliaLoop() C:\\wamp\\www\\thelia\\cache\\prod\\smarty\\compile\\b37a4ee994b919d11595b17b2cc51281395e559a.file.thelia_news_feed.html.php:34, referer: http://localhost/thelia/web/admin/checklogin
[Wed Apr 16 09:42:28.918270 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP  15. Thelia\\Core\\Template\\Element\\BaseLoop->exec() C:\\wamp\\www\\thelia\\core\\lib\\Thelia\\Core\\Template\\Smarty\\Plugins\\TheliaLoop.php:128, referer: http://localhost/thelia/web/admin/checklogin
[Wed Apr 16 09:42:28.918270 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP  16. Thelia\\Core\\Template\\Loop\\Feed->buildArray() C:\\wamp\\www\\thelia\\core\\lib\\Thelia\\Core\\Template\\Element\\BaseLoop.php:382, referer: http://localhost/thelia/web/admin/checklogin
[Wed Apr 16 09:42:28.918270 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP  17. SimplePie->__construct() C:\\wamp\\www\\thelia\\core\\lib\\Thelia\\Core\\Template\\Loop\\Feed.php:60, referer: http://localhost/thelia/web/admin/checklogin
[Wed Apr 16 09:42:28.918270 2014] [:error] [pid 640:tid 1628] [client ::1:49925] PHP  18. trigger_error() C:\\wamp\\www\\thelia\\core\\vendor\\simplepie\\simplepie\\library\\SimplePie.php:640, referer: http://localhost/thelia/web/admin/checklogin

Offline

#11 Re: Gestion des documents

(16-04-2014 09:35:47)


J'aurais dû être plus précis: je souhaite voir le error.log d'apache tel qu'il est juste après avoir essayé d'ajouter un document.


OpenStudio Toulouse

Offline

#12 Re: Gestion des documents

(16-04-2014 09:44:30)


Oui, j'avais bien compris wink
J'ai refaits le test ce matin, les logs sont issus de ce test.

Offline

#13 Re: Gestion des documents

(16-04-2014 09:47:10)


Peux-tu faire la manip en mode dev, en accédant au b.o. avec l'URL:

http://www.tonserveur.com/index_dev.php/admin ?


OpenStudio Toulouse

Offline

#14 Re: Gestion des documents

(16-04-2014 11:07:28)


Après essai via l'index_dev.php, le problème reste le même sauf que cela ne génère pas d'erreurs sur erreur.log
Voici l'access.log :

::1 - - [16/Apr/2014:12:01:31 +0200] "POST /thelia/web/index_dev.php/admin/document/type/product/22/save-ajax HTTP/1.1" 200 28
::1 - - [16/Apr/2014:12:01:32 +0200] "POST /thelia/web/index_dev.php/admin/document/type/product/22/list-ajax HTTP/1.1" 200 81

Offline

#15 Re: Gestion des documents

(20-04-2014 17:06:32)


J'ai exactement le même problème que webmc. Est-ce que quelqu'un à trouvé une solution ?