Having set up a main and sub site, suddenly I am no longer able to access the sub site dashboard

Parent site: http://www.republicofplato.org
Sub-site: http://www.republicofplato.org/SanDiegoCA/

I am no longer able to access the sub-site dashboard. It returns a message: Safari can't open page. Too many redirects occurred trying to open "www.republicofplato.org/SanDiegoCA/wp-admin/". This might occur if you open a page that is redirected to open another page which then is redirected to open the original page.

If I try to access the sub-site directly it now shows what appears to look like a Site Map.

  • Patrick

    Hi there @cgcristo

    I hope you had a great weekend!

    Were you able to access the admin of the sub-site previously? If so, when exactly did this start happening?

    In other words, have you installed any new plugins/themes lately, or updated some?

    Have you tested for conflicts by temporarily deactivating all plugins? To do so on a site even if you cannot access the admin, get into your wp-content folder either via FTP or use File Manager in your cPanel, and rename the /plugins/ folder to something else like /DISABLEDplugins/

    That will effectively deactivate all plugins on the network, because your WordPress can't find them anymore. :slight_smile: Then rename the plugins folder back to /plugins/ so your WP can find them.

    If, once all are deactivated, you still cannot access the sub-site admin, please double-check both your htaccess and wp-config.php files to be sure they contain the exact code recommended by your WordPress install. That code can be found in your network admin under Settings > Network Setup.

    Please do let us know if this helps, and don't hesitate to post again if you need to.

  • cgcristo

    Sorry for the delay, I had other problems to deal with.

    I opted for deleting the subdirectory and starting from scratch. However, after adding the new sub site (www.republicofplato.org/sandiego/ I was faced wit h the same problem- after a delay, the page returns 'Safari can't open the page. . . Too many redirects occurred trying to open "www.republicofplato.org/sandiego/wp-admin/". This might occur if you open a page that is redirected to open another page which then is redirected to open the original page.'
    I did look in wp-config.php file and found the exact code that appeared in the Network Setup. However it contained an extra line above the code: define('WP_ALLOW_MULTISITE', true);

    Re: the htaccess file . . .

    The sub site file had an identical # BEGIN Wordpress paragraph. It also contained a paragraph called # uploaded files but did not contain the paragraph from the Network Setup called # add a trailing slash to /wp-admin.

    The final htaccess file is now:
    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    # END WordPress

    But to no avail. The problem still results in a can't open page error.

  • cgcristo

    I noticed some additional things that might be helpful in determining what is wrong . . .
    The main site uses Buddypress Business as the network activated theme. I intended that all would use the same theme. However, when I create the republicofgplato.org/sandiego/ site, it does show up on the Network Dashboard sites, but it does not show up as a site in the drop down menu. Moreover, when I click on the Sites listing to edit the site, the Buddypress Business theme is not one that is listed. That is probably why when click on Visit site, it shows up as a Site map page. I have deleted it and then reinstalled it several times with no better result.

  • cgcristo

    I have been to my hosting company tech support and they do not understand what I mean by a wildcard subdomain. There is a place to create a subdomain in my Cpanel. It asks for the subdomain name and the main domain as follows:
    ______________ . republicofplato.org Can you tell me what I need to insert- if this is in fact what is needed to activate any subdomains I create inside of WPMUDEV

  • Ash

    Hello @cgcristo

    I hope you are well today.

    As I said you just need to put an asterisk sign - * in that dash :slight_smile:

    So, it should be *.republicofplato.org and point to republicofplato.org directory.

    http://codex.wordpress.org/Configuring_Wildcard_Subdomains
    https://www.namecheap.com/support/knowledgebase/article.aspx/9191/29/how-to-create-wildcard-subdomain-in-cpanel

    Hope it helps :slight_smile: Please feel free to ask more question if you have.

    Cheers
    Ash

  • cgcristo

    I managed to find the Subdomain app in CPanel and created the wildcard as follows: Subdomain : |* | . | republicofplato.org |
    Document Root : | /public_html/republicofplato.org

    I then went into 'Advanced DNS Zone Editor and found the wildcard domain pointed to the Record republicofplato.org.

    The TTL was listed as 14400, but rather and change that, I just waited 5 -6 hours after which it should have propagated through the system.

    I deleted the sub-sites so that I could create one with the proper settings.
    From the Network Dashboard > Sites, I created a sub-site /sandiegoca/.
    The sub-site showed up in the listing of Sites in the Network Dashboard, but when I clicked on My Sites, the sub-site was not there.
    There is a change from before in that when I mouse over the sub-site (inside 'Sites') it shows up as a site map type page. However when I click on Dahsboard, I get a 'Can't open Page' message. The window shows that I am trying to access http://www.republicofplato.org/sandiegoca/wp-admin/, it obviously can't find it.

    Could it be that the main site creates a sub-site that appears like a sub-directory (republicofpalto.org/sandiegoca/) instead of the created subdomain
    sandiegoca.republicofplato.org ? I think when first asked, I chose the sub-directory method instead of the sub-domain method (I wouldn't know where to look to determine which one the main site is.

    I'm hoping the problem is a wrong setting that is a simple answer, although from my abilities, there is no simple solution.

  • Ash

    Would you please try the following as htaccess:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    If it still doesn't work, please send me your ftp and admin login.

    To send me details, please use our contact form: https://premium.wpmudev.org/contact/

    Select: I have a different question
    Subject: Attn-Ash
    Details: Send all required details (admin info and/or ftp details) with a link of this thread, so that I can track.
    Also post a note here once you send the info.

    I will be happy to take a look :slight_smile:

    Cheers
    Ash

  • cgcristo

    I looked at your suggestion for the .htaccess file, but it is identical to what was already in there. I sent this same info to the question site, but I indicted a reluctance to send admin info to that site as I have been previously warned against it. I await further clarification.
    Since this was working at one time, I don't understand why it would simply stop working. I'm hoping it is just a setting.

  • Michael Bissett

    Hey @cgcristo,

    That would be because you didn't have a role assigned to your user on either of those subsites.

    As you're a super admin, you're able to do whatever you want on subsites (both inside of the Dashboard, as well as on the front end), but until you were to have some role on there (e.g. Administrator), none of the sites will show up in the "My Sites" dropdown, as you don't have a solid presence on any of the sites in the eyes of WordPress.

    I've added your admin user as a Administrator on @Ashok's test site, and you can now see that his site shows up in your "My Sites" dropdown. :slight_smile:

    Hope this helps!

    Kind Regards,
    Michael

  • cgcristo

    I presume you are referring to the 'Test' site. It did not show up on 'My Sites'. I got another message from Michael Bissett, who determined that I wasn't signed in as a user. He added me as a user on the Test site and it worked. I have since added myself as a user to the San Diego site and now have use of the site. I'm still surprised how it once worked and then disappeared without me doing anything to change the site.

    I appreciate your help in this conundrum, as I still am curious. . . I checked what you said my hatches file should look like and it was exactly as you described. But then you indicated it was different and fixed it.

    Whatever the case, I appreciate your help and hopefully, I can find a tech who will work within our budgetary limitations so I don't have to keep groping around like a blind man, trying to d things I'm not suited for.

    Have a nice day.

  • Ash

    Hello @cgcristo

    I checked what you said my hatches file should look like and it was exactly as you described. But then you indicated it was different and fixed it.

    Your first issue was the subsite was not accessible. When I tried to access the subsite dashboard it shows a redirect loop. And in the subsite front end, no style was loaded. When I logged in via ftp, I saw that the htaccess want not correct. There were some duplicated code in the htaccess file, in fact there was code for single wp site as well. So, I replaced with the correct htacces and the site was back.

    Now the issue of "My Sites", when you create a site via Sites > Add New you should be administrator of that site and so the site should be appeared in your My Sites list. I assume, there are some conflict in your system that is restricting you to be an user of new subsite. It can happen by either any plugin or your current theme. In that case, you can try the following plugin and so that you can be user of all created subsites automatically: https://wordpress.org/plugins/multisite-user-management/

    Hope it helps :slight_smile: Please feel free to ask more question if you have.

    Cheers
    Ash

  • cgcristo

    I have enabled staff access thru the WPMU Dashboard. . .

    Here is the update:
    Since Oct 30, I had only worked on http://republicofplato.org that Ash fixed as we had recently published a book and were making those books available on the website. However, in late December, I received an email from Softaculous that I needed to update all of our site to WP4.1:
    WordPress 4.1:
    http://inamericapress.com/wp
    http://alexcristo.com
    http://crypto-sapien.com
    http://protognosis.org
    http://angelsquadron.org
    http://gijavacafe.com
    http://scifhs.org
    http://uscgmm.org
    http://scifhs.org

    I followed those instructions and successfully updated all of the sites. I will address each one in the order above. . .

    http://inamericapress.com/wp . . .
    This site existed prior to switching over to WPMU. I used the apple-style theme Mio, along with WooCommerce for the store.
    After joining WPMU, I hadn't kept up with Woo updates. I had decided to switch it over to Marketpress (so I would only have to worry about one commerce plugin). I deactivated Woo and activated Marketpress. What was previously a pleasing graphic site, suddenly became what is attached . . .
    When I entered my logon, the second attachment shows it can't open the page.
    Nothing else had been done on this site other than what I had described although all of the other sites now have similar problems. I will separate each site into another post.

  • cgcristo

    Re: http://alexcristo.com and http://crypto-sapien.com, these are run by my son and I do not have access to them, but I can say that the home page is not the home page that he built. It has apparently substituted a new theme that would appear when you first set up a site.

    Re: http://protognosis.org This is the parent site and is just set up to allow a visitor to click on a program of the Institute. If you just visit the page it appears to work. However, if I go to the WP logon page (which I had replaced the "W" logo with the ProtoGnosis logo) it shows up with the "W" logo and my user/password is not recognized. So I cannot even get into the dashboard. See attachment . . .

  • Michael Bissett

    Hey @cgcristo,

    Wow, that's a lot of sites affected here! Let's see about tackling the first one on the list, you may wish to have someone from the Jobs Board take a peek at the remaining 5 affected sites here.

    When I try going to:

    http://inamericapress.com/wp

    I get a "Page not Found" error, are you sure that's the path? It seems like this is the correct site address:

    http://inamericapress.com/

    I'm also seeing that there's quite a few 404 errors in the browser console. Could you please send in the following here, so that I can have a closer look at the situation:

    - Mark to my attention, the subject line should contain only: ATTN: Michael Bissett
    - Do not include anything else in the subject line, doing so may delay our response due to how email filtering works.
    - Link back to this thread
    - Include WordPress admin access details
    - Include FTP log-in details
    - Include any relevant URLs for your site

    On the contact form, select "I have a different question", this ensures it comes through and gets assigned to me.

    https://premium.wpmudev.org/contact/

    Thanks a bunch! :slight_smile:

    Kind Regards,
    Michael

  • cgcristo

    Michael,
    there is no subject line in this system to enter your name. I know there is an email system that one sends passwords, etc. to, which I could put you name in the subject line ,but I do not recall and cannot find the address to send it to.

    It also refers to a contact form that I should click on "I have a different question" but that too, is not on this page that I can see. Can you direct me on how I contact you with the information you need.

  • DavidM

    Hi @cgcristo,

    Thanks so much for sending those details through, I'll update you by email in just a moment but I wanted to quickly mention here that I was able to get that one site fixed up for you as you'll now see here:

    http://inamericapress.com/wp

    The issue was that this installation exists in the /wp/ folder but your site somehow had the url set as just the bare domain. I was able to get that adjusted in the database.

    Could you let us know how that works for you now?

    Cheers,
    David

  • cgcristo

    David,
    While this site will require re-building with my meager capabilities, at least I can get on to work on it. In this case, I can understand that I did something to create the problem in that I was attempting to replace WooCommerce with MarketPress. Thank you for at least getting me to a point where I'm able to work on it.

    I will now go and check all of the other sites. These are not the result of me doing something. This is the same problem that surfaced last year and it was Ash that somehow resolved it. For the sites that remain unfixed, the only effect I had on them was to upgrade to WP 4.1. I will now go to those sites and see what is there. I guess I'm hoping the problem cured itself. Shall I keep them in this thread or shall I create a new one?

    Thanks again.

    CGC

  • cgcristo

    David,
    I relieved and gratified that all but one of the other sites have magically reappeared as they were before I updated to WP4.1. I don't know why it went squirrelly and then returned, but at least the problem no longer exists.

    On the one problem that does still exist, I found that I can get to the site as a visitor and the site performs as it did prior to 4.1. However, when I try to logon, the logon page that I have as a bookmarked page for convenience, does not appear. I know this because when I logon to Protognosis.org, I have replaced the wordpress logo with our own golden pyramid. Since the update, the pyramid is back to the WP logo, which probably is evidence as to my inability to logon with my user/password.

    I don't know how or why this would have changed or exactly what changed so that I am locked out. I'm hoping this too can be fixed and perhaps an explanation of how it got screwed up and what I might have done to create the problem.

    Once fixed, I'm hoping I can continue to make minor changes and then hopefully find a contractor that can help us build a better site.

    Thanks for your help!

    CGC

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.