Jump to content

500 Server Error : Link to database cannot be established


Recommended Posts

Bonjour,

Hier j'ai voulu changer mon mot de passe de la base de données et bug :

Link to database cannot be established: SQLSTATE[HY000] [1045] Access denied for user 'dbo.........'@',,.,,,.,,.24' (using password: YES)
at line 127 in file classes/db/DbPDO.php

122.     public function connect()
123.     {
124.         try {
125.             $this->link = $this->getPDO($this->server, $this->user, $this->password, $this->database, 5);
126.         } catch (PDOException $e) {
127.             throw new PrestaShopException('Link to database cannot be established: ' . $e->getMessage());
128.         }
129. 
130.         $this->link->exec('SET SESSION sql_mode = \'\'');
131. 
132.         return $this->link;

J'ai donc appelé mon hébergeur qui lui veut bien le faire moyennant finance, je voulais donc savoir la marche à suivre pour résoudre ce problème.

Merci d'avance

Link to comment
Share on other sites

accès refusé à la base de donnés tu as regarder dans la configuration de ton prestashop ?
version 1.6 -> dans le ftp dossier config -> settings.inc.php
Version 1.7 -> App/config/parametres.php

Le mot de passe est bien changer à ce niveau ?

Link to comment
Share on other sites

Bonjour,

Dites moi quand je mets DEBUG j'ai cette erreur :

Notice à la ligne 101 du fichier /homepages/21/d780141553/htdocs/clickandbuilds/PrestaShop/MyeCommerce/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/StrictSessionHandler.php
[8] SessionHandler::gc(): ps_files_cleanup_dir: opendir(/tmp/.priv) failed: Permission denied (13)

Pourriez me dire ce qu'il faut faire

Merci

Link to comment
Share on other sites

  • 2 months later...

Bonjour,

J'ai refait mon site entierement et là en vérifiant en mettant en mode "debug" j'ai ces erreurs :

Warning à la ligne 2636 du fichier /homepages/21/d780141553/htdocs/clickandbuilds/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php
[2] "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Warning à la ligne 2665 du fichier /homepages/21/d780141553/htdocs/clickandbuilds/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php
[2] "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Pourriez vous me dire comment y remédier je vous en remercie par avance.

Link to comment
Share on other sites

Bonjour

Je suis en version : PHP 7.3

je voudrais quand meme bien le résoudre ce souci.

Voilà l'ensemble qu'il me met lol

ContextErrorException

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

in UnitOfWork.php line 2636

at ErrorHandler->handleError(2, '"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?', '/homepages/21/d780141553/htdocs/clickandbuilds/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php', 2636, array('file' => '/homepages/21/d780141553/htdocs/clickandbuilds/vendor/composer/../doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php'))in ClassLoader.php line 444

at include()in ClassLoader.php line 444

at Composer\Autoload\includeFile('/homepages/21/d780141553/htdocs/clickandbuilds/vendor/composer/../doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php')in ClassLoader.php line 322

at ClassLoader->loadClass('Doctrine\\ORM\\UnitOfWork')in DebugClassLoader.php line 159

at DebugClassLoader->loadClass('Doctrine\\ORM\\UnitOfWork')

at spl_autoload_call('Doctrine\\ORM\\UnitOfWork')in EntityManager.php line 160

at EntityManager->__construct(object(Connection), object(Configuration), object(ContainerAwareEventManager))in EntityManager.php line 850

at EntityManager::create(object(Connection), object(Configuration))in appDevDebugProjectContainer.php line 1820

at appDevDebugProjectContainer->getDoctrine_Orm_DefaultEntityManagerService()in appDevDebugProjectContainer.php line 1930

at appDevDebugProjectContainer->getPrestashop_Adapter_DataProvider_ModuleService()in appDevDebugProjectContainer.php line 2325

at appDevDebugProjectContainer->getPrestashop_Twig_Extension_HookService()in appDevDebugProjectContainer.php line 2546

at appDevDebugProjectContainer->getTwigService()in appDevDebugProjectContainer.php line 2430

at appDevDebugProjectContainer->getProfilerService()in appDevDebugProjectContainer.php line 3444

at appDevDebugProjectContainer->getProfilerListenerService()in appDevDebugProjectContainer.php line 2961

at appDevDebugProjectContainer->ContainerUxrzjbf\{closure}()in EventDispatcher.php line 145

at EventDispatcher->removeListener('kernel.exception', array(object(ExceptionListener), 'onKernelException'))in ContainerAwareEventDispatcher.php line 96

at ContainerAwareEventDispatcher->removeListener('kernel.exception', array(object(ExceptionListener), 'onKernelException'))in TraceableEventDispatcher.php line 75

at TraceableEventDispatcher->removeListener('kernel.exception', array(object(ExceptionListener), 'onKernelException'))in ExceptionListener.php line 82

at ExceptionListener->unregister(object(TraceableEventDispatcher))in Firewall.php line 92

at Firewall->onKernelFinishRequest(object(FinishRequestEvent))in FirewallListener.php line 57

at FirewallListener->onKernelFinishRequest(object(FinishRequestEvent), 'kernel.finish_request', object(TraceableEventDispatcher))in WrappedListener.php line 115

at WrappedListener->__invoke(object(FinishRequestEvent), 'kernel.finish_request', object(TraceableEventDispatcher))in EventDispatcher.php line 212

at EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.finish_request', object(FinishRequestEvent))in EventDispatcher.php line 44

at EventDispatcher->dispatch('kernel.finish_request', object(FinishRequestEvent))in TraceableEventDispatcher.php line 143

at TraceableEventDispatcher->dispatch('kernel.finish_request', object(FinishRequestEvent))in HttpKernel.php line 210

at HttpKernel->finishRequest(object(Request), 1)in HttpKernel.php line 74

at HttpKernel->handle(object(Request), 1, false)in Kernel.php line 200

at Kernel->handle(object(Request), 1, false)in index.php line 86

2 ) Autre souci je ne peux plus mette le module paypal.

 

