Dams59 Posted July 13, 2017 Share Posted July 13, 2017 (edited) Bonjour à tous, bonjour à toutes, un souci comme on en rencontre de temps de temps. Cette fois, impossible de le régler, malgré les heures passées sur le forum FR et EN et en essayant les diverses solutions proposées. Donc voilà, le titre est clair, il est impossible d'envoyer un commentaire sur les pages produits. Le clic sur le bouton ENVOYER ne fait absolument rien. Dans la Console (Chrome), j'ai ceci comme erreur : "Failed to load resource: the server responded with a status of 404 (Not Found)" > "//productcomments/default?action=add_comment&secure_key=3022c00eae41fe895c8f5a0ebc2995c6&rand=1499980021304 " J'ai tenté diverses astuces, proposées notamment ici : https://www.prestashop.com/forums/topic/189085-product-comments-not-working-error/ Sans succès. Sachant que les solutions proposées sont en lien avec la version 1.5 Le shop est sous Prestashop 1.6 et voici son URL : https://shop.monsieur-formation.com Je suis à l'écoute de toutes astuces et autres suggestions. J'ai bien évidemment fait les manipulations de bases (réinitialisation, désinstallation) du module product_comments Je vous remercie par avance. Edited July 25, 2017 by Dams59 (see edit history) Link to comment Share on other sites More sharing options...
doekia Posted July 13, 2017 Share Posted July 13, 2017 Le tpl semble ne pas être https compliant, (comme de nombreux tpl natif). Corrige le et profites-en pour faire les tests que tu aurait du faire au passage https car il est fort à parier que tu as d'autres pétouilles à droite à gauche depuis ton passage en https. Link to comment Share on other sites More sharing options...
Dams59 Posted July 13, 2017 Author Share Posted July 13, 2017 Merci de ta réponse Il n'y a pas eu de "passage" en https, le shop a toujours été en https (certificat SSL domaine + sous-domaine). Installé et paramétré sur du SSL. Du coup, je ne comprend pas le https compliant Merci de ces quelques éclaircissements Link to comment Share on other sites More sharing options...
doekia Posted July 13, 2017 Share Posted July 13, 2017 "//productcomments/default?action=add_comment&secure_key=3022c00eae41fe895c8f5a0ebc2995c6&rand=1499980021304" il manque dans cette url un morceau. cela devrait être https://tonsite.tld/module/productcomments/default probablement. Link to comment Share on other sites More sharing options...
Dams59 Posted July 25, 2017 Author Share Posted July 25, 2017 Hello ! Je profites du temps que j'ai pour continuer à résoudre cela. Donc, toujours pas réglé. Pour reprendre la réponse précédente, il s'agit de la console Google, il n'affiche pas le domaine, donc c'est normal. Par contre, ce double slash, toujours pas possible de m'en débarrasser pour passer de : https://mondomaine.com//productcomments/default?action=add_comment&secure_key=3022c00eae41fe895c8f5a0ebc2995c6&rand=1500985521551 à https://mondomaine.com/productcomments/default?action=add_comment&secure_key=3022c00eae41fe895c8f5a0ebc2995c6&rand=1499980021304 et donc que l'url fonctionne, et donc que ce bouton fasse enfin son job. Les clients qui ne peuvent pas noter un produit, ce n'est pas bon pour le business Link to comment Share on other sites More sharing options...
doekia Posted July 25, 2017 Share Posted July 25, 2017 Corrige le template de ton module !!!!!!!! Link to comment Share on other sites More sharing options...
Dams59 Posted July 25, 2017 Author Share Posted July 25, 2017 Il est corrigé !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Je peux aussi en mettre un peu plus si besoin Il a été vérifié et revérifié. Même le fichier .js, sans résultat. {* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 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/afl-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 [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newersend_friend_form_content * 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 <[email protected]> * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {if isset($warehouse_vars.product_tabs) && $warehouse_vars.product_tabs} <section class="page-product-box tab-pane fade" id="reviewsTab"> {else} <section class="page-product-box" id="reviewsTab"> <h3 class="page-product-heading">{l s='Reviews' mod='productcomments'}</h3> {/if} <div id="product_comments_block_tab"> {if $comments} {foreach from=$comments item=comment} {if $comment.content} <div class="comment row" itemprop="review" itemscope itemtype="https://schema.org/Review"> <div class="comment_author col-sm-2"> <span>{l s='Grade' mod='productcomments'} </span> <div class="star_content clearfix" itemprop="reviewRating" itemscope itemtype="https://schema.org/Rating"> {section name="i" start=0 loop=5 step=1} {if $comment.grade le $smarty.section.i.index} <div class="star"></div> {else} <div class="star star_on"></div> {/if} {/section} <meta itemprop="worstRating" content = "0" /> <meta itemprop="ratingValue" content = "{$comment.grade|escape:'html':'UTF-8'}" /> <meta itemprop="bestRating" content = "5" /> </div> <div class="comment_author_infos"> <strong itemprop="author">{$comment.customer_name|escape:'html':'UTF-8'}</strong> <meta itemprop="datePublished" content="{$comment.date_add|escape:'html':'UTF-8'|substr:0:10}" /> <em>{dateFormat date=$comment.date_add|escape:'html':'UTF-8' full=0}</em> </div> </div> <!-- .comment_author --> <div class="comment_details col-sm-10"> <p itemprop="name" class="title_block"> <strong>{$comment.title}</strong> </p> <p itemprop="reviewBody">{$comment.content|escape:'html':'UTF-8'|nl2br}</p> <ul> {if $comment.total_advice > 0} <li> {l s='%1$d out of %2$d people found this review useful.' sprintf=[$comment.total_useful,$comment.total_advice] mod='productcomments'} </li> {/if} {if $is_logged} {if !$comment.customer_advice} <li> {l s='Was this comment useful to you?' mod='productcomments'} <button class="usefulness_btn btn btn-default button button-small" data-is-usefull="1" data-id-product-comment="{$comment.id_product_comment}"> <span>{l s='Yes' mod='productcomments'}</span> </button> <button class="usefulness_btn btn btn-default button button-small" data-is-usefull="0" data-id-product-comment="{$comment.id_product_comment}"> <span>{l s='No' mod='productcomments'}</span> </button> </li> {/if} {if !$comment.customer_report} <li> <span class="report_btn" data-id-product-comment="{$comment.id_product_comment}"> {l s='Report abuse' mod='productcomments'} </span> </li> {/if} {/if} </ul> </div><!-- .comment_details --> </div> <!-- .comment --> {/if} {/foreach} {if (!$too_early AND ($is_logged OR $allow_guests))} <p class="align_center"> <a id="new_comment_tab_btn" class="btn btn-default button button-small open-comment-form" href="#new_comment_form"> <span>{l s='Write your review!' mod='productcomments'} !</span> </a> </p> {/if} {else} {if (!$too_early AND ($is_logged OR $allow_guests))} <p class="align_center"> <a id="new_comment_tab_btn" class="btn btn-default button button-small open-comment-form" href="#new_comment_form"> <span>{l s='Be the first to write your review!' mod='productcomments'}</span> </a> </p> {else} <p class="align_center">{l s='No customer reviews for the moment.' mod='productcomments'}</p> {/if} {/if} </div> <!-- #product_comments_block_tab --> </section> <!-- Fancybox --> <div style="display: none;"> <div id="new_comment_form"> <form id="id_new_comment_form" action="#"> <h2 class="page-subheading"> {l s='Write a review' mod='productcomments'} </h2> <div class="row"> {if isset($product) && $product} <div class="product clearfix col-xs-12 col-sm-6"> <img src="{$productcomment_cover_image}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$product->name|escape:'html':'UTF-8'}" /> <div class="product_desc"> <p class="product_name"> <strong>{if isset($product->name)}{$product->name}{else}{$product.name}{/if}</strong> </p> {if isset($product->description_short)}{$product->description_short}{else}{$product.description_short}{/if} </div> </div> {/if} <div class="new_comment_form_content col-xs-12 col-sm-6"> <div id="new_comment_form_error" class="error" style="display: none; padding: 15px 25px"> <ul></ul> </div> {if $criterions|@count > 0} <ul id="criterions_list"> {foreach from=$criterions item='criterion'} <li> <label>{$criterion.name|escape:'html':'UTF-8'}:</label> <div class="star_content"> <input class="star not_uniform" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="1" /> <input class="star not_uniform" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="2" /> <input class="star not_uniform" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="3" /> <input class="star not_uniform" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="4" /> <input class="star not_uniform" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="5" checked="checked" /> </div> <div class="clearfix"></div> </li> {/foreach} </ul> {/if} <label for="comment_title"> {l s='Title:' mod='productcomments'}: <sup class="required">*</sup> </label> <input id="comment_title" name="title" type="text" value=""/> <label for="content"> {l s='Comment:' mod='productcomments'}: <sup class="required">*</sup> </label> <textarea id="content" name="content"></textarea> {if $allow_guests == true && !$is_logged} <label> {l s='Your name:' mod='productcomments'} <sup class="required">*</sup> </label> <input id="commentCustomerName" name="customer_name" type="text" value=""/> {/if} <div id="new_comment_form_footer"> <input id="id_product_comment_send" name="id_product" type="hidden" value='{$id_product_comment_form}' /> <p class="fl required"><sup>*</sup> {l s='Required fields' mod='productcomments'}</p> <p class="fr"> <button id="submitNewMessage" name="submitMessage" type="submit" class="btn button button-small"> <span>{l s='Submit' mod='productcomments'}</span> </button> {l s='or' mod='productcomments'} <a class="closefb" href="#"> {l s='Cancel' mod='productcomments'} </a> </p> <div class="clearfix"></div> </div> <!-- #new_comment_form_footer --> </div> </div> </form><!-- /end new_comment_form_content --> </div> </div> <!-- End fancybox --> {strip} {addJsDef productcomments_controller_url=$productcomments_controller_url|@addcslashes:'\''} {addJsDef moderation_active=$moderation_active|boolval} {addJsDef productcomments_url_rewrite=$productcomments_url_rewriting_activated|boolval} {addJsDef secure_key=$secure_key} {addJsDefL name=confirm_report_message}{l s='Are you sure that you want to report this comment?' mod='productcomments' js=1}{/addJsDefL} {addJsDefL name=productcomment_added}{l s='Your comment has been added!' mod='productcomments' js=1}{/addJsDefL} {addJsDefL name=productcomment_added_moderation}{l s='Your comment has been added and will be available once approved by a moderator.' mod='productcomments' js=1}{/addJsDefL} {addJsDefL name=productcomment_title}{l s='New comment' mod='productcomments' js=1}{/addJsDefL} {addJsDefL name=productcomment_ok}{l s='OK' mod='productcomments' js=1}{/addJsDefL} {/strip} Egalement vérifié par un développeur qui n'a rien trouvé de bizarre dessus... Link to comment Share on other sites More sharing options...
doekia Posted July 25, 2017 Share Posted July 25, 2017 Version exacte de ton prestashop Version exacte du module productcomments As-tu des overrides ? Qu'as-tu dans seo&url ? Link to comment Share on other sites More sharing options...
Dams59 Posted July 25, 2017 Author Share Posted July 25, 2017 Alors : PS 1.6.1.14 Version module : 3.6.1 Aucun override et... je viens de tenter un changement dans les urls. Problème réglé ! Module avant : {id}/{module}/{controller} Module maintenant : {module}/{controller} Le id qui n'existe pas en fait... du coup forcément, il est vide. donc le // à la fin du domaine. Comme quoi des fois, il suffit d'un rien... Les réglages automatiques de Prestashop... C'est quand même moyen... 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