WordPress.org

Ready to get started?Download WordPress

Forums

"Status" links 404ing (12 posts)

  1. croakingtoad
    Member
    Posted 3 years ago #

    When you click a "Status" (ie: colored block showing the current state) next to a ticket, it 404s. The ticket link works fine. My permalinks are set to default.

    This link works to the ticket: http://foo.com/support/?ticket=add-brc-house-ads

    This link 404s: http://foo.com/support/status/completed/

    What do I need to do to fix this?

  2. Spencer Finnell
    Member
    Posted 3 years ago #

    Make sure you refresh your permalinks.

    "Settings > Permalinks" and then click Save

  3. croakingtoad
    Member
    Posted 3 years ago #

    Yeah, already tried that. Still having the problem. :( Other advice?

  4. Spencer Finnell
    Member
    Posted 3 years ago #

    Is your .htaccess file writable? Did you have pretty urls enabled before?

  5. croakingtoad
    Member
    Posted 3 years ago #

    Well, my htaccess was not writable and I also had to chown it to the account owner, but even after doing that and resaving the permalinks, it's still not working, but I did make a bit of progress. And this is a new WP install just for this theme, so there is nothing previous.

    I found that when I switched to anything other than the default permalink settings, instead of a hard apache 404, I got a soft 404 from the theme (using 404.php I assume). But when I switch to default settings, it goes back to the hard apache 404.

    When the default settings are enabled, the .htaccess is blank except for the # wordpress comments...

  6. Spencer Finnell
    Member
    Posted 3 years ago #

    If you enable the default theme, do the pretty permalinks work?

  7. croakingtoad
    Member
    Posted 3 years ago #

    Yep, sure do. Here's something else that might help. The dropdown menu for "Status" URIs work fine, they're formatted like-

    http://foo.com/support/?ticket_status=completed

    The statuses next to each of the tickets doesn't work, they're formatted like-

    http://foo.com/support/status/completed/

  8. Spencer Finnell
    Member
    Posted 3 years ago #

    Those links shouldn't be different...

    Something is up with your rewrite rules. Would it be too much of a hassle to reinstall WP? I really don't have any other ideas...

  9. croakingtoad
    Member
    Posted 3 years ago #

    Gave me a good reason to set the site up using SVN so I did a reinstall with SVN. Refreshed permalinks afterward but still same problem :(

  10. croakingtoad
    Member
    Posted 3 years ago #

    I opened up the file loop.php and line 36 is-

    <a href="<?php bloginfo( 'url' ); ?>/status/<?php echo quality_ticket_status( $post->ID, 'slug' ); ?>/" class="ticket-status <?php echo quality_ticket_status( $post->ID, 'slug' ); ?>"><?php echo quality_ticket_status( $post->ID, 'name' ); ?></a>

    It looks like /status/ is hard-coded in there. Correct me if I'm wrong, but that's probably why it isn't working, eh?

  11. croakingtoad
    Member
    Posted 3 years ago #

    Yep, I changed that in my child theme to

    <a href="<?php bloginfo( 'url' ); ?>/?ticket_status=<?php echo quality_ticket_status( $post->ID, 'slug' ); ?>/" class="ticket-status <?php echo quality_ticket_status( $post->ID, 'slug' ); ?>"><?php echo quality_ticket_status( $post->ID, 'name' ); ?></a>

    and now it's working with the default permalink set up.

  12. Spencer Finnell
    Member
    Posted 3 years ago #

    This has been fixed in the new version. The permalink is no longer hard-coded in. It uses the proper get_term_link function.

Topic Closed

This topic has been closed to new replies.

About this Topic