WordPress.org

Ready to get started?Download WordPress

Forums

Is WP 3.6 bugged on Multisite? (9 posts)

  1. Carlo Rizzante
    Member
    Posted 1 year ago #

    Hello,
    I have issues in enabling WP Multisite, with sub-domains or sub-directories, on WordPress 3.6. Before the version 3.6 I had no problem what so ever.

    On a new cPanel I tried several times to enable a Multisite from scratch and every time I fail. I tried with sub-domains as well as with sub-directories.

    In details, with sub-domains, the second site returns an error "Server not found".

    With sub-directories the login on the primary site enters in loop.

    All issues appear after adding the necessary code to the files .htaccess and wp-config.php. I literaly follow the procedure as explained during the installation process.

    I looked into the forum for help, but none of the solutions I have found could fix my issues. I can't understand if the issue commonly related to my cPanel, more than to WordPress itself, and at this point I admit to feel lost.

    What is your experience on the matter?

    Thanks and best,
    Carlo

  2. Carlo Rizzante
    Member
    Posted 1 year ago #

    ps. I also made sure to have wildcards enabled on the cPanel.

  3. In details, with sub-domains, the second site returns an error "Server not found".

    You didn't add wildcard subdomains then.

    With sub-directories the login on the primary site enters in loop.

    Did you try the usual methods, like flushing all your cookies?

  4. Carlo Rizzante
    Member
    Posted 1 year ago #

    Hello Ipstenu and thanks for your reply.

    This is the first time I start from scratch setting up a WP Multisite on a fresh install of WP 3.6. That's why I was asking what others' experience was.

    Before, I had no issue what so ever in setting up a Multisite and I did on several occasions. Also in local if you remember an earlier post of mine on a similar topic. Indeed most of the sites I work on are multisite at this stage.

    Anyway, Wildcard subdomains have been setup. The domain is http://blablablubla.com and on cPanel I setup the subdomain *.blablablubla.com. I am confused as you may imagine that in this case WPMU with sub-domains returns an error on the second site.

    When setting up WPMU with sub-directories I tried all the solutions I could find on this Forum and on other websites. Including adding on the wp-config.php and .htaccess code for resetting cookies. I tried the boilerplate .htaccess code as well. No luck with anything.

    So I am not stressing you at this point.

    Now I'm contacting the web host (Hostgator) 'cos I'm starting suspecting that something else may be wrong on that cPanel (and I can't figure it out).

    Anyway, I'll keep you posted. Thanks so far.

  5. Carlo Rizzante
    Member
    Posted 1 year ago #

    An important detail.

    Until last Friday morning (at the moment I am writing is Tuesday), on that primary domain I had a multisite with sub-directories working just fine (it started as WordPress previous to 3.6, likely it was 3.4 at the moment of installation). What I did was to delete all the files, but keeping the database as backup.

    Then I created a new database, and I started installing WP Multisite from scratch.

    At this point, things stopped to work. And it became impossible to enable a Multisite with sub-domains or sub-directories what so ever.

    Every new trial started with a full reset of the database, and of the files wp-config.php and .htaccess.

  6. Carlo Rizzante
    Member
    Posted 1 year ago #

    For the record,
    I re-started from scratch once again, using WordPress 3.5.1, and apart for a little problem with cookies and looping at login, now it works.

    I setup a WP Multisite with sub-directories. The second site finally works.

    Apparently the .htaccess was generating the loop. I had to delete the first block of instruction, that I report here below (I repeat, I had to delete this block).

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    And leave the following block.

    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]
  7. gordieschmitt
    Member
    Posted 1 year ago #

    I had the same problem with a new WP v3.6 multisite installs. I finally did basically what Carlo Rizzante did only, I copied my .htaccess file from a v3.n(installed a year ago) and used it for my v3.6 install and it seems to be working fine now. The 3.6 .htaccess code was not properly handling the sub-directory site paths to various css and js files which obviously causes problems.

    So, I can attest that the solution Carlo Rizzante used also worked for me, only it doesn't seem necessary to install an earlier version of WP if you can just get a copy of the rewrite code from Carlo or here is what I used (replace the RewriteBase path):

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    Options +FollowSymLinks
    RewriteBase /engl191-fall2013/
    RewriteRule ^index\.php$ - [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    </IfModule>

    # END WordPress

  8. Carlo Rizzante
    Member
    Posted 1 year ago #

    Thanks @gordieschmitt.

    Right now I'm experiencing a weird outcome. I can login in any sub-site Dashboard, but not into the Network Admin, or the Primary site Admin.

    This is true for Chrome and Firefox. On Safari I don't have any issues logging into any Admin area, Network, Primary site or Sub sites all work just fine.

    All this is driving me nut :)

  9. Anyway, Wildcard subdomains have been setup. The domain is http://blablablubla.com and on cPanel I setup the subdomain *.blablablubla.com. I am confused as you may imagine that in this case WPMU with sub-domains returns an error on the second site.

    If the error you're seeing on sitename.blablablubla.com is not a WordPress error but a Server error, then the problem is the server, not WP.

    If it's WordPress, you would see something formatted ala WP.

    For the subdirectories, read http://halfelf.org/2012/multisite-login-loop/ - There are more suggestions.

Topic Closed

This topic has been closed to new replies.

About this Topic