Oxyd34 Posted March 15, 2018 Share Posted March 15, 2018 (edited) Bonjour, En voulant mettre en place le ReCaptcha j'ai tout cassé. Je ne sais pas comment mais j'ai fais une mauvaise manip en uploadant le nouveau fichier index.php a la racine. Maintenant ca ne fonctionne plus.. Sur Safari ca me dit ca : Quote It works!This is the server's temporary default web page.The web server software is running but no content has been added yet. Expand Et sur Chrome : Comment je peux réparer ca ? Y-a-t-il un fichier par défaut maintenant que je n'ai pas la sauvegarde de ce fichier ? Cette page ne fonctionne pas www.xxx.com vous a redirigé à de trop nombreuses reprises. Essayez de supprimer les cookies.. ERR_TOO_MANY_REDIRECTS Précisions : Presta est en 1.6.1.6 et utilise le thème Panda modifié Merci de votre aide ! Edited March 15, 2018 by Oxyd34 (see edit history) Link to comment Share on other sites More sharing options...
Eolia Posted March 15, 2018 Share Posted March 15, 2018 <?php /* * 2007-2015 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <contact@prestashop.com> * @copyright 2007-2015 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ require(dirname(__FILE__).'/config/config.inc.php'); Dispatcher::getInstance()->dispatch(); 1 1 Link to comment Share on other sites More sharing options...
Oxyd34 Posted March 15, 2018 Author Share Posted March 15, 2018 ahhhhh génial !!!!! ca marche, merci !! Link to comment Share on other sites More sharing options...
Oxyd34 Posted March 15, 2018 Author Share Posted March 15, 2018 Bon pas complètement résolu parce que quand je mets le code ReCaptcha de nouveau ca ne marche plus, la page devient blanche ?! Ce fichier index.php je le met a la racine et non pas de le theme, mais est-ce que je me plante quelques part ? Merci de votre aide => Je mets le code en question que je met entre la ligne @copyright & @license Quote if (isset($_REQUEST['submitMessage'])){ if (empty($_REQUEST['g-recaptcha-response'])){ sleep(25); die('not human'); } $opts = array('http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => http_build_query( array( 'secret' => 'ma_cle_secrete', /* TODO: tune this https://www.google.com/recaptcha/admin */ 'response' => $_REQUEST['g-recaptcha-response'], ) ), ), ); $stream = stream_context_create($opts); $captcha = @json_decode(file_get_contents('https://www.google.com/recaptcha/api/siteverify', false, $stream), true); if (empty($captcha) || empty($captcha['success']) || !$captcha['success']){ sleep(25); die('not human'.PHP_EOL.print_r($captcha,1)); } } Expand Link to comment Share on other sites More sharing options...
Eolia Posted March 15, 2018 Share Posted March 15, 2018 Activez le mode debug pour voir si une erreur s'affiche à la place de la page blanche. Link to comment Share on other sites More sharing options...
Oxyd34 Posted March 15, 2018 Author Share Posted March 15, 2018 J'ai mis sur oui les 2 options suivantes mais la page reste blanche.. :-/ MODE DEBUG Désactiver les modules non développés par PrestaShop OUINON Désactiver toutes les surcharges OUINON Enregistrer Link to comment Share on other sites More sharing options...
Eolia Posted March 15, 2018 Share Posted March 15, 2018 Non.... Pour les versions 1.5 & 1.6, comme toujours en cas d'erreur 500 et pour en savoir plus, il faut modifier cette ligne au début du fichier config/defines.inc.php : define('_PS_MODE_DEV_', false); par define('_PS_MODE_DEV_', true); Et donnez-nous l'erreur après avoir rafraichi la page Pour les 1.7 il faut activer le mode debug en BO Link to comment Share on other sites More sharing options...
Oxyd34 Posted March 15, 2018 Author Share Posted March 15, 2018 c'est fait, mais la page est toujours blanche, je ne vois pas d'erreur sur la page. par contre la page est blanche sur Safari mais Chrome affiche ca : Cette page ne fonctionne pas Impossible de traiter cette demande via www.xxx.fr à l'heure actuelle. HTTP ERROR 500 Link to comment Share on other sites More sharing options...
Eolia Posted March 16, 2018 Share Posted March 16, 2018 Envoyez-moi un accès FTP par MP et on va régler ça Link to comment Share on other sites More sharing options...
Oxyd34 Posted March 16, 2018 Author Share Posted March 16, 2018 ca marche, merci encore Link to comment Share on other sites More sharing options...
Oxyd34 Posted March 19, 2018 Author Share Posted March 19, 2018 Bonjour Pierre, J'espère que vous avez passé un bon weekend. Je me coté il se trouve que j'ai le même problème sur un autre site, je me fait spammer aussi par les russes et la aussi j'ai du casser quelquechose, la page d'accueil est blanche. Pourtant je pense avoir suivi les instructions.. Pourriez vous me filer un coup de main ? Merci d'avance Gregory Link to comment Share on other sites More sharing options...
Eolia Posted March 19, 2018 Share Posted March 19, 2018 Il me faudrait également un accès ftp pour ce site^^ Link to comment Share on other sites More sharing options...
Oxyd34 Posted March 20, 2018 Author Share Posted March 20, 2018 (edited) Bien sur, mais je préférais demander avant Voici les accès : Merci pour votre aide Edited March 20, 2018 by Oxyd34 (see edit history) Link to comment Share on other sites More sharing options...
Eolia Posted March 20, 2018 Share Posted March 20, 2018 Bah c'est sûr qu'en collant le code en plein milieu de la licence ça ne risque pas de marcher... Petit souci de copier/coller à mon avis^^ C'est réparé. Link to comment Share on other sites More sharing options...
Oxyd34 Posted March 20, 2018 Author Share Posted March 20, 2018 (edited) Ah oui c'est de la noobitude totale la.. Edited March 20, 2018 by Oxyd34 (see edit history) Link to comment Share on other sites More sharing options...
Eolia Posted March 20, 2018 Share Posted March 20, 2018 Supprimez vos accès ftp de ce forum svp, vous n'êtes pas en message privé là^^ 1 Link to comment Share on other sites More sharing options...
Oxyd34 Posted March 20, 2018 Author Share Posted March 20, 2018 je fais clairement n'importe quoi.. besoin de vacances.. :-/ Link to comment Share on other sites More sharing options...
Eolia Posted March 20, 2018 Share Posted March 20, 2018 Je vous conseille de changez vos identifiants ftp par contre, sous peine de vous faire hacker... 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