Link to comment
Share on other sites

En plus ne peut plus sortir du mode "debug" me remet la page que j'ai mise plus haut avec un autre message :

Notice à la ligne 101 du fichier /homepages/21/d780141553/htdocs/clickandbuilds/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/StrictSessionHandler.php
[8] SessionHandler::gc(): ps_files_cleanup_dir: opendir(/tmp/.priv) failed: Permission denied (13)

Link to comment
Share on other sites

Résolu pour le mode "debug" je suis repassé en PHP 7.2 et celà fonctionne mieux.

Par contre souci pour le téléchargement sur mon site de paypal me met cette erreur :

{"ps_rem88_redirection":"https:\/\/itrottinette.com\/clickandbuilds\/admin7110n4prt\/index.php?controller=TrustedModule&token=69c7607ee53020a3e31d0b7ca02056d4&module_name=paypal&_token="}

Link to comment
Share on other sites

Désolé pas eu le temps de revenir je m'en excuse. Par contre efficace.

Là j'ai un autre souci :

(1/1) ContextErrorException

Notice: Undefined index: id

in ps_categoryproducts.php line 336

at Ps_Categoryproducts->getInformationFromConfiguration(array('product' => object(ProductLazyArray), 'category' => object(Category), 'smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart)))in ps_categoryproducts.php line 232

at Ps_Categoryproducts->renderWidget('displayFooterProduct', array('product' => object(ProductLazyArray), 'category' => object(Category), 'smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart)))in Hook.php line 975

at HookCore::coreRenderWidget(object(Ps_Categoryproducts), 'displayFooterProduct', array('product' => object(ProductLazyArray), 'category' => object(Category), 'smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart)))in Hook.php line 927

at HookCore::exec('displayFooterProduct', array('product' => object(ProductLazyArray), 'category' => object(Category), 'smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart)), null)in smarty.config.inc.php line 167

at smartyHook(array('h' => 'displayFooterProduct', 'product' => object(ProductLazyArray), 'category' => object(Category)), object(SmartyDevTemplate))in SmartyLazyRegister.php line 83

at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayFooterProduct', 'product' => object(ProductLazyArray), 'category' => object(Category)), object(SmartyDevTemplate)))in a35c1068d72f0181fb30da1dc33587c534a016bf_2.file.layout-both-columns.tpl.php line 441

at Block_1770825605d666debc00ec4_81020412->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_1770825605d666debc00ec4_81020412), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_1770825605d666debc00ec4_81020412))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_1770825605d666debc00ec4_81020412', 'product_footer')in a35c1068d72f0181fb30da1dc33587c534a016bf_2.file.layout-both-columns.tpl.php line 134

at content_5d666debc05b73_15407205(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render()in smarty_internal_template.php line 385

at Smarty_Internal_Template->_subTemplateRender('layouts/layout-both-columns.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125

at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl')in d736df95005b5b5ad8d2cfe8a545649eb73a90f3_2.file.layout-full-width.tpl.php line 42

at content_5d666debbd07d7_75937914(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render()in smarty_internal_template.php line 385

at Smarty_Internal_Template->_subTemplateRender('layouts/layout-full-width.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125

at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-full-width.tpl')in 660f21f5cb1b4fdb6b560696e1f043add81b71ae_2.file.product.tpl.php line 53

at content_5d666e7cbf3bd6_45011025(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))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(SmartyDevTemplate), null, 'layouts/layout-full-width.tpl', null, 0)in smarty_internal_templatebase.php line 116

at Smarty_Internal_TemplateBase->fetch('catalog/product.tpl', null, 'layouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40

at SmartyDev->fetch('catalog/product.tpl', null, 'layouts/layout-full-width.tpl')in FrontController.php line 683

at FrontControllerCore->smartyOutputContent('catalog/product.tpl')in FrontController.php line 667

at FrontControllerCore->display()in Controller.php line 311

at ControllerCore->run()in Dispatcher.php line 515

at DispatcherCore->dispatch()in index.php line 28

J'ai cette erreur et je suis dans la panade.

Merci

Edited by blackpink
pas terminer (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...