THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

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

Offline

#1 Transfer from dev to live

(08-12-2015 04:39:00)


Bonjour,
J'ai bien avance le site en dev , ajoute mes produits etc , je voulais essayer de voir si ca marche sur mon hebergeur mais je ne suis pas sur du meilleur moyen de faire ca.
En dev j'avais utiliser l'assistant pour set up ma DataBase , et ensuite supprimer le fichier install

Donc la pour passer LIVE
j'ai pour le moment copier l'integralite de ma DB sur mon serveur
Mais la ou je suis bloque c'est ou changer les identifiants pour la connection a la DB mysql pour que au lieu de Localhost / root / root il utilise d'autres identifiants

Merci d'avance
Lea

Offline


Tu peux changer les informations dans le fichier local/config/database.yml


OpenStudio Toulouse

Offline


J'ai essaye ca donc jai uploader tout le contenu de mon site et juste changer le fichier database.yml mais il semblerait ke il utilise tj les autres identifiants root root

j'ai cette erreur

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)' in /home/leasabba/public_html/testboutique/core/vendor/propel/propel/src/Propel/Runtime/Connection/PdoConnection.php:47 Stack trace: #0 /home/leasabba/public_html/testboutique/core/vendor/propel/propel/src/Propel/Runtime/Connection/PdoConnection.php(47): PDO->__construct('mysql:host=loca...', 'root', 'root', Array) #1 /home/leasabba/public_html/testboutique/core/vendor/propel/propel/src/Propel/Runtime/Adapter/Pdo/PdoAdapter.php(69): Propel\Runtime\Connection\PdoConnection->__construct('mysql:host=loca...', 'root', 'root', Array) #2 /home/leasabba/public_html/testboutique/core/vendor/propel/propel/src/Propel/Runtime/Connection/ConnectionFactory.php(41): Propel\Runtime\Adapter\Pdo\PdoAdapter->getConnection(Array) #3 /home/leasabba/public_html/testboutique/core/vendor/propel/propel/src/Propel/Runtime/Connection/ConnectionManagerSingle.php(77): Propel\Run in /home/leasabba/public_html/testboutique/core/vendor/propel/propel/src/Propel/Runtime/Connection/ConnectionFactory.php on line 43

Last edited by lea (08-12-2015 21:42:53)

Offline


Donc le fichier database.yml  n'a pas été correctement modifié.

Et vide tes caches.


OpenStudio Toulouse

Offline


J'avais le même genre de problème et le fait de vider le cache l'a résolu, c'est tout bête mais je n'y avais pas pensé, merci !


Anthony : prestataire informatique et spécialiste WIFI et infrastructure réseau pour les entreprises.

Offline


Merci cela a regle le probleme !

Offline


Hello,

I also have an issue. Migrated from dev to live. Everything works fine.
When logging in admin tried active some hooks and then everything returns Server 500 error on whitescreen. htaccess checked, no any other redirects.

Offline


Please clear the caches.


OpenStudio Toulouse

Offline


Thanks!

Now the only thing is not working is web/order/delivery showing white screen.

Offline


white screen = PHP error

To see what the problem is, go to development mode: use http://www.youshop.com/index_dev.php instead of http://www.youshop.com/, and add your IP address to the list in index_dev.php


OpenStudio Toulouse

Offline


Getting this error -

InvalidArgumentException in RegisterHookListenersPass.php line 69:
Method insertTemplate should use an event of type Thelia\Core\Event\Hook\HookRenderBlockEvent. found: Thelia\Core\Event\Hook\HookRenderEvent

at RegisterHookListenersPass->logAlertMessage('Method insertTemplate should use an event of type Thelia\Core\Event\Hook\HookRenderBlockEvent. found: Thelia\Core\Event\Hook\HookRenderEvent') in RegisterHookListenersPass.php line 379
at RegisterHookListenersPass->isValidHookMethod('Thelia\Core\Hook\DefaultHook', 'insertTemplate', true) in RegisterHookListenersPass.php line 130
at RegisterHookListenersPass->registerHook('Thelia\Core\Hook\DefaultHook', object(Module), 'carousel.hook', array('event' => 'home.body', 'type' => '1', 'templates' => 'render:carousel.html', 'active' => true, 'method' => 'insertTemplate')) in RegisterHookListenersPass.php line 93
at RegisterHookListenersPass->processHook(object(TheliaContainerBuilder), object(Definition)) in RegisterHookListenersPass.php line 60
at RegisterHookListenersPass->process(object(TheliaContainerBuilder)) in Compiler.php line 107
at Compiler->compile(object(TheliaContainerBuilder)) in ContainerBuilder.php line 589
at ContainerBuilder->compile() in TheliaContainerBuilder.php line 32
at TheliaContainerBuilder->customCompile() in Thelia.php line 500
at Thelia->buildContainer() in Kernel.php line 510
at Kernel->initializeContainer() in Kernel.php line 133
at Kernel->boot() in Thelia.php line 219
at Thelia->boot() in Kernel.php line 182
at Kernel->handle(object(Request)) in index_dev.php line 37

Which doesn't look very related to checkout process.:)

Last edited by SimonK (27-09-2016 19:29:55)

Offline


What is your version version of Thelia ?


OpenStudio Toulouse