Viewing 11 replies - 1 through 11 (of 11 total)
  • Make sure you refresh your permalinks.

    “Settings > Permalinks” and then click Save

    Thread Starter croakingtoad

    (@croakingtoad)

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

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

    Thread Starter croakingtoad

    (@croakingtoad)

    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…

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

    Thread Starter croakingtoad

    (@croakingtoad)

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

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

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

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

    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…

    Thread Starter croakingtoad

    (@croakingtoad)

    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 ??

    Thread Starter croakingtoad

    (@croakingtoad)

    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?

    Thread Starter croakingtoad

    (@croakingtoad)

    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.

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘"Status" links 404ing’ is closed to new replies.