Jump to content

Page blanche après un changement de dossier


Recommended Posts

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

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

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 91

Warning: 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 91

Warning: 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 92

Warning: 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 92

Warning: 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 93

Warning: 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 93

Warning: 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 94

Warning: 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 94

Warning: 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 95

Warning: 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 95

Warning: 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 96

Warning: 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 96

Warning: 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 97

Warning: 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 97

Warning: 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 1680

Warning: 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 1680

Fatal 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

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 91

Warning: 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 91

Warning: 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 92

Warning: 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 92

Warning: 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 93

Warning: 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 93

Warning: 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 94

Warning: 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 94

Warning: 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 95

Warning: 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 95

Warning: 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 96

Warning: 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 96

Warning: 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 97

Warning: 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 97

Warning: 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 1680

Warning: 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 1680

Fatal 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

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

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

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

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` = 1

at 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. }
Link to comment
Share on other sites

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 !!!  :D

C'est vraiment gentil à vous de partager vos connaissances !  ^_^

Merci, merci, merci !!!

 

Noémie

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...