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 10 years, 9 months ago by Christian Wach.
-
AuthorPosts
-
August 9, 2013 at 6:03 pm #3379visionsynergyParticipant
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:
Any help?
August 11, 2013 at 8:17 pm #3393Paul JosephParticipantI 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 #3396Bowe FrankemaMember@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, 4 months ago by Bowe Frankema.
August 12, 2013 at 8:37 am #3398Boone GorgesKeymaster@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 #3483visionsynergyParticipantI 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 pageAny other suggestions?
Attachments:
You must be logged in to view attached files.August 21, 2013 at 10:36 am #3497Boone GorgesKeymasterThanks 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 #3522Daniel JonesParticipantI’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 #3523Daniel JonesParticipantOkay 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 #4499AnonymousInactiveHi 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….
March 20, 2014 at 7:53 am #4501Scott VothKeymasterHi 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 #4517AnonymousInactiveoriginal 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 #4520AnonymousInactiveUpdate: 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 #4521Christian WachParticipant@kroboriginal try deactivating the BP Sticky Groups plugin and see if the error persists.
March 26, 2014 at 6:57 pm #4525AnonymousInactiveThanks 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 #4526Christian WachParticipant@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 10 years, 9 months ago by Christian Wach.
-
AuthorPosts
- You must be logged in to reply to this topic.