• I’ve set up a set of wikis on the DemocracyLab site under the main menu item Collaborate>Discuss>

    The docs have twice put themselves into the trash, once all docs, and the second time only three of them. This is not my imagination, but has occurred with other installations as evidenced by this post: https://commonsinabox.org/groups/ciab-pioneers/forum/topic/docs-wandering-in-to-the-trash/

    Besides being bizarre, it’s really a deal breaker on the plugin. I can’t determine at all what would be causing it since the events are happening without any interaction with the docs which have never yet been edited or handled by myself or other users, they’re newly created. I can give a tech login to someone contributing on the git if that would help investigate. Or, since I’m a developer myself, if you have tests or code you want me to look at let me know.

    DemocracyLab is hosted at OSUOSL (Oregon State University’s Open Source Lab) and they are very helpful on the server side as well.

    https://www.ads-software.com/plugins/buddypress-docs/

Viewing 3 replies - 16 through 18 (of 18 total)
  • Plugin Author Boone Gorges

    (@boonebgorges)

    Hi elemunjeli – Have you had a chance to look at the logged stack trace? I’m going to release a new version of the plugin soon, and it would be great to have a fix for this issue, but first I have to identify it ??

    Thread Starter elemunjeli

    (@elemunjeli)

    Heya. I just emailed (to the email on your site) the dump from the option_value column in the options table. Let us know what you find.

    Plugin Author Boone Gorges

    (@boonebgorges)

    Thanks very much for the email, elemunjeli. I have an educated guess, based on the content of the trace you sent me, that a plugin conflict is taking place, which is causing the URL parameter ‘delete’ to show up when it shouldn’t. This, in turn, is triggering Doc deletion when it shouldn’t.

    There are a couple of things I can and will put into Docs 1.5 to prevent this sort of thing – and I will ask you to test them when I’ve put them in place – but in the meantime, I’d like just a little bit more data to verify my educated guess. Could I ask you to repeat the experiment with the following modified script?

    <?php
    function bbg_debug_doc_trash( $new_status, $old_status, $post ) {
        if ( 'bp_doc' == $post->post_type && 'trash' == $new_status ) {
            global $wp_query;
            $v = array( $wp_query, $_SERVER );
            update_option( 'bbg_debug_doc_trash', json_encode( $v ) );
        }
    }
    add_action( 'transition_post_status', 'bbg_debug_doc_trash', 9999, 3 );

    Run this, and send me results as soon as you get them. Hopefully this’ll be enough to confirm the issue, and point me toward exactly what combination of plugins, etc is causing the problem.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Docs Trashing Themselves’ is closed to new replies.