when i click the reply buttom ,it goes to a url like (http://localhost/comment/reply/4/1),and the page shows the phpinfo.
i have same problem
we need help :)
Hello,
Can you explain more about issue with site url reference?
Thank you.
Hello all,
The error cause by relative path. To fix this issue, open file comment--node-article.tpl.php (Jolly theme) or comment.tpl.php (Evolve theme)
Add <?php global $base_url;?> on the top
and replace
href="/<?php if(isset($content['links']['comment']['#links']['comment-reply'])) print_r($content['links']['comment']['#links']['comment-reply']['href']); ?>">
by:
href="<?php print $base_url; ?>/<?php if(isset($content['links']['comment']['#links']['comment-reply'])) print_r($content['links']['comment']['#links']['comment-reply']['href']); ?>">
I do not like the fact, that nearly every solution is combined with a core-hack. Every new update will overwrite those changes. Or is there a plan to bring those changes into the main files with an update?
© Copyright 2013-2017 DrupalExp - All Rights Reserved
i have same problem
we need help :)
Hello,
Can you explain more about issue with site url reference?
Thank you.
Hello all,
The error cause by relative path. To fix this issue, open file comment--node-article.tpl.php (Jolly theme) or comment.tpl.php (Evolve theme)
Add <?php global $base_url;?> on the top
and replace
href="/<?php if(isset($content['links']['comment']['#links']['comment-reply']))
print_r($content['links']['comment']['#links']['comment-reply']['href']); ?>">
by:
href="<?php print $base_url; ?>/<?php if(isset($content['links']['comment']['#links']['comment-reply']))
print_r($content['links']['comment']['#links']['comment-reply']['href']); ?>">
Thank you.
I do not like the fact, that nearly every solution is combined with a core-hack. Every new update will overwrite those changes. Or is there a plan to bring those changes into the main files with an update?