Yoast SEO
[Plugin: WordPress SEO by Yoast] Author page link still redirecting to homepage (24 posts)

  1. meshedup
    Posted 4 years ago #

    WordPress version: 3.4.1
    WordPress SEO version: 1.2.5

    I did this: Uncheck the "Disable the author archives" box in SEO -> Title and Metas -> Other

    I expected the plugin to do this: To enable author pages for each author (author.php).I also tried clearing Wp-cache many times.

    Instead it did this: The plugin still redirects author page links to homepage even after unchecking the respective settings box

    Site i am referring to : http://shrewdgeek.com


  2. brasofilo
    Posted 3 years ago #

    WP: 3.4.1
    WP SEO:

    I'm experiencing the same. No other plugins active. Using the default theme TwentyEleven.

    As a temporary solution remove the disable-author option of the function archive_redirect in /plugins/wordpress-seo/frontend/class-frontend.php. Leaving it like this:

    function archive_redirect() {
    		global $wp_query;
    		$options = get_wpseo_options();
    		if (  ( isset( $options['disable-date'] ) && $options['disable-date'] && $wp_query->is_date ) || ( isset( $options['disable-post_formats'] ) && $options['disable-post_formats'] && $wp_query->is_tax( 'post_format' ) ) ) {
    			wp_redirect( get_bloginfo( 'url' ), 301 );
  3. meshedup
    Posted 3 years ago #

    thanks brasofilo,
    Atleast some replied with some kind of working solution.I don't know why the developer doesn't reply to support queries.

  4. Scott Hendison
    Posted 3 years ago #

    Glad someone replied - Thanks, yes this worked. Silly to have to do this, but glad it worked

  5. Dzynit
    Posted 3 years ago #

    This also worked for me, but definitely isn't a good solution. On upgrade, the problem will come back and the plugin will have to be re-edited again.

    There must be an issue on save when the needed checkboxes in admin are unchecked - that they are not updating the database options correctly.

    If anyone is willing to tinker with their database to get a permanent solution that doesn't require editing the plugin all the time, please post what you did here.

  6. Dzynit
    Posted 3 years ago #

    I had trouble last week trying to reply an update to my previous post. Brasofilo's suggestion above didn't fully work for me. I had to comment out the entire archive_redirect function.

    Comment out lines 903 – 913 of the plugins/wordpress-seo/frontend/class-frontend.php file

    //	function archive_redirect() {
    //		global $wp_query;
    //		$options = get_wpseo_options();
    //		if (
    //			( isset( $options['disable-date'] ) && $options['disable-date'] && $wp_query->is_date ) ||
    //			( isset( $options['disable-author'] ) && $options['disable-author'] && $wp_query->is_author ) ||
    //			( isset( $options['disable-post_formats'] ) && $options['disable-post_formats'] && $wp_query->is_tax( 'post_format' ) )
    //		) {
    //			wp_redirect( get_bloginfo( 'url' ), 301 );
    //			exit;
    //		}
  7. Uffe Fey
    Posted 3 years ago #

    I confirm this bug is present in I am pretty sure the problem is related to settings not being saved or read properly.

  8. matthiaswh
    Posted 3 years ago #

    I (finally) found the source of this bug. The author archive redirecting to the homepage is saved in the options under the key 'disable-author'. The problem for me was that this key was in two different options records: wpseo & wpseo_titles. This is most likely due to the author changing the location where this setting is saved at some point, but the upgrade process didn't clear the old record.

    To fix this:

    1. In the WordPress admin go to SEO -> Titles & Meta, click the Other tab & ensure Disable The Author Archives is unchecked.
    2. Go to your database and find the options table for your site (wp_options or wp_XX_options most likely)
    3. Find both rows with option_name set to wpseo and wpseo_titles
    4. If the key "disable-author" is set in either of them you can remove it entirely, or change the value of it to "off"

    If it is on, the option_value for either/or both of those rows will include: s:14:"disable-author";s:2:"on"; That's the part you can remove.

  9. Dzynit
    Posted 3 years ago #

    The option_name in the wp-options table to search for is wpseo. Obviously the checkbox is no longer working. If it was set to "on" before this issue started, the only way at this point is to edit it directly in the database. (Which is a better solution than editing the plugin as I showed in my previous post.) I hope this is corrected soon though, because we have a couple sites that do not have database access as I'm sure many people either don't or aren't familiar enough with editing them.

  10. isolde100
    Posted 3 years ago #

    I have the same problem. Author pages not working. The most recent update has not fixed this. Sigh . . . still waiting for BUG fix.

  11. kprimdal
    Posted 3 years ago #

    Workaround, add this to the functions.php in the current theme folder:

    // Remove bug in WordPress SEO by Yoast where Author achive is not working
    global $wpseo_front;
    remove_action( 'wp', array( $wpseo_front, 'archive_redirect' ), '10' );
  12. kprimdal
    Posted 3 years ago #

    Will however also have influence and enable date archive if that was enabled, but then just add a new function without the Author Arhcive check

  13. thehrisworld
    Posted 3 years ago #

    didn't find anything in any of the tables with options in the name...

    commented the 10 lines out as noted by Dzynit, and receive a T_PUBLIC error (not familiar with PHP)...

    tried kprimdal's suggestion in the functions.php file and all it did was appear on the top of every page and post...

    Google is ramping up the rel=author and if push comes to shove, I'm going to deactivate WordPress SEO in favor of another until this bug gets fixed...

  14. isolde100
    Posted 3 years ago #


    Your solution, which was working until the latest update of Yoast SEO, is no longer working. Any new solution?

  15. Dzynit
    Posted 3 years ago #

    Even with the latest plugin version, I still have to edit the setting directly in the wp_options database table as matthiaswh described above. I've not found any other work-arounds if you don't have access to edit the database.

  16. Niramaya
    Posted 3 years ago #

    Have been dealing with identical issue but for date-based archives. No luck getting feedback from dev and as I'm just now seeing this thread, I worry that tinkering with code may not yield desired result. Has anyone found a reasonable fix? Thanks for *any* pointers!

    My post: http://wordpress.org/support/topic/plugin-auto-disables-date-based-archives?replies=1

  17. Dzynit
    Posted 3 years ago #

    If you're comfortable editing in the database, the same solution from matthiaswh will work for you. The date-based is in the same place in the wp_options table and it's right after the disable-author part.

  18. simquo
    Posted 3 years ago #

    Hello I have the same problem

  19. silo
    Posted 3 years ago #

    After you untick the author archive option, you might try nuking your browser cache. In my case, Firefox/Mac hung on to the redirect for some reason.

  20. Niramaya
    Posted 3 years ago #

    Thanks, but tried that numerous times. Did not work.

  21. vahost
    Posted 3 years ago #

    matthiaswh: your solution worked for me. Thanks.

    I agree with others that this is not a good solution for someone who doesn't know how to manipulate the back-end database of WordPress, but it does work if you know how to do it.

    This bug needs fixing.

  22. Dazza30
    Posted 3 years ago #

    Has anyone actually received any support from the plugin developer?

  23. Chris
    Posted 3 years ago #

    If you only want the author tag to appear on the blog posts and removed from all other pages such as home page, contact us etc... Then here is a quick fix.

    (1). Open class-frontend.php (wordpress-seo/frontend)
    (2). Search for: "public function author() {"
    (3). Around Line 757
    (4). Replace "is_singular()" to "is_single()" (without quotes)

    Now your author link will only appear on individual blog posts rather than on every page on your site.

  24. benjsc
    Posted 3 years ago #

    For those that don't know how to use mysql, put the following in your function.php

    $options = get_option( 'wpseo' );
    update_option( 'wpseo', $options );

    It will permanetly make sure author pages are enabled.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic