# Multisite issues after updating Environment and Local

**URL:** <https://community.localwp.com/t/multisite-issues-after-updating-environment-and-local/7244>\
**Category:** Support\
**Created:** [July 9, 2018, 1:23pm UTC](https://community.localwp.com/t/multisite-issues-after-updating-environment-and-local/7244 "2018-07-09T13:23:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tiborp](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/tiborp/32/33_2.png) [@tiborp](https://community.localwp.com/u/tiborp)\
**Post date:** [July 9, 2018, 1:23pm UTC](https://community.localwp.com/t/multisite-issues-after-updating-environment-and-local/7244/1 "2018-07-09T13:23:59Z")

</div>

Hi,

Starting up my Local server, I saw an environment update for the domain (to 1.2) and ran that, as well as the update for Local to 2.3.2. All seemed to work fine, untill I tried to visit one of the other sites in the network (sub-directory install); it seems no assets are loading. In the console there’s 54 404-errors loading css en js files.

Trying to login to one of the subsites backend gives and “endless redirect” error in the browser.

Any suggestion on how to solve this?

Regards,  
Tibor

---

<div class="post-metadata">

**Author:** ![daniel](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/daniel/32/4605_2.png) [@daniel](https://community.localwp.com/u/daniel)\
**Post date:** [July 9, 2018, 4:07pm UTC](https://community.localwp.com/t/multisite-issues-after-updating-environment-and-local/7244/2 "2018-07-09T16:07:39Z")

</div>

Taking some stabs in the dark…

1. Do you have an example asset link that 404s (to rule out anything weird)? The domain/filename can be modified/fake - I’m more curious about what some of the URI paths look like.
2. Do you have any security plugins, like iTheme Security, etc? If yes, you might try renaming it/them (for example, rename `ithemes-security` to `ithemes-security2` so that WP deactivates it).
3. Are you forcing SSL on the backend (and/or frontend), Locally? Perhaps you could try defining `WP_HOME` and `WP_SITEURL` in case something got mucked up in the DB.
4. Whether or not you do #2, maybe try (temporarily) added `flush_rewrite_rules()` to `functions.php` and loading the site?
5. If you’re running Apache, maybe try moving/renaming `.htaccess`, and if you can get into WP Admin, go to Settings \> Permalinks and Save Changes?
6. If you are using Apache, try switching (temporarily) to Nginx in Local, save settings, then switch back to Apache and save again.
7. If all else fails (and assuming it lets you), try exporting the install, delete it from Local, then import it back in?

Just throwing some ideas out there. I would check my `hosts` file to make sure everything looks kosher.

If I remember correctly, I had some issues with my `hosts` entries getting truncated when I upgraded to 1.2.0. I haven’t noticed since (just after the upgrade), and if I recall, the export-delete-reimport fixed it. That may not work for your situation, though.

**EDIT:** On second thought regarding #5, you’ll probably just want to recreate (temporarily/as a test) `.htaccess` based on what is in `/wp-admin/network/setup.php`.

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [July 9, 2018, 9:23pm UTC](https://community.localwp.com/t/multisite-issues-after-updating-environment-and-local/7244/3 "2018-07-09T21:23:38Z")

</div>

Tibor,

Sorry for the trouble with the Environment Upgrade!

I’ve made a note in our issue tracker to look into upgrading from Preferred 1.1 to 1.2 with multisite (subdirectory) installations.

---

<div class="post-metadata">

**Author:** ![tiborp](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/tiborp/32/33_2.png) [@tiborp](https://community.localwp.com/u/tiborp)\
**Post date:** [July 10, 2018, 4:44am UTC](https://community.localwp.com/t/multisite-issues-after-updating-environment-and-local/7244/4 "2018-07-10T04:44:31Z")

</div>

Hi guys,

Thanks for your quick response.

Before reading your answer I did an export/import (on a new site with a different domain name), which did not work either. Then I set up a new multisite install from scatch, with a different domain name and with a custom environment using nginx and php 7.1, and then did an import off of the staging server of this site through WP Migrate DB Pro.

That seemd to work, but the site was loading once or twice and then timed out or did not load at all. Checking the log files, there was a warning:  
`WARNING: [pool www] server reached pm.max_children setting (5), consider raising it.`

I solved this by increasing the `pm.max_children` setting in `conf/php/7.1.4/etc/php-fpm.d/www.config` to 20 (from 5), as was suggested [here](https://serverfault.com/questions/479443/php5-fpm-server-reached-pm-max-children#479484), and it now runs smooth.

The filepaths in the not working version where correct, as in: [http://site.url/sub-directoryname/wp-content/etc](http://site.url/sub-directoryname/wp-content/etc)…

I still had that one and changed the environment settings also to “custom” and then it worked again too (although I also had to increase the pm.max\_children setting).

**Note** : this is quite a big multisite install, with 9 sites and using WPML and lots of ACF content.

Hope this helps you to maybe find something.

Cheers, Tibor

---

<div class="post-metadata">

**Author:** ![matthewfarlymn](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/matthewfarlymn/32/23832_2.png) [@matthewfarlymn](https://community.localwp.com/u/matthewfarlymn)\
**Post date:** [July 24, 2018, 4:16pm UTC](https://community.localwp.com/t/multisite-issues-after-updating-environment-and-local/7244/5 "2018-07-24T16:16:17Z")

</div>

I also upgraded to 2.3.2 and wasn’t able to reach any of my multisite subdirectories. I tried creating a new subdirectory multisite install from scratch and also couldn’t access any of the additionally created domains. It seems to be an issue for the Preferred environment 1.2.0 from what I can tell. I have since downgraded to 2.2.4 again which uses the Preferred 1.1 setup and creating a multisite works again.

---

<div class="post-metadata">

**Author:** ![matthewfarlymn](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/matthewfarlymn/32/23832_2.png) [@matthewfarlymn](https://community.localwp.com/u/matthewfarlymn)\
**Post date:** [August 14, 2018, 3:20pm UTC](https://community.localwp.com/t/multisite-issues-after-updating-environment-and-local/7244/6 "2018-08-14T15:20:31Z")

</div>

Is there a fix for this?

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [August 25, 2020, 6:34pm UTC](https://community.localwp.com/t/multisite-issues-after-updating-environment-and-local/7244/7 "2020-08-25T18:34:54Z")

</div>


