Title: Undefined array key &#8220;guest_authors&#8221;
Last modified: January 21, 2025

---

# Undefined array key “guest_authors”

 *  Resolved [sanjitsharkbyte](https://wordpress.org/support/users/sanjitsharkbyte/)
 * (@sanjitsharkbyte)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/undefined-array-key-guest_authors/)
 * Please fix the following warning in version 5
 *     ```wp-block-code
       wp-content/plugins/molongui-authorship-pro/includes/sitemaps/yoast.php:11Molongui\A\P\MolonguiAuthorshipPro::require_file()wp-content/plugins/molongui-authorship-pro/molongui-authorship-pro.php:337Molongui\A\P\MolonguiAuthorshipPro->init()wp-content/plugins/molongui-authorship-pro/molongui-authorship-pro.php:196Molongui\A\P\MolonguiAuthorshipPro->on_plugins_loaded()wp-includes/class-wp-hook.php:324do_action('plugins_loaded')wp-settings.php:559
       ```
   

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Molongui](https://wordpress.org/support/users/molongui/)
 * (@molongui)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/undefined-array-key-guest_authors/#post-18256130)
 * Hi [@sanjitsharkbyte](https://wordpress.org/support/users/sanjitsharkbyte/),
 * You must be running an outdated version of the Pro plugin. Please update it to
   the latest version. That should address the warning you reported.
 * I’m closing this ticket, but if the issue persists after having updated, please
   feel free to re-open it and we will be happy to assist.
 *  Thread Starter [sanjitsharkbyte](https://wordpress.org/support/users/sanjitsharkbyte/)
 * (@sanjitsharkbyte)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/undefined-array-key-guest_authors/#post-18256975)
 * Updating the pro version to latest fixes the issue. Thank you 🙂
 *  Plugin Author [Molongui](https://wordpress.org/support/users/molongui/)
 * (@molongui)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/undefined-array-key-guest_authors/#post-18257447)
 * Thanks for your confirmation!
 *  [Brian Lewis](https://wordpress.org/support/users/borisnikolaevich/)
 * (@borisnikolaevich)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/undefined-array-key-guest_authors/#post-18425010)
 * I am having the same issue after upgrading to core version 5.0.15 and pro version
   1.8.13, but the error comes when I call `get_main_author()` from a plugin that
   allows me to set permalinks to `/%author%/%postname%/` (for example, read.emberjournal.
   org/brian-lewis/some-example-story).
 * I don’t get the error when my plugin is deactivated, so I know it’s not actually
   your problem, but I’d be extremely grateful for a suggestion or hint on resolving
   this—it worked wonderfully for 3+ years, and only broke when I upgraded Molongui
   Authorship.
 *  [Brian Lewis](https://wordpress.org/support/users/borisnikolaevich/)
 * (@borisnikolaevich)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/undefined-array-key-guest_authors/#post-18425086)
 * Actually, since my plugin only runs when “guest authors” is enabled, I simply
   re-implemented the relevant functionality of `get_main_author()` without the 
   condition, and the <Undefined array key “guest_authors”> error is resolved … 
   and my permalinks are back, too.
 * Thanks for the patience as I hijacked this post just because it had the same 
   error I was getting. You can see the working code in action on any post at [https://read.emberjournal.org/](https://read.emberjournal.org/).

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Undefined array key “guest_authors”’ is closed to new replies.

 * ![](https://ps.w.org/molongui-authorship/assets/icon-256x256.png?rev=2121645)
 * [Molongui Authorship – Author Boxes, Guest Authors & Co-Authors for WordPress](https://wordpress.org/plugins/molongui-authorship/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/molongui-authorship/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/molongui-authorship/)
 * [Active Topics](https://wordpress.org/support/plugin/molongui-authorship/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/molongui-authorship/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/molongui-authorship/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Brian Lewis](https://wordpress.org/support/users/borisnikolaevich/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/undefined-array-key-guest_authors/#post-18425086)
 * Status: resolved