Forums

YARPP problems - Fatal error: Call to undefined function yarpp_sql() (2 posts)

  1. ralexander
    Member
    Posted 5 months ago #

    Hi All,

    I have recently updated YARPP plug-in, and since doing so i'm getting this error: Fatal error: Call to undefined function yarpp_sql()

    Has anyone else come across this or know how to fix it?
    Here is an example of my offending blog:
    http://differentwatch.com/4-most-popular-running-watches/

    The code causing the problem is in single.php (somewhere in the following:)

    <h2>Related Posts</h2>
                      <div class="clr"></div>
                      <?php
    					$results = $wpdb->get_results(yarpp_sql(array('post'),array()));
    					foreach ( (array) $results as $_post ) :
    					$_post = get_post($_post->ID);  ?>
                      <div class="th fl"><a href="<?php echo get_permalink($_post->ID); ?>"><img src="<?php echo get_post_meta($_post->ID, 'post-img', true); ?>" alt="" /></a></div>
                      <div><a href="<?php echo get_permalink($_post->ID); ?>"><?php echo $_post->post_title; ?></a></div>
                      <div class="hlr"></div>
                      <?php endforeach; ?>
                    </div>
              <div class="post-rel">
                <div class="content">
                  <div class="subcols">
                    <div class="col1">

    I know Mitcho (the creator of YARPP) mentioned in a previous post he was going update the plug-in to throw out an error if the code included 'yarpp_sql' rather then 'related_posts()' but istill can't get it to work. Help! Anyone?

  2. ralexander
    Member
    Posted 5 months ago #

    A quick update - i have installed an older version of YARPP and the error disappeared (and the sidebar and background returned which was another symptom of the problem) so it is definitely something to do with an update in the plug-in - although i can see nothing in the change logs to suggest what that change might be!

    Hmm the plot thickens.....

Reply

You must log in to post.

About this Topic