The MU forums have moved to WordPress.org

endless loops on homepage posts (12 posts)

  1. billdennis5
    Member
    Posted 16 years ago #

    I'm been experiencing side slowness issues for many months now, often directly related to attemopts to open posts on my homepage, http://blogpeoria.com. Last night, no pages would open.

    I asked my host to see what he could see and he sent me the following reply:

    Your homepage posts have an issue that is causing serious drains on both mysql and php resources. This needs to be addressed right away, regardless of your future plan to upgrade. When clicking on any of your main blog posts, the page takes forever to load because it repeats the post content endlessly down the page. These pages do eventually become visible but because the loop is endless, they can never load completely. What happens is the function call ends in a fatal error:

    Fatal error: Maximum execution time of 60 seconds exceeded in /home/blogpeor/public_html/wp-includes/plugin.php on line 274

    Looking at your wp-includes/plugin.php file, we find that the function causing this issue is somehow related to tags. I have pasted that fuction below for you and highlighted line 274 in red bold.

    `function do_action($tag, $arg = '') {
    global $wp_filter, $wp_actions, $merged_filters, $wp_current_filter;

    if ( is_array($wp_actions) )
    $wp_actions[] = $tag;
    else
    $wp_actions = array($tag);

    $wp_current_filter[] = $tag;

    // Do 'all' actions first
    if ( isset($wp_filter['all']) ) {
    $all_args = func_get_args();
    _wp_call_all_hook($all_args);
    }'

    I don't know you setup or I'd try and fix this for you. The main thing I don't get is the address related to these posts. http://blogpeoria.com/blog/2009/01/04/bad-news-for-print-good-news-for-hyperlocal/ I don't understand where the /blog/ portion of the address comes into play.

    NOTE: The line he highlighted in red is if ( is_array($wp_actions) )

    Any help trying to figure this out is appreciated.

  2. VentureMaker
    Member
    Posted 16 years ago #

    Do you have any tags-related plugin(s) installed?

  3. billdennis5
    Member
    Posted 16 years ago #

    Yes. All are deactivated on "blogpeoria.com"

    She I remove the plugin entirely?

  4. andrea_r
    Moderator
    Posted 16 years ago #

    There's definitely a conflict between buddypress and donncha's sitewide tags if you didn't see the other thread.

  5. billdennis5
    Member
    Posted 16 years ago #

    Andrea_r: I am not using either one of those, although it the past I have uploaded both. I've completely removed both.

    Anything extra I need to check?

  6. VentureMaker
    Member
    Posted 16 years ago #

    There're some plugins for WP (that work well in WPMU) doing 'content protection' stuff - disabling 'right click menu' and 'select all'.
    Crap. Slows down page loads considerably.

  7. billdennis5
    Member
    Posted 16 years ago #

    I am now running NO plugins on this account, except for Akismet. Page loads are still crappy.

    I also discovered that my permalink structure included a directory that I do not use="/blog/"

    I reverted to one that makes no mention of "/blog/" and I was advised to change my .htaccess

    What do I need to change?

  8. VentureMaker
    Member
    Posted 16 years ago #

    Permalinks structure makes no difference on server load.
    If you're using subdirectory install - I don't recommend you to remove /blog/ part from permalinks.

    What do you plan to change in .htaccess?

  9. IdaWebCo
    Member
    Posted 16 years ago #

    To bring you up to date, this issue came up when the entire site was moved to a new server. Bill has since changed his home theme and the issue immediately went away. I have asked him to see if switching back can be done without error - just curious. I'll let you know.

  10. billdennis5
    Member
    Posted 16 years ago #

    UsaWebCo: Yes. the looping was happening while the blog homepage was using a slightly hacked version of the Default Mu Homepage. The actual front page loaded fine, but when I attempted to open any post, it just looped. Also, while I was using that theme, I was having trouble accessing the RSS feed for the homepage.

    I switched another theme, Ruce Burner's viariation of the three coloumn Kubrick theme:

    http://www.riceblogger.com/blogging-tools/wordpress-3-colume-theme-kubrick/

    Pages and posts load up just fine. I'm gonna have to do some work with the Pages, as I created some templates for a contact page and a themes pages. No biggie.

    I switched back to the Default homepage and the same thing happened all over again.

    I'm sticking with Riceburner's theme.

  11. andrea_r
    Moderator
    Posted 16 years ago #

    Then it's some code on the home theme, I'd say.

  12. VentureMaker
    Member
    Posted 16 years ago #

    Get a FireBug extention for Firefox. Might show you something :)

About this Topic

  • Started 16 years ago by billdennis5
  • Latest reply from VentureMaker