• I’ve been looking all over for a solution to a problem I had with James Van Lommel’s RunPHP plugin.

    The trouble was that whenever RunPHP was activated, the feed crashed on the first post that used the plugin, stopping output directly after the CDATA section.

    After an elaborate search, I found that I was apparantly the only one on the internet suffering from this problem (or perhaps my searching skills aren’t as good as I thought).

    Anyway, I solved the problem, so for anyone experiencing similar problems, here’s a solution:

    Edit the RunPHP.php plugin-file and find the “// Functionality” section. Then, add // in front of every line containing ‘rss’ :

    // Functionality
    add_filter(‘wp_head’, array(‘runPHP’, ‘DetermineAllEvaldPosts’));
    //add_action(‘rss_head’, array(‘runPHP’, ‘DetermineAllEvaldPosts’));
    //add_action(‘rss2_head’, array(‘runPHP’, ‘DetermineAllEvaldPosts’));
    //add_action(‘atom_head’, array(‘runPHP’, ‘DetermineAllEvaldPosts’));
    add_action(‘rdf_header’, array(‘runPHP’, ‘DetermineAllEvaldPosts’));

    add_filter(‘the_content’, array(‘runPHP’, ‘EvalContent’), 1);
    //add_filter(‘the_content_rss’, array(‘runPHP’, ‘EvalContent’), 1);
    //add_filter(‘the_excerpt_rss’, array(‘runPHP’, ‘EvalContent’), 1);

    This solved my problem, alas: there’s no php left in my feed, but that’s not a problem for me. So if that DOES trouble you and if you can find another way of dealing with this, please let me (us) know!

    I hope this was helpful!

    Regards,
    hnldesign

    NB: I forgot to untag the ‘this is a support question’ field. As it is, this is no question, but a possible solution. Thanks 🙂

The topic ‘RunPHP and RSS(2)’ is closed to new replies.