WordPress.org

Forums

disappearing comment link (1.5) (13 posts)

  1. thisvacantsky
    Member
    Posted 10 years ago #

    i upgraded to 1.5 yesterday, and followed podz instructions word for word. i've also spent the entire day troubleshooting and searching for an answer to no avail. when i view a post as a permalink, the comment link disappears. its always on my homepage though. i've seen two different solutions, but neither of them helped--i think they were for 1.2.

    http://thisvacantsky.net/
    thanks

  2. thisvacantsky
    Member
    Posted 10 years ago #

    sorry, i forgot: also my popup comment page isn't working. it gives me a fatal error "Call to undefined function: add_filter()". possibly related? maybe i'll just save that for a different thread.

  3. oriecat
    Member
    Posted 10 years ago #

    Do you have any plug ins working? Maybe the popup comments is trying to use a plugin that isn't set up right for 1.5? It says it's on line 5 of the comments-popup, so check the code in there.

  4. thisvacantsky
    Member
    Posted 10 years ago #

    nope, no plugins running, and i haven't downloaded any for 1.2 or 1.5. the code on the comments-popup is

    "<?php
    /* Don't remove these lines. */
    $blog = 1; ?>
    //require ('wp-blog-header.php');
    php add_filter('comment_text', 'popuplinks');
    php foreach ($posts as $post) { start_wp(); ?>"

    i don't think i changed anything but the //require...

  5. pericat
    Member
    Posted 10 years ago #

    In the first line, the leading double quote should be removed.

    In the third line, the trailing ?> will prevent the last two php commands from executing.

    In the last two lines, the php should be removed as well.

    My comments-popup.php does not contain lines 3 or 4 at all. For what that's worth.

  6. thisvacantsky
    Member
    Posted 10 years ago #

    ok, i've changed it, and now i'm getting a different error. i have

    "<?php
    php add_filter('comment_text', 'popuplinks');
    php foreach ($posts as $post) { start_wp(); ?>"

    and am getting a Parse error: parse error, unexpected T_STRING on line two. sorry if this is all simple, i'm pretty new at php.

  7. KyleGM
    Member
    Posted 10 years ago #

    Use
    <?php add_filter('comment_text', 'popuplinks'); foreach ($posts as $post) { start_wp(); ?>

  8. pericat
    Member
    Posted 10 years ago #

    Below is the first five lines in my copy:

    <?php
    /* Don't remove these lines. */
    add_filter('comment_text', 'popuplinks');
    foreach ($posts as $post) { start_wp();
    ?>

    I think you still need to remove the leading 'php' from the 'add-filter' and 'foreach' lines.

  9. thisvacantsky
    Member
    Posted 10 years ago #

    <?php add_filter('comment_text', 'popuplinks'); foreach ($posts as $post) { start_wp(); ?>

    gives me Fatal error: Call to undefined function: add_filter() on line 1

    <?php
    /* Don't remove these lines. */
    add_filter('comment_text', 'popuplinks');
    foreach ($posts as $post) { start_wp();
    ?>

    gives me

    gives me Fatal error: Call to undefined function: add_filter() on line 3

    i think 1.5 just hates me...

  10. oriecat
    Member
    Posted 10 years ago #

    Here's a previous post with a different add filters error
    http://wordpress.org/support/topic.php?id=23668

    So maybe the problem isn't even in the comments-popup file but in other files.

    I would reset your comments popup to be like it was at the beginning and then check to make sure everything else was uploaded correctly.

  11. pericat
    Member
    Posted 10 years ago #

    Do a search through the forum for 'undefined function'. There's several threads that will match those terms, and the consensus seems to be corrupted files during upload and/or not having run /wpadmin/upgrade.php before starting to mess with the blog.

  12. thisvacantsky
    Member
    Posted 10 years ago #

    ok, now i've really tried everything. i put up the stock comments-popup and i'm still getting the same error. i even tried downloading a new 1.5 in case there was a file corruption when i downloaded it. then i went and deleted everything but wp-config and my image folders one file at a time, and uploaded everything one file at a time. i'm at a complete loss, i've got absolutely no idea...maybe i'll just try to go back to 1.2.2.

  13. pericat
    Member
    Posted 10 years ago #

    Um, it looks like it's working to me.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.