SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    runat="server" Golgotha's Avatar
    Join Date
    Nov 2001
    Location
    Colorado
    Posts
    2,085
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need some help debugging this plugin.

    I could use some help with this one...



    The plugin works just fine here: http://www.search-this.com/2008/05/0...ment-info-tip/


    If you mouseover a commenter's name a tooltip appears giving you information on the commentator.


    You can also path directly to the ajax call and get the results, like here: http://www.search-this.com/wp-conten...ommentID=60552


    But on this guys blog when I try and path directly it throws a 404 error? http://www.zatznotfunny.com/wp-conte...ommentID=80583


    and ideas why?

    The plugin can be downloaded here:http://www.search-this.com/comment-info-tip/

  2. #2
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    4,827
    Mentioned
    142 Post(s)
    Tagged
    0 Thread(s)
    It's because his wordpress installation isn't in his root folder. It is at: http://www.zatznotfunny.com/wordpres...t-info-tip.php (notice the /wordpress/ folder immediately after the domain name)
    Be sure to congratulate xMog on earning April's Member of the Month
    Go ahead and blame me, I still won't lose any sleep over it
    My Blog | My Technical Notes

  3. #3
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    4,827
    Mentioned
    142 Post(s)
    Tagged
    0 Thread(s)
    Hey Mark,

    I replaced your first two lines in get-comment-info-tip.php with the following:
    Code:
    if (!defined(ABSPATH))
    {
       $directoryPath = dirname(__FILE__).'/';
       define(ABSPATH, substr($directoryPath, 0, strpos($directoryPath, '/wp-content') + 1));
    }
    include_once(ABSPATH . "wp-config.php");
    include_once(ABSPATH . 'wp-includes/rss.php');
    The issue I had, ABSPATH and WPINC were not defined. So I redefine ABSPATH, but I am uncertain as to how wp-includes is defined, so I hard-coded that for the time being.

    Enjoy.
    Matt
    Last edited by cpradio; Jun 3, 2008 at 12:36.
    Be sure to congratulate xMog on earning April's Member of the Month
    Go ahead and blame me, I still won't lose any sleep over it
    My Blog | My Technical Notes


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •