Show Sidebar Log in
Commons In A Box Logo
  • Home
  • About
    • Project Team
    • Logos and Graphics
  • Showcase
    • CBOX Classic Showcase
    • CBOX OpenLab Showcase
  • Demo
  • Get Started
  • Documentation
    • Technical Guide
    • CBOX Classic Guide
    • CBOX OpenLab Guide
  • Support Forums
    • CBOX Classic
    • CBOX OpenLab
    • Developers Forum
  • News

Group Admins

  • Profile picture of Scott Voth

CBOX Classic Support

Public Group active 4 months ago

This group provides support for Commons In A Box Classic, our original software for community-building. Register for an account or log in to commonsinabox.org, then join the group and post your question here.

BP Docs/Wiki fail after upgrade to WP 3.6 & CBOX 1.0.5

Tagged: cbox 1.0.7, docs, wiki

  • This topic has 23 replies, 9 voices, and was last updated 11 years, 1 month ago by Christian Wach.
Viewing 15 posts - 1 through 15 (of 24 total)
1 2 →
  • Author
    Posts
  • August 9, 2013 at 6:03 pm #3379
    visionsynergy
    Participant

    Anyone else have the same problems with the Docs/Wiki component?

     

    I am currently testing upgrades to WordPress 3.6 & CBOX 1.0.5 on a staging server hosted with WPEngine.

     

    My problems:

    1. When I create a new wiki page or doc, trying to add an attachment fails with a nondescript error.

    2. When I create a new wiki page or doc, after saving the doc I am redirected to my site’s homepage. If I try to access the doc/wiki page directly by its URL or if I try to click the “read” or “edit” links from the doc/wiki directory, I am redirected to my site’s homepage. Same thing happens if I try to view the doc from the admin interface (under BuddyPress Docs menu).

     

    I had previously deactivated the Docs/Wiki plug-ins from CBOX when they broke after the CBOX 1.0.4 upgrade.

    See this discussion:

    https://commonsinabox.org/groups/help-support/forum/topic/no-wiki-home-after-upgrading-to-cbox-1-0-4/

     

    Any help?

     

    August 11, 2013 at 8:17 pm #3393
    Paul Joseph
    Participant

    I have just installed Commons In A Box to take a look at it. First thing I did was create a wiki page, but I can’t connect to it. Clicking on it just takes me to the home page.

    I like the idea of CBOX but… a bit disappointing to run into a bug within 30 seconds!

    August 12, 2013 at 6:57 am #3396
    Bowe Frankema
    Member

    @cbox_admin do you have any idea what could cause the issue with the WIKI/Docs plugin? Or @r-a-y?

    Sorry to hear you guys are having trouble getting everything to behave as expected.


    @Paul
    : That certainly ain’t the best start of your CBOX adventure. There are countless configurations and WordPress/BuddyPress/Plugin versions involved and we’re trying our best to get CBOX to play nice on all those setups. Hopefully the ride will be less bumpy from now on 🙂

    • This reply was modified 11 years, 9 months ago by Bowe Frankema.
    August 12, 2013 at 8:37 am #3398
    Boone Gorges
    Keymaster

    @visionsynergy I believe I’ve found the issue with uploads. If I’m correct, the problem is limited to wiki pages. Fix is in https://github.com/boonebgorges/buddypress-docs-wiki/commit/aefc009984a28c40cf164d418318114be0c311ed and https://github.com/boonebgorges/buddypress-docs-wiki/commit/5429ac5e846fc767766de27cccf36ba784fc8500; if you would like, you can apply it manually to your copy of buddypress-docs-wiki/bpdw.php to see if it fixes your issue.

    I haven’t been able to reproduce the redirect issues. Can I hear more about your setups? This may be related to permalink settings. What do you have set at Dashboard > Settings > Permalinks? Are you running Apache as your webserver? You might try regenerating rewrite rules (by resaving your current setting at Dashboard > Settings > Permalinks) to try to fix the issue.

    August 20, 2013 at 8:06 pm #3483
    visionsynergy
    Participant

    @cbox_admin

    I applied both fixes to ../wp-content/plugins/buddypress-docs-wiki/bpdw.php

    However, I still have both issues. Here’s what I’m doing and how the site is setup:

    Attachment issue:

    1. I’m logged in as superadmin
    2. I navigate to mysite/docs/
    3. I click the Create New Doc button (mysite/docs/create/)
    4. I give the doc a title, some text, and click the Add Files button to add an attachment
    5. The Upload File window opens, but fails when I try to attach a file (see screenshot)

    Read/Edit URL issue:

    1. I have a custom permalink structure: mysite/resources/%postname%/
    2. So, I tried changing the setting to the basic post-name option and saving
    3. Then I browsed to the docs directory at mysite/docs/
    4. I tried to create a doc as above (without attachment) leaving association/access/tags/parent settings as default
    5. After clicking the Save button, I am immediately redirected to my homepage
    6. I can see and edit the docs via the WP Admin interface
    7. If I try to view/edit the doc via its URL (e.g. mysite/docs/doc-name/edit/) or from the links on the docs directory page, I am again immediately redirected to my homepage
    8. I get the same behavior with a wiki page

    Any other suggestions?

    Attachments:
    You must be logged in to view attached files.
    August 21, 2013 at 10:36 am #3497
    Boone Gorges
    Keymaster

    Thanks for the update, @visionsynergy.

    Attachments: I’m unable to reproduce, and unfortunately the error message returned by WP is not very helpful. It’s just the default error message, which is returned in the case of several different kinds of failures. You might try opening a JS console to see if any more specific errors are returned from the POST request.

    URLs: Again, I can’t reproduce, and it’s difficult to debug this kind of issue without being able to reproduce. If I were debugging, the first thing I’d check is whether the Docs rewrite rules are being loaded correctly; http://wordpress.org/plugins/rewrite-rules-inspector/ is a helpful tool for this purpose. Then, since a redirect is our most obvious symptom of the issue, I would drop a debug tracer of some sort into the wp_redirect() function, so I could get a backtrace and start to zero in on the problem.

    August 24, 2013 at 5:42 pm #3522
    Daniel Jones
    Participant

    I’m also having this problem- any time I try to read or edit a Doc that I’ve created, it redirects me to the home page. I’m also running WP Engine.

    Last time I had an error that others couldn’t reproduce (involving the Invite Anyone plugin) it had to do with the version of PHP that WP Engine is running. I wonder if that’s also the case here. I’ll do some more investigation, but just wanted to flag this as not being an isolated case.

    Thanks for the tip on Rewrite Rules Inspector. It looks like the rewrite rules are being loaded correctly, or at least like they’re very similar to the other rewrite rules listed, which are working properly.

    August 24, 2013 at 5:48 pm #3523
    Daniel Jones
    Participant

    Okay sorry quick update: turns out I’m only getting the problem on my staging site, not on my live site. Very strange.

    March 19, 2014 at 9:42 pm #4499
    Anonymous
    Inactive

    Hi guys

    Me again 🙂  Latest version of CBOX and WP

    Seems as soon as I fix one thing with a work around, another area stops working!  Now I can’t add docs to the group.  The visual editor is missing and if I use the text editor, it won’t save and gives me a generic error message.

    Sigh…I thought I was so close….

    http://www.cocb.org.au

    March 20, 2014 at 7:53 am #4501
    Scott Voth
    Keymaster

    Hi Kiki – could you describe what your initial workaround entailed?  Maybe that might provide a clue.

    Is the generic error message  you receive – “The connection was reset” ?  I looked at your site, went to a group, clicked on “Create a Doc” expecting to be challenged for a password.  But instead I got that error message (URL is pointing to login page correctly).

    You could try refreshing your permalinks, or deactivating the BP Docs plugin and then re-activating it to see if that helps.


    @r-a-y
    – do you have any ideas?

    March 25, 2014 at 8:26 pm #4517
    Anonymous
    Inactive

    original workaround was just some custom css as the navigation and background changes using the control panel weren’t showing front end.  The settings were saving, but not visible.

    Tried refreshing permalinks, deactivating BP Docs plugin etc…  I can access docs, but the visual editor isn’t available.  Even if I use the Text editor, it won’t save.  Here are two screenshots

     

    March 25, 2014 at 8:47 pm #4520
    Anonymous
    Inactive

    Update:  I ran a debug script.  These errors may help?

     

    [26-Mar-2014 00:40:06] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ” at line 1 for query SELECT DISTINCT g.id, g.*, gm1.meta_value AS total_member_count, gm2.meta_value AS last_activity, 1 as sticky  FROM wp_bp_groups_groupmeta gm1, wp_bp_groups_groupmeta gm2, wp_bp_groups_groupmeta gms,  wp_bp_groups g WHERE  g.id = gm1.group_id AND g.id = gm2.group_id AND gm2.meta_key = ‘last_activity’ AND gm1.meta_key = ‘total_member_count’ AND g.id = gms.group_id AND gms.meta_key = ‘sticky’  AND g.status != ‘hidden’ ORDER BY last_activity DESC LIMIT  made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/plugins/buddypress-docs/includes/templates/docs/single-bp_doc.php’), include(‘/plugins/buddypress-docs/includes/templates/docs/single/edit.php’), bp_docs_doc_associated_group_markup, bp_has_groups, BP_Groups_Template->__construct, groups_get_groups, BP_Groups_Group::get, apply_filters(‘bp_groups_get_paged_groups_sql’), call_user_func_array, BP_Sticky_Groups->alter_bp_groups_query, W3_Db->query, W3_DbCache->query, W3_DbCallUnderlying->query, W3_Db->query, W3_DbProcessor->query, W3_Db->default_query

     

    [26-Mar-2014 00:41:13] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ” at line 1 for query SELECT DISTINCT g.id, g.*, gm1.meta_value AS total_member_count, gm2.meta_value AS last_activity, 1 as sticky  FROM wp_bp_groups_groupmeta gm1, wp_bp_groups_groupmeta gm2, wp_bp_groups_groupmeta gms,  wp_bp_groups g WHERE  g.id = gm1.group_id AND g.id = gm2.group_id AND gm2.meta_key = ‘last_activity’ AND gm1.meta_key = ‘total_member_count’ AND g.id = gms.group_id AND gms.meta_key = ‘sticky’  AND g.status != ‘hidden’ ORDER BY last_activity DESC LIMIT  made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/plugins/buddypress-docs/includes/templates/docs/single-bp_doc.php’), include(‘/plugins/buddypress-docs/includes/templates/docs/single/edit.php’), bp_docs_doc_associated_group_markup, bp_has_groups, BP_Groups_Template->__construct, groups_get_groups, BP_Groups_Group::get, apply_filters(‘bp_groups_get_paged_groups_sql’), call_user_func_array, BP_Sticky_Groups->alter_bp_groups_query, W3_Db->query, W3_DbCache->query, W3_DbCallUnderlying->query, W3_Db->query, W3_DbProcessor->query, W3_Db->default_query

    March 26, 2014 at 5:28 am #4521
    Christian Wach
    Participant

    @kroboriginal try deactivating the BP Sticky Groups plugin and see if the error persists.

    March 26, 2014 at 6:57 pm #4525
    Anonymous
    Inactive

    Thanks Christian.  No go 🙁

    I just feel something isn’t quite ‘right’.  There are a few things that just aren’t working as they should.  I might try reinstalling one last time.

    March 26, 2014 at 7:20 pm #4526
    Christian Wach
    Participant

    @kroboriginal can you post the error when the BP Sticky Groups plugin is deactivated? Edit: also try deactivating the cache plugin.

    • This reply was modified 11 years, 1 month ago by Christian Wach.
  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 24 total)
1 2 →
  • You must be logged in to reply to this topic.
Log In
Group logo of CBOX Classic Support
  • Home
  • Forum
  • Announcements
  • Docs
  • Members 287
  • Send Invites

Groups

Newest | Active | Popular | Alphabetical
  • Group logo of CBOX Classic Support
    CBOX Classic Support
    287 members
  • Group logo of CBOX Pioneers
    CBOX Pioneers
    71 members
  • Group logo of CBOX Developers
    CBOX Developers
    40 members
  • Group logo of CBOX OpenLab Support
    CBOX OpenLab Support
    22 members
  • Group logo of CBOX-OL Testing Partners
    CBOX-OL Testing Partners
    12 members

CBOX has its roots in the CUNY Academic Commons, which in turn was made possible through funding from The City University of New York itself.

CUNY Logo

CUNY Academic Commons Logo

City Tech logo

The Commons In A Box was made possible through the generous support of the Alfred P. Sloan Foundation.

Alfred P. Sloan Foundation Logo

NEH Logo

The CUNY Graduate Center has directly contributed to the CUNY Academic Commons, housing the project since its inception, and has contributed to CBOX through its GC Digital Initiatives.

CUNY Graduate Center Logo

CUNY Graduate Center Digital Initiatives Logo

Powered by Commons In A Box
css.php
Skip to toolbar
  • About WordPress
    • WordPress.org
    • Documentation
    • Learn WordPress
    • Support
    • Feedback
  • Log In
  • Register