Forum Replies Created

Viewing 8 replies - 241 through 248 (of 248 total)
  • @ponderconsulting: Thanks for the info. That link was interesting. I’ve found the stalls to occur when no one was logged in to the dashboard. I’ve also encountered the stalls IN the dashboard and while trying to view the main site while logged in to the dashboard.

    I’ll see if I can remain out of the dashboard today and see how often the stalls occur.

    @kellio48: It sounds like my Hostgator support experience has been better than yours. They’ve been very responsive to me and appear to be wracking their brains as much as I’ve been. If I get any useful info from them, I’ll post it here.

    I’m going to mention the “mod_security” issue mentioned at the site ponderconsulting posted the link to, to Hostgator support and we’ll see what they say.

    Thanks!

    Peace…

    Hostgator support asked me to disable the “All-in-One” SEO plugin and that I install the “W3 Total Cache” plugin to enable caching. Neither of those things helped me.

    The list of activated plugins is:

    BAAP Mobile Version
    Calendar
    Contact Form 7
    Lightbox Plus
    NextGEN Gallery
    Really simple CAPTCHA
    W3 Total Cache
    WordPress Importer
    WP-Cufon

    When I view the site in Firefox, the tab will show a “Connecting” status and the browser status bar will show a “Waiting for…” message and the browser just stalls waiting to get connected or to download data.

    Hostgator support DID indicate they could see my socket either in a “CONNECTED” state or in a “CLOSE_WAIT” state and then they would disappear as I would close the browser window.

    For me, the problem is really intermittent. When it does work, it loads fast but the stalls happen and I start pulling hair. 🙂 lol

    Again, I experienced this _before_ installing WordPress 3.2.1.

    @ponderconsulting: So, you’re seeing these stalls with WordPress installed in your LOCAL server environment?

    Peace…

    I’m in the same boat and I believe it happened with WordPress 3.1.4 as well. I tried upgrading to 3.2.1 thinking that would help. I’ve spent a perceived “eternity” with Hostgator support, including working with one rep on the phone. The server load was not high at all. There was nothing they could see on their end WHILE my browser was “spinning”. It seems as though the browser has problems contacting the web server when accessing WordPress. After some point, the pages and dashboard load and perform ok, then they start stalling again.

    The thing is, while the browser stalls trying to access WordPress, I could access static HTML files just fine and very quickly. So, there’s something up with the WordPress or PHP environment. I was starting to think it was an issue with my ISP but the poster above makes me question that now. My ISP is Comcast and I know of another Comcast user, not geographically close to me, who is experiencing the stalls as well.

    What PHP settings could we have Hostgator support check that could impact WordPress performance?

    Thanks!

    Peace…

    Thread Starter tomdkat

    (@tomdkat)

    That did it! Thanks!

    Peace…

    Thread Starter tomdkat

    (@tomdkat)

    Ok, I’ve found the code in question and I have an idea of how to deal with my problem.

    In wp-comments-post.php, these lines of code appear at the bottom of the file:

    $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_redirect($location);

    Since I’m not using a “redirect_to” parameter, the “get_comment_link()” function is invoked. As a result, after posting a comment the browser gets redirected to a URL like:

    http://www.mysite.com/work/blog/?p=3&cpage=1#comment-42

    I would like the browser to get redirected to this URL instead:

    http://www.mysite.com/work/blog/?p=3&cpage=1#content

    So, would I implement a version of get_comment_link() to return the URL I want or would I change wp-comments-post.php?

    Thanks!

    Peace…

    Thread Starter tomdkat

    (@tomdkat)

    Anyone have any ideas?

    Thanks!

    Peace…

    Thread Starter tomdkat

    (@tomdkat)

    Well, I got the missing piece of this puzzle figured out.

    After going through this page:

    http://codex.wordpress.org/Template_Tags/query_posts

    I learned I needed to add this:

    [?php
    // retrieve one post with an ID of 5
    query_posts(‘p=5’);
    ?]

    Of course, I replaced the ‘[‘ and ‘]’ with ‘<‘ and ‘>’, respectively. 🙂

    Doing this, along with borrowing the code from the index.php and single,php files in the default WordPress theme, I have something that mostly does what I need. 🙂

    Now I just need to deal with what happens when a new comment is left but I think I can figure that out… eventually. 🙂

    Peace…

    Thread Starter tomdkat

    (@tomdkat)

    Thanks! That is actually the page I read to get introduced to “The Loop”. 🙂

    In fact, I started with the code snipets on that page and was able to get the exceprts of entries in my test blog but with links to the individual blog entries. Unfortunately, that article stops short of what I’m trying to do, which is why I started this thread.

    Peace…

Viewing 8 replies - 241 through 248 (of 248 total)