Balouna Posted September 26, 2016 Share Posted September 26, 2016 Bonjour à tous, Cet après-midi j'ai transféré l'intégralité de mon dossier prestashop à la racine de mon serveur VPS (enfin dans le dossier web) afin d'accéder à mon site par monsite.com et non monsite.com/prestashop J'ai ensuite modifié le chemin dans la base de donnée (PS_SHOP_URL). Sûre de moi, je suis tombée de haut quand j'ai souhaité accéder à mon back office : page blanche ! J'ai donc contacté mon hébergeur pour en connaître la raison et il m'a indiqué tomber sur cette erreur : FastCGI: server '/var/www/clients/client0/web20/cgi-bin/php5-fcgi-*-80-balouna.com' stderr: PHP message: PHP Warning: require(/var/www/clients/client0/web20/web/prestashop/config/config.inc.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /var/www/clients/client0/web20/web/prestashop/index.php on line 27 Quelqu'un peut-il m'aiguiller ? Merci par avance, Noémie Link to comment Share on other sites More sharing options...
Eolia Posted September 26, 2016 Share Posted September 26, 2016 Le message dit que le fichier /web/prestashop/config/config.inc.php n'existe pas. Existe-t-il ou pas ? Link to comment Share on other sites More sharing options...
Balouna Posted September 26, 2016 Author Share Posted September 26, 2016 Oui il existe, mais config n'est plus dans le dossier prestashop du coup, il est dans le dossier web. Noémie Link to comment Share on other sites More sharing options...
Eolia Posted September 26, 2016 Share Posted September 26, 2016 vous avez supprimé le htaccess ? Car là vos urls sont redirigées vers l'ancien répertoire Link to comment Share on other sites More sharing options...
Balouna Posted September 26, 2016 Author Share Posted September 26, 2016 Non je ne l'ai pas supprimé, le faut-il ? Link to comment Share on other sites More sharing options...
Eolia Posted September 26, 2016 Share Posted September 26, 2016 Euh... oui bien sûr^^ et si ça ne fonctionne toujours pas, vérifier les tables ps_shop_url Link to comment Share on other sites More sharing options...
Balouna Posted September 26, 2016 Author Share Posted September 26, 2016 Non même en supprimant le htaccess j'ai toujours une page blanche. Le PS_SHOP_URL est bon ! Link to comment Share on other sites More sharing options...
Eolia Posted September 26, 2016 Share Posted September 26, 2016 Le physical_uri dans cette table ne comporte donc qu'un slash, ok ? (/) Le truc pas logique, c'est que la ligne 27 d'index.php dit require(dirname(__FILE__).'/config/config.inc.php'); Autrement dit, je demande le fichier config/config.inc.php contenu dans le même répertoire. Ce répertoire devrait être /web sauf que votre log d'erreur dit qu'il est appelé depuis /var/www/clients/client0/web20/web/prestashop/index.php Donc l'url que vous appelez renvoie vers web/prestashop (et ce répertoire doit exister autrement index.php ne pourrait pas répondre) Pour faire le test, placez un fichier toto.html à la racine de web, mettez une phrase dedans et appelez : http://votre_domaine.com/toto.html Si la phrase attendue ne s'affiche pas, c'est que votre domaine ne pointe pas sur /web Link to comment Share on other sites More sharing options...
Balouna Posted September 26, 2016 Author Share Posted September 26, 2016 En effet le physical uri ne comporte qu'un / Le dossier config/config.inc.php existe bien et le dossier prestashop également mais il est vide maintenant. Après le test que vous m'avez fait faire ma phrase de test s'affiche bien ! Link to comment Share on other sites More sharing options...
Eolia Posted September 26, 2016 Share Posted September 26, 2016 Ok et quelle est l'url que vous appelez pour vous connecter à votre BO ? Link to comment Share on other sites More sharing options...
Balouna Posted September 26, 2016 Author Share Posted September 26, 2016 monsite.com/admin******* En faite la même adresse qu'auparavant en enlevant le /prestashop du coup Link to comment Share on other sites More sharing options...
Eolia Posted September 26, 2016 Share Posted September 26, 2016 Ok, on tourne en rond... Commencez par activer l'affichage des erreurs en modifiant cette ligne au début du fichier config/defines.inc.php : define('_PS_MODE_DEV_', false); par define('_PS_MODE_DEV_', true); Ensuite, http://monsite.com affiche quoi ? Link to comment Share on other sites More sharing options...
Balouna Posted September 26, 2016 Author Share Posted September 26, 2016 Alors pour monsite.com j'ai ça : Welcome to your website! This is the default index page of your website.This file may be deleted or overwritten without any difficulty. This is produced by the file index.html in the web directory. For questions or problems please contact support. Pour le back office : Warning: include_once(/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_data.php) [function.include-once]: failed to open stream: No such file or directory in/var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.php on line 91Warning: include_once() [function.include]: Failed opening '/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_data.php' for inclusion (include_path='/var/www/clients/client0/web20/web/prestashop/tools/htmlpurifier/standalone:.:/opt/php-5.3.22/lib/php') in /var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.phpon line 91Warning: include_once(/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_templatebase.php) [function.include-once]: failed to open stream: No such file or directory in/var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.php on line 92Warning: include_once() [function.include]: Failed opening '/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_templatebase.php' for inclusion (include_path='/var/www/clients/client0/web20/web/prestashop/tools/htmlpurifier/standalone:.:/opt/php-5.3.22/lib/php') in /var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.phpon line 92Warning: include_once(/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_template.php) [function.include-once]: failed to open stream: No such file or directory in/var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.php on line 93Warning: include_once() [function.include]: Failed opening '/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_template.php' for inclusion (include_path='/var/www/clients/client0/web20/web/prestashop/tools/htmlpurifier/standalone:.:/opt/php-5.3.22/lib/php') in /var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.phpon line 93Warning: include_once(/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_resource.php) [function.include-once]: failed to open stream: No such file or directory in/var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.php on line 94Warning: include_once() [function.include]: Failed opening '/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_resource.php' for inclusion (include_path='/var/www/clients/client0/web20/web/prestashop/tools/htmlpurifier/standalone:.:/opt/php-5.3.22/lib/php') in /var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.phpon line 94Warning: include_once(/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_resource_file.php) [function.include-once]: failed to open stream: No such file or directory in/var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.php on line 95Warning: include_once() [function.include]: Failed opening '/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_resource_file.php' for inclusion (include_path='/var/www/clients/client0/web20/web/prestashop/tools/htmlpurifier/standalone:.:/opt/php-5.3.22/lib/php') in /var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.phpon line 95Warning: include_once(/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_cacheresource.php) [function.include-once]: failed to open stream: No such file or directory in/var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.php on line 96Warning: include_once() [function.include]: Failed opening '/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_cacheresource.php' for inclusion (include_path='/var/www/clients/client0/web20/web/prestashop/tools/htmlpurifier/standalone:.:/opt/php-5.3.22/lib/php') in /var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.phpon line 96Warning: include_once(/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.php on line 97Warning: include_once() [function.include]: Failed opening '/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php' for inclusion (include_path='/var/www/clients/client0/web20/web/prestashop/tools/htmlpurifier/standalone:.:/opt/php-5.3.22/lib/php') in /var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.phpon line 97Warning: include(/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_templatebase.php) [function.include]: failed to open stream: No such file or directory in/var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.php on line 1680Warning: include() [function.include]: Failed opening '/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_templatebase.php' for inclusion (include_path='/var/www/clients/client0/web20/web/prestashop/tools/htmlpurifier/standalone:.:/opt/php-5.3.22/lib/php') in /var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.phpon line 1680Fatal error: Class 'Smarty_Internal_TemplateBase' not found in /var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.php on line 105 Link to comment Share on other sites More sharing options...
Eolia Posted September 26, 2016 Share Posted September 26, 2016 Commencez par retirer le fichier index.html à la racine de /web, il n'a rien à faire là. Ensuite, renommez ou supprimez le répertoire /prestashop Et re-testez les 2 urls Link to comment Share on other sites More sharing options...
Balouna Posted September 26, 2016 Author Share Posted September 26, 2016 Après avoir supprimer la page index.html et le dossier prestashop maboutique.com renvoi une page blanche et le back office ces erreurs : Warning: include_once(/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_data.php) [function.include-once]: failed to open stream: No such file or directory in/var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.php on line 91Warning: include_once() [function.include]: Failed opening '/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_data.php' for inclusion (include_path='/var/www/clients/client0/web20/web/prestashop/tools/htmlpurifier/standalone:.:/opt/php-5.3.22/lib/php') in /var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.phpon line 91Warning: include_once(/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_templatebase.php) [function.include-once]: failed to open stream: No such file or directory in/var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.php on line 92Warning: include_once() [function.include]: Failed opening '/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_templatebase.php' for inclusion (include_path='/var/www/clients/client0/web20/web/prestashop/tools/htmlpurifier/standalone:.:/opt/php-5.3.22/lib/php') in /var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.phpon line 92Warning: include_once(/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_template.php) [function.include-once]: failed to open stream: No such file or directory in/var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.php on line 93Warning: include_once() [function.include]: Failed opening '/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_template.php' for inclusion (include_path='/var/www/clients/client0/web20/web/prestashop/tools/htmlpurifier/standalone:.:/opt/php-5.3.22/lib/php') in /var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.phpon line 93Warning: include_once(/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_resource.php) [function.include-once]: failed to open stream: No such file or directory in/var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.php on line 94Warning: include_once() [function.include]: Failed opening '/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_resource.php' for inclusion (include_path='/var/www/clients/client0/web20/web/prestashop/tools/htmlpurifier/standalone:.:/opt/php-5.3.22/lib/php') in /var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.phpon line 94Warning: include_once(/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_resource_file.php) [function.include-once]: failed to open stream: No such file or directory in/var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.php on line 95Warning: include_once() [function.include]: Failed opening '/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_resource_file.php' for inclusion (include_path='/var/www/clients/client0/web20/web/prestashop/tools/htmlpurifier/standalone:.:/opt/php-5.3.22/lib/php') in /var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.phpon line 95Warning: include_once(/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_cacheresource.php) [function.include-once]: failed to open stream: No such file or directory in/var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.php on line 96Warning: include_once() [function.include]: Failed opening '/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_cacheresource.php' for inclusion (include_path='/var/www/clients/client0/web20/web/prestashop/tools/htmlpurifier/standalone:.:/opt/php-5.3.22/lib/php') in /var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.phpon line 96Warning: include_once(/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.php on line 97Warning: include_once() [function.include]: Failed opening '/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php' for inclusion (include_path='/var/www/clients/client0/web20/web/prestashop/tools/htmlpurifier/standalone:.:/opt/php-5.3.22/lib/php') in /var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.phpon line 97Warning: include(/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_templatebase.php) [function.include]: failed to open stream: No such file or directory in/var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.php on line 1680Warning: include() [function.include]: Failed opening '/var/www/clients/client0/web20/web/prestashop/tools/smarty/sysplugins/smarty_internal_templatebase.php' for inclusion (include_path='/var/www/clients/client0/web20/web/prestashop/tools/htmlpurifier/standalone:.:/opt/php-5.3.22/lib/php') in /var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.phpon line 1680Fatal error: Class 'Smarty_Internal_TemplateBase' not found in /var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.php on line 105 Link to comment Share on other sites More sharing options...
Eolia Posted September 26, 2016 Share Posted September 26, 2016 Ce n'est pas possible, vous avez un cache serveur alors /var/www/clients/client0/web20/web/prestashop/tools/smarty/Smarty.class.php on line 91 <--- Si php arrive à lire la ligne 91 c'est que le fichier existe encore ou que vous avez un apcCache ou autre qui tourne Link to comment Share on other sites More sharing options...
Balouna Posted September 26, 2016 Author Share Posted September 26, 2016 Oui j'ai activé le cache directement dans le back office de prestashop, c'est ce qui bloque tout ? Link to comment Share on other sites More sharing options...
Eolia Posted September 26, 2016 Share Posted September 26, 2016 Non, là ca ressemble plus à un cache php sur le serveur. (apcCache ou OPCcache) Php ne peut pas lire un fichier qui n'existe pas, donc il est en cache quelpart. Au pire, redémarrez le VPS, ca videra tout. Videz quand même le répertoire /cache/smarty/cache et smarty/compile Link to comment Share on other sites More sharing options...
Balouna Posted September 26, 2016 Author Share Posted September 26, 2016 Après avoir vidé les deux répertoires et redémarré le VPS je n'ai plus qu'une seule erreur que ce soit sur le BO comme sur le front : Fatal error: Class 'Controller' not found in /var/www/clients/client0/web20/web/classes/Dispatcher.php on line 359 Dispatcher est bien dans classes, une fois ouvert à la ligne 359 j'ai ça : $controller = Controller::getController($controller_class); J'ai bien un dossier Controllers à la racine et un dossier Controller dans classes Link to comment Share on other sites More sharing options...
Eolia Posted September 26, 2016 Share Posted September 26, 2016 On va y arriver... effacez le fichier /cache/class-index.php également (il sera regénéré automatiquement) Link to comment Share on other sites More sharing options...
Balouna Posted September 26, 2016 Author Share Posted September 26, 2016 En effet on y approche !!! J'ai accès à l'identification du BO mais quand je m'identifie je tombe sur une 404. L'adresse devient : http://monsite.com/admin******/index.php?controller=AdminDashboard&token=ddd04f029d9553533c85bfe5c5b7aa5d Quand je supprime tout jusque admin il m'indique accès interdit. Pour ce qui est de monsite.com il semble y avoir un problème dans la BDD : [PrestaShopDatabaseException]Table 'prestashop.ps_product_comment' doesn't exist SELECT pc.`id_product_comment`, pcg.`grade`, pccl.`name`, pcc.`id_product_comment_criterion` FROM `ps_product_comment` pc LEFT JOIN `ps_product_comment_grade` pcg ON (pcg.`id_product_comment` = pc.`id_product_comment`) LEFT JOIN `ps_product_comment_criterion` pcc ON (pcc.`id_product_comment_criterion` = pcg.`id_product_comment_criterion`) LEFT JOIN `ps_product_comment_criterion_lang` pccl ON (pccl.`id_product_comment_criterion` = pcg.`id_product_comment_criterion`) WHERE pc.`id_product` = 5 AND pccl.`id_lang` = 1at line 791 in file classes/db/Db.php 786. if ($webservice_call && $errno) {787. $dbg = debug_backtrace();788. WebserviceRequest::getInstance()->setError(500, ' '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);789. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {790. if ($sql) {791. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');792. }793.794. throw new PrestaShopDatabaseException($this->getMsgError());795. }796. } DbCore->displayError - [line 425 - classes/db/Db.php] - [1 Arguments] DbCore->query - [line 643 - classes/db/Db.php] - [1 Arguments] DbCore->executeS - [line 48 - modules/wtspecialproductfooter/wtspecialproductfooterclass.php] - [1 Arguments] WTSpecialProductFooterClass::getGradeByProduct - [line 68 - modules/wtspecialproductfooter/wtspecialproductfooterclass.php] - [2 Arguments] WTSpecialProductFooterClass::getAveragesByProduct - [line 99 - modules/wtspecialproductfooter/wtspecialproductfooterclass.php] - [2 Arguments] WTSpecialProductFooterClass->getSpecialProductList - [line 104 - modules/wtspecialproductfooter/wtspecialproductfooter.php] - [1 Arguments] WTSpecialProductFooter->hookDisplayFooter - [line 587 - classes/Hook.php] - [1 Arguments] HookCore::coreCallHook - [line 542 - classes/Hook.php] - [3 Arguments] HookCore::exec - [line 1022 - classes/controller/FrontController.php] - [1 Arguments] FrontControllerCore->initFooter - [line 195 - classes/controller/Controller.php] ControllerCore->run - [line 367 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 28 - index.ph Link to comment Share on other sites More sharing options...
Eolia Posted September 26, 2016 Share Posted September 26, 2016 Pour le front vérifiez que la table ps_product_comment existe dans la table (module commentaires clients) Pour le reste, ca ressemble encore à un pb de chemin... Link to comment Share on other sites More sharing options...
Balouna Posted September 26, 2016 Author Share Posted September 26, 2016 Non je n'ai pas cette table mais je ne l'ai jamais eu car elle n'y est pas sur ma version en local qui date d'il y a plusieurs semaines.... Pour le BO c'est bien un problème d'accès car j'y arrive en ajoutant les www. Link to comment Share on other sites More sharing options...
Balouna Posted September 26, 2016 Author Share Posted September 26, 2016 Après vérification le module commentaire n'est pas activé Link to comment Share on other sites More sharing options...
Balouna Posted September 26, 2016 Author Share Posted September 26, 2016 En installant le module, la table s'est créée puisque j'ai enfin accès à monsite.com Link to comment Share on other sites More sharing options...
Eolia Posted September 27, 2016 Share Posted September 27, 2016 Donc pour résumer: - l'url n'était pas bonne (manquait www) - Cache serveur - Module à moitié installé Link to comment Share on other sites More sharing options...
Balouna Posted September 27, 2016 Author Share Posted September 27, 2016 Yes ! J'avais également omis de supprimer le .htaccess D'ailleurs je pense que le problème du back office accessible avec les www vient du htaccess. Pour le front j'ai bien accès avec les deux adresses. Un grand grand GRAND merci pour votre aide et votre patience. Sans vous je n'y serais jamais arrivée !!! C'est vraiment gentil à vous de partager vos connaissances ! Merci, merci, merci !!! Noémie Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now