• Resolved scurran

    (@scurran)


    Hello, if someone can please help, I installed wordpress today, downloaded a theme and wrote a post. So far so good. But when I click on “leave a comment” the page reloads with this added at the bottom:

    Fatal error: Call to undefined function: related_posts() in /home/stacey/missmuffet-www/wordpress/wp-content/themes/cherry-berry-fw-10/single.php on line 20

    My blog is at http://www.missmuffet.net/wordpress

    Thank you very much if you can help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Sounds like there’s a leftover call to a plugin (related_posts) in your index.php, sidebar.php, or comments.php files (any one of them or maybe all of them). You’ll need to open those files and search for “related_posts”; when you find it delete it….

    Thread Starter scurran

    (@scurran)

    I checked them all and do not find that anywhere.

    How strange. Do you think this is related to the theme or the original intallation? I can try another theme, although I’d really like to use this one. Thanks again.

    Thread Starter scurran

    (@scurran)

    Wait – I found it in single.php. Here is an excerpt:

    <!– unCOmment only u have the related post plugin installed
    <div class=”relatedpost”>
    Possibly Some Related Posts

      <?php related_posts(5, 10, ‘

    • ‘, ‘
    • ‘, ”, ”, false, false); ?>

    </div>

    What exactly should I delete?

    Well, normally this should have been commented out, but looks like that didn’t happen.

    Delete the whole section beginning with
    <div class="relatedpost">
    and ending with
    </div>

    and see what happens. Keep a backup copy of the file!

    Thread Starter scurran

    (@scurran)

    Thank you, it seems to be working fine now.

    Thats good – happy blogging!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Cannot leave comment’ is closed to new replies.