WordPress.org

Ready to get started?Download WordPress

Forums

Co-Authors Plus
[resolved] Won't load authors (12 posts)

  1. ghayward
    Member
    Posted 1 year ago #

    Hello,
    The plug-in has always worked fine until the latest WP update. If I am adding/ editing a post and attempt to add an author in the "Post Authors" box, no users will load.

    I've uninstalled and re-installed the plug-in, just in case but it hasn't fixed the problem. Please help! Thanks!

    http://wordpress.org/extend/plugins/co-authors-plus/

  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    This sounds like a Javascript error. Does the autocomplete work at all? Does the problem persist when other plugins are deactivated? Which other plugins are you using?

  3. ghayward
    Member
    Posted 1 year ago #

    Thanks for the response!

    Autocomplete does not work - I can type a the first few letters of a user and the "working" wheel will appear for a brief moment and disappear.

    I just deactivated all other plug-ins (the site has a lot and they are all very necessary) and it did not fix the issue.

  4. ghayward
    Member
    Posted 1 year ago #

    I have uninstalled the plug-in, installed an older version, installed an older version of WP and every sort of combination of those things to no avail.

    Even installed Co-Authors plug-in but it won't work correctly either. Please help! This is driving me a little nuts.

  5. menslow
    Member
    Posted 1 year ago #

    I'm having a similar experience to ghayward. I'm thinking it's an edge case and due to fact that I have a very large amount of users (400k) in the wp_users table. Ghayward, do you also have a large number of users?

    Here is a screen shot of the error I'm seeing in the auto-complete input field. It's actually a PHP error and not a JavaScript error:
    https://www.evernote.com/shard/s55/sh/9a96bd78-d864-4949-934a-d6af6b70b563/68692a9f498e8180fb1bf8612906147c

    I'm not exactly sure what's happening in the code, but my guess is that a user recordset is cached in order to build the auto-complete. In my case, since there is such a large recordset, the php error occurs.

    Hope this helps.

  6. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    @menslow Can you try out the current working version and see if the problem still occurs?

  7. menslow
    Member
    Posted 1 year ago #

    Thanks Daniel. I just update the plugin with your current working version. I'm now seeing this error:
    https://www.evernote.com/shard/s55/sh/558964ee-1d97-4502-bcf5-9212cd406c4c/af76b46cf93313d29a7728dcb3120f93

    It looks like you're adding usernames for the autocomplete to the wp_terms table. Are you sure this is a good idea? Especially in the case of a large amount of users. I haven't dug into the code yet, but is there something you an do with WP Object Caching instead?
    http://codex.wordpress.org/Class_Reference/WP_Object_Cache

  8. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    It looks like you're adding usernames for the autocomplete to the wp_terms table.

    The post => post byline relationship is handled by a custom taxonomy, so the terms need to be created if they don't yet exist.

    It shouldn't be trying to insert a new term if the term already exists though. Can you track down why that's happening?

  9. menslow
    Member
    Posted 1 year ago #

    Looking in the code now... I see you're already using wp_cache_set for the terms recordset.

    I'm not sure the history of why you decided to add the usernames to the terms table, so I don't want to say whether it's a good or bad idea. I think in my case with over 400k users, it's not such a good thing. My user table is already pretty big, so I'd rather not have the terms table get huge as well. Again this is an edge-case and I'm guessing most people wont experience this.

  10. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    This probably isn't the best plugin fir you if you're concerned about your terms table getting huge. Terms are used as a key architecture piece.

  11. ghayward
    Member
    Posted 1 year ago #

    Please disregard this message - the plug-in works with this update, though I have to go in and "create" and "update" guest author profiles? I have no idea, I am just glad its working.

  12. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    though I have to go in and "create" and "update" guest author profiles

    You should only need to create guest author profiles for bylines that don't yet exist. If the WordPress user already exists, it will show up to be assigned.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic