-
Paul Schacht replied to the topic Group Blog Links Redirect to Login Page in the forum Help & Support 1 month, 2 weeks ago
The redirect snippet did the trick! Thank you both so much!
-
Ray replied to the topic Group Blog Links Redirect to Login Page in the forum Help & Support 1 month, 2 weeks ago
Hi Paul,
Can you try the following code snippet? https://gist.github.com/r-a-y/bc390ceb5d1872044e05b3aed35431c1
Save to
/wp-content/mu-plugins/wpmu-subdomain-redirects.php
. WordPress, by default, has strict redirect rules and for some reason, does not allow subdomain redirects even on the same domain. The code snippet should bypass this…[Read more] -
Boone Gorges replied to the topic Group Blog Links Redirect to Login Page in the forum Help & Support 1 month, 2 weeks ago
Very peculiar. Paul, if you’re comfortable with it, you could try (temporarily) running this small redirect logger that I’ve written: https://gist.github.com/boonebgorges/83ad69a81052c5ce43001d7c7523a586 Put it in wp-content/mu-plugins/redirect-log.php. Then, trigger the redirect. You should see a redirect-log.txt file at wp-content/uploads/.…[Read more]
-
Paul Schacht replied to the topic Group Blog Links Redirect to Login Page in the forum Help & Support 1 month, 3 weeks ago
Thanks, Ray. I debugged as you suggested, and indeed the URL that’s outputted to the browser is the URL for the blog e.g.,
https://dh.sunygeneseoenglish.org
so BP Groupblog is behaving as it should.I’m not running any must-use plugins and don’t have a bp-custom.php file. I’m using a child theme but haven’t made any recent changes to it.
¯_(ツ)_/¯
-
Ray replied to the topic Group Blog Links Redirect to Login Page in the forum Help & Support 1 month, 3 weeks ago
On my local installation of CBOX with BP Groupblog enabled, I am not running into the groupblog redirect issue.
Like the
NOBLOGREDIRECT
line, do you have any other code snippets inwp-config.php
,wp-content/plugins/bp-custom.php
,wp-content/themes/cbox-child
, or inwp-content/mu-plugins
?If not and you feel adventurous, you can try some…[Read more]
-
Paul Schacht replied to the topic Group Blog Links Redirect to Login Page in the forum Help & Support 1 month, 3 weeks ago
I’ve deactivated each plugin in turn (except CBOX), and none of the plugins appears to be the cause of the problem.
The problem happens with all groups, whether public or private. The “Blog” link in the left navigation for the group redirects to https://sunygeneseoenglish.org/wp-admin/
-
Ray replied to the topic Group Blog Links Redirect to Login Page in the forum Help & Support 1 month, 3 weeks ago
The other plugins seem fine to me, but if you want, you can disable them one at a time to see if one of them might be causing the redirect.
Some other potential things to check: Do you have any 3rd-party plugins running on the groupblog that might be causing the redirect? What is the privacy option set to for the groupblog in question?
-
Paul Schacht replied to the topic Group Blog Links Redirect to Login Page in the forum Help & Support 1 month, 3 weeks ago
I deactivated WordFence, but the behavior persists. I think the general behavior you were observing earlier — “if I attempt to visit a page that doesn’t exist on your site (https://sunygeneseoenglish.org/WHATEVER), the URL will redirect back to the homepage instead of landing on the 404 page” — was caused by this line in wp-co…[Read more]
-
Ray replied to the topic Group Blog Links Redirect to Login Page in the forum Help & Support 1 month, 3 weeks ago
Hi Paul,
WordFence could be the culprit. Can you try temporarily disabling WordFence and then trying to check the groupblog link?
-
Paul Schacht replied to the topic Group Blog Links Redirect to Login Page in the forum Help & Support 1 month, 3 weeks ago
Hi Ray,
Plugins, in addition to CBOX and its bundled plugins, are
- Akismet
- BP Classic
- Classic Editor
- Collapse-o-Matic
- CommentPress Core
- Markup Markdown
- PDF Embedder
- Post Type Switcher
- WordFence
Thanks,
Paul -
Ray replied to the topic Group Blog Links Redirect to Login Page in the forum Help & Support 1 month, 3 weeks ago
Hi Paul,
I notice that if I attempt to visit a page that doesn’t exist on your site (https://sunygeneseoenglish.org/WHATEVER), the URL will redirect back to the homepage instead of landing on the 404 page. I’m guessing a plugin is causing this behavior, which in turn is affecting the groupblog redirect.
It’s possible that a plugin is responsible…[Read more]
-
Paul Schacht replied to the topic Group Blog Links Redirect to Login Page in the forum Help & Support 1 month, 3 weeks ago
I’m running BP 11.4.0 and letting CBOX manage my plugins. I’ve sometimes managed them independently in order to stay abreast of updates, but I knew from some of your messages in the GitHub repo that 12 has significant differences, so I’ve held back.
-
Boone Gorges replied to the topic Group Blog Links Redirect to Login Page in the forum Help & Support 1 month, 3 weeks ago
For reference, here’s where the redirect happens: https://github.com/boonebgorges/bp-groupblog/blob/565b256ede1f2a8c89c480e78b97753d3257afbe/bp-groupblog.php#L1881
I suspect that
$blog_id
is incorrectly returning1
, and/orget_home_url()
is doing something strange.Have you by any chance updated BP to version 12.0+? You would have to have done…[Read more]
-
Paul Schacht replied to the topic Group Blog Links Redirect to Login Page in the forum Help & Support 1 month, 3 weeks ago
Thanks for the reply, Boone! Redirect is set as it should be under GroupBlog Setup. I’m seeing this behavior on blogs associated with public groups that anyone can join. A logged in user who’s a member of the group gets directed to the Dashboard of the main site, English @ SUNY Geneseo. Ditto for a logged in user who isn’t a member of the group. A…[Read more]
-
Boone Gorges replied to the topic Group Blog Links Redirect to Login Page in the forum Help & Support 1 month, 3 weeks ago
Hi Paul – It’s normal for the href attribute of the links to point to /groups/name-of-group/blog. But once you load that page, you ought to be redirected to the group blog’s home page, ie to name-of-blog.sunygeneseoenglish.org.
A few things to check:
– Go to Dashboard > Network Admin > Settings > GroupBlog Setup > Redirect. Ensure that ‘Redirect…[Read more]
-
Paul Schacht started the topic Group Blog Links Redirect to Login Page in the forum Help & Support 1 month, 4 weeks ago
At https://sunygeneseoenglish.org, the “Blog” link in the left navigation of each group’s home page redirects to the main site’s login page (when logged out) or to the main site’s dashboard (when logged in, for a user with access to the main site’s dashboard).
The “Blog” link in every group’s left navigation has the form…[Read more]
-
Boone Gorges wrote a new post, Commons In A Box 1.5.1 3 months, 1 week ago
Commons In A Box 1.5.1 is now available! This release includes a number of important plugin updates, and also fixes a few bugs with mobile layout and site menus. Visit […]
-
Boone Gorges wrote a new post, Commons In A Box 1.5.0 8 months, 2 weeks ago
Commons In A Box 1.5.0 is now available. This update includes compatibility fixes for the latest versions of WordPress, BuddyPress, and PHP. It also includes a number of new features for the OpenLab package, […]
-
Boone Gorges wrote a new post, Commons In A Box 1.4.0 1 year, 3 months ago
Commons In A Box 1.4.0 is now available!
This major update includes improved compatibility with the latest versions of WP and PHP, and the following features in the OpenLab package:
A “template chooser” […]
-
Boone Gorges wrote a new post, Commons In A Box 1.3.4 1 year, 5 months ago
Commons In A Box 1.3.4 is now available. With the PHP 7.x series nearing the end of security support, the CBOX 1.3.4 maintenance focuses on ensuring compatibility with PHP 8+.
Download the latest Commons In A […]
- Load More