The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Calling apply_filters('the_content', $content); crashes site (7 posts)

  1. colinwiseman
    Posted 6 years ago #

    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?

  2. Mark / t31os

    Posted 6 years ago #

    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.

  3. colinwiseman
    Posted 6 years ago #

    Great. Trying that now.

  4. colinwiseman
    Posted 6 years ago #

    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!

  5. Mark / t31os

    Posted 6 years ago #

  6. colinwiseman
    Posted 6 years ago #

    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.

  7. Mark / t31os

    Posted 6 years ago #

    You're welcome, happy to hear you resolved your problem... :)

Topic Closed

This topic has been closed to new replies.

About this Topic