• Resolved honzamensa

    (@honzamensa)


    Guest authors suddenly stopped displaying on our site. Not sure when exactly the issue started, but now only authors mapped to real WP users are showing…

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter honzamensa

    (@honzamensa)

    The issue persists even with version 3.5.15.

    Any help would be appreciated. Thanks!

    Plugin Contributor Gary Jones

    (@garyj)

    Do you mean in the Author select dropdown, author archive pages, or elsewhere?

    Have you visited Settings -> Permalinks to flush the rewrites?

    Did any other plugins get installed recently? Can you disable the other plugins and see if that fixes it? Did you update WordPress, or PHP? Are there any error messages in PHP logs?

    Thread Starter honzamensa

    (@honzamensa)

    No new plugins but several got updated and I am not sure when it broke. After enabling debug logging, this appeared once:

    [24-Sep-2023 08:27:52 UTC] PHP Notice: Undefined variable: author_ids in /data/web/virtuals/179321/virtual/www/subdom/magazin/wp-content/themes/soledad/inc/template-function.php on line 1700
    [24-Sep-2023 08:27:52 UTC] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /data/web/virtuals/179321/virtual/www/subdom/magazin/wp-content/themes/soledad/inc/template-function.php on line 1700
    [24-Sep-2023 08:27:52 UTC] PHP Notice: Undefined variable: author_ids in /data/web/virtuals/179321/virtual/www/subdom/magazin/wp-content/themes/soledad/inc/template-function.php on line 1701
    [24-Sep-2023 08:27:52 UTC] PHP Warning: Invalid argument supplied for foreach() in /data/web/virtuals/179321/virtual/www/subdom/magazin/wp-content/themes/soledad/inc/template-function.php on line 1701

    But it’s not appearing any more, regardless of which article or page I open…

    Disabling other plug-ins does not fix it.

    Thread Starter honzamensa

    (@honzamensa)

    Further update, I have added some extra logging and revealed that the Soledad theme is trying to pull the authors list by calling coauthors__echo(“ID”, “field”…) then at line 1707 it is extracting the name by calling get_the_author_meta:

    $name = get_the_author_meta( 'display_name', $author_id );

    I have tries to change it to use get_the_coauthor_meta instead, which seems to have worked:

    $name_meta = get_the_coauthor_meta( 'display_name', $author_id );
    $name = $name_meta[$author_id] ?? "";

    Guest authors suddenly stopped displaying on our site. Not sure when exactly the issue started, but now only authors mapped to real WP users are showing…

    @honzamensa

    We’ve got exactly the same problem, but with DI Multipurpose Theme (1.1.6). It also persists after updating to Co-Authors Plus 3.5.15. Our WordPress version is 6.3.1.

    For example, under this posting should appear the two women as co-authors, you can see on this screenshot.

    In addition, there has been the problem for some time that the information of co-authors under a posting merges into each other. Shouldn’t the information be displayed separately, like in two columns?

    • This reply was modified 1 year, 2 months ago by jan23oep.
    • This reply was modified 1 year, 2 months ago by jan23oep.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Guest author names not showing up’ is closed to new replies.