• Resolved Lordsenf

    (@lordsenf)


    Hello,

    without changing anything my wordpress comments post redirects me like always to htttp://mysite.com/post#comment-id but the comments aren’t visible until I manually refresh the page with ctr + F5

    I tried to change the redirect and adding a automatic header refresh but nothing works. I DO NOT cache my website.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Lordsenf

    (@lordsenf)

    My wp-comments-post.php

    $location = empty($_POST['redirect_to']) ? get_comment_link($comment_id) : $_POST['redirect_to'] . '#comment-' . $comment_id;
    $location = apply_filters('comment_post_redirect', $location, $comment);
    
    wp_safe_redirect( $location );
    exit;

    Have you tried temporarily switching to the Twenty Eleven theme to rule out any theme-specific problems?

    Thread Starter Lordsenf

    (@lordsenf)

    Yes I did – the strange thing, the redirect works on Twenty Eleven but the same problem still exists, the comments only appear after a ctr+F5 refresh of the page. Maybe something is damaged at my .htacces or WordPress core files?

    Are you running an caching plugins? Is your browser caching pages?

    Thread Starter Lordsenf

    (@lordsenf)

    I don’t run a caching plugin on the website and I tried deactivating all currently running plugins but no results. I did clear my browser cache, tried different browser (Chrome, FF, IE, Safari) and tested from different computers – still I don’t know whats causing this trouble.

    And I already read https://codex.www.ads-software.com/I_Make_Changes_and_Nothing_Happens

    Thread Starter Lordsenf

    (@lordsenf)

    I wrote my Hoster an email if he is able to deactivate the Varnish Cache, but I am not 100% sure if its the true problem – since the proper display of the comments worked 3 days ago. Any other suggestions whats maybe causing the problem? (If its the Varnish Caching I will reply)

    Thread Starter Lordsenf

    (@lordsenf)

    Okay I solved it

    The problem was nothing with wordpress, themes or plugins it was simply the Varnish Cache – I asked my hosting provided to whiteliste my site and now all is working the way it should.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘No Comments appear until manual refresh of the page’ is closed to new replies.