Wolfgang Hoeschele
@wolfgang Active 10 years, 6 months ago-
Paul Schacht replied to the topic Group Blog Links Redirect to Login Page in the forum Help & Support 7 months 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 7 months 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 7 months 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 7 months 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 7 months, 1 week 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 7 months, 1 week 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 7 months, 1 week 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 7 months, 1 week 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 7 months, 1 week 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 7 months, 1 week 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 7 months, 1 week 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 7 months, 1 week 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 7 months, 1 week 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 7 months, 1 week 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 7 months, 1 week 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 7 months, 1 week 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]
-
Michael D. Smith replied to the topic Taming Storage in the forum Help & Support 2 years, 6 months ago
Actually, never mind. It turned out to be a 36 GB debug file (!), which we were able to delete.
-
Michael D. Smith started the topic Taming Storage in the forum Help & Support 2 years, 6 months ago
Can anyone point me towards some quick and easy ways to manage (i.e., cut down on) storage for a multi-site installation? Our hosting company has informed us that we’re over our limit, and as a (very) part-time WP admin, I’m a little out of my depth here.
I can see that our main site is taking up 41.9 GB of space, while the staging and dev…[Read more]
-
Ray replied to the topic Broken Multisite after being taken down and partially recovered. in the forum Help & Support 2 years, 6 months ago
Hi Steven,
Glad you were able to switch to a subdirectory set up for your multisite configuration.
-
Steven Astravas replied to the topic Broken Multisite after being taken down and partially recovered. in the forum Help & Support 2 years, 6 months ago
Hi Ray,
Even though my wildcard subdomain *, was set up correctly in my Bluehost cPanel dashboard, the root cause of my subsites’ creation problem was my SSL Certificate not being the right type of certificate for my wildcard subdomain.
To properly set up a subdomain-type Wordpress Multisite that uses a wildcard subdomain and only a single…[Read more]
- Load More