Support » Fixing WordPress » Calling apply_filters(‘the_content’, $content); crashes site

  • Resolved colinwiseman

    (@colinwiseman)


    I have disabled and then deleted a couple of plugins and then my site stopped working. Or it might have stopped working for some other reason…i don’t know am completely stumpped.

    But I have worked it back to this line of code:

    apply_filters(‘the_content’, $content);

    in post-template.php. When it is commented out the site works but none of the plugins appear.

    This also happens with the_excerpt method, so I think it might be further into the code, possibly this line of code:

    $value = call_user_func_array($the_[‘function’], array_slice($args, 1, (int) $the_[‘accepted_args’]));

    But I have no idea. Do you?

Viewing 6 replies - 1 through 6 (of 6 total)
  • It’s a plugin running a filter on the content, it’s not the code you mentioned at fault but a plugin that hooks onto particular actions that deal with post content/excerpts.

    Disable all your plugins, and re-enable one at a time, you’ll soon find the source of the problem.

    If you can’t get into the site to do that, copy your plugins folder to your PC (so you have a copy), then delete the plugins folder off your site. Then add them back one at a time.

    Great. Trying that now.

    Is there anyway I can find out which method is falling over? i.e. is there a log that will tell this? Cause we have soooo many plugins lol!

    It turns out a plugin called wp_thumbie reactivated, and to be blunt, it seemed to reactivate by itself – although i know that is impossible, but i only deactivated a plugin at the top of the list, with wp_thumbie at the bottom!

    Strange but we are back. Thank you for your time and answers.

    You’re welcome, happy to hear you resolved your problem… 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Calling apply_filters(‘the_content’, $content); crashes site’ is closed to new replies.