Efficient Related Posts
Undefined variable: $p (1 post)

  1. Chris Van Patten
    Posted 2 years ago #

    Hi there -

    I'm using Efficient Related Posts in a client project, and on a certain post I'm seeing this error:

    Notice: Undefined variable: p in /home/path/to/content/plugins/efficient-related-posts/efficient-related-posts.php on line 318

    (I replaced the actual path with /path/to/, fyi.)

    The particular post doesn't have any related posts, which would seem to be why $p isn't defined.

    At first, I thought the error was being triggered because I'm filtering erp-related-link and erp-related-links-output to rewrite the markup, but even after removing the filters the error persists.

    The error doesn't seem to be a big deal—it's not breaking anything or halting execution—but is it possible to get rid of the error without changing my error reporting level? It's just ugly :)


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Efficient Related Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by Chris Van Patten
  • This topic is not resolved
  • WordPress version: 3.8