Tags – 404 Errors

Posted in: Newspaper
Post count: 39

All our tag links are giving us 404 pages. Any idea why?

https://share.america.gov/tag/science/
https://share.america.gov/tag/stem/
https://share.america.gov/tag/makers/
https://share.america.gov/tag/maker-faire/
etc…
etc…
etc…
etc…

Thanks,
David

Post count: 9544

Try resaving your permalinks

Maybe add the server paths to root folder in wp-config.php

Post count: 39

Hi Christopher,

Resaving the permalinks did not work.

What are the server paths to root folder in wp-config.php?

Thanks,
David

Post count: 9544

Likely won’t address your issue but I also hard code my URLs to reduce dbase calls

Blog/Site Address

In your WordPress Settings, you specify the WordPress address and the site address. Those are added in your database, and every time the developer calls it in the template, it is running a database query. In WordPress 2.2, these two settings were introduced to override the database values without changing them:

define('WP_HOME', 'http://sub.wpsitez123.com'); 
define('WP_SITEURL', 'http://sub.wpsitez123.com'); 
define('TEMPLATEPATH', '/absolute/path/to/wp-content/themes/active-theme');
define('STYLESHEETPATH', '/absolute/path/to/wp-content/themes/active-theme');

By adding these in your wp-config.php, you are reducing the number of database queries thus increasing your site’s performance.

—–
DEBUG
http://codex.wordpress.org/Editing_wp-config.php#Debug

WordPress Error Log
/**
 * This will log all errors notices and warnings to a file called debug.log in
 * wp-content only when WP_DEBUG is true. if Apache does not have write permission,
 * you may need to create the file first and set the appropriate permissions (i.e. use 666).
 */

define( 'WP_DEBUG', true ); // Or false
if ( WP_DEBUG ) {
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );
}
Post count: 39

That didn’t help the 404’s on all the tags. Here are all the tags we have… https://share.america.gov/topics/ I just don’t understand why they are getting 404 errors.

The categories work great. We need the tags exactly like this… http://share.digital2.getusinfo.com/category/regional/

Any other ideas?

Post count: 9544

Sounds dumb but try changing the tag path to something else…
If using seo plugin check to see there is no setting on to not use tags and only use categories

Post count: 39

I tried changing the tag path 6x’s already. No luck.

I am using Yoast WordPress SEO Plugin… I do not see any different settings for tags or categories.

Pulling my hair out!

Post count: 9544

been there …
with yoast I ran into trouble with two items
1) force transport (e.g,. http vs https) = leave off
2) remove stop words; caused some pages to 404 randomly

likely you should try temporarily switching to the default twenty-fourteen theme and turn off all plugins to see if you have the issue … then turn each plugin on, check to see which one causing issue; then when debugged, switch main theme back on.

Post count: 6600

Thanks Christopher!
@digitial2 Replied via e-mail!

Post count: 39

Good News & Bad News. We switch off all plugins and switched them back on one by one and found the problem…

Good News: We found out that the WPML plugin is causing the Tags to 404.

Bad News: We don’t know how to fix it. We don’t know where it is causing to to break.

Any thoughts or ideas?

Thanks
David

Post count: 9544

I would check the WPML support or user forums

eg.,
http://wpml.org/forums/topic/category-and-tag-links-not-working/

Viewing 11 posts - 1 through 11 (of 11 total)
The forum ‘Newspaper’ is closed to new topics and replies.