• Resolved ru4god

    (@ru4god)


    Hi,
    I have tried to find a solution for this problem and had no luck.

    I had the subdomain setup working initially and then decided to switch to subfolder setup. I made the necessary changes to wp-config and .htaccess

    Here’s how my htaccess looks

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    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

    It looks like the subfolder setup went through ok, but when I try to create a site (after putting in the site address, site title and admin email) I get a blank page.

    When I refresh the page, it says the site already exists.

    It is not listed under ‘My Sites’. But it is listed in the Network Dashboard – All sites.

    When I try to visit the page, it goes to my homepage. But when I try typing the full url in the address bar, i get to the page (it looks like a new site page), but it says ‘This is somewhat embarrassing, isn’t it?’

    I am using bluehost, and it is on a shared hosting plan and so they cannot do AllowOverride FileInfo Options

    They also said that the mod_rewrite was enabled.

    I noticed that there was no user setup in this new site and so when I create a user the site shows up under ‘my sites’ but that’s all… i cannot update the site name or add post or change settings. it goes to a blank page.

    Any help will be greatly appreciated! Thanks in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Go look in your DB for the wp_sites table, and make sure it’s creating them correctly.

    Thread Starter ru4god

    (@ru4god)

    I don’t have any table named wp_sites, but I do have wp_blogs which contains the site I created.

    The new site has site_id=33, blog_id=1 (and the right path name)
    My main site has site_id=1, blog_id=1

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    site ID and blog ID are correct, it was the pathname I was wondering…

    Did you have any caching plugins on your main site?

    Thread Starter ru4god

    (@ru4god)

    I haven’t installed any caching plugins, but I am not sure if any of my other plugins are doing this.

    Something interesting I found…
    The site that I created yesterday now works okay after I added me as a user, i.e. I was able to add a post and it remains in that site. (Yesterday, I was not able to create a post.)

    But, today I added another new site, and it is not working properly. When I added me as a user and clicked submit it went to a blank page. On refresh, I am a registered user but not able to create a post properly.

    In digging through the settings of each site, I found this…
    – the ‘Home’ is set to ‘www.mainsite.org/site1’ for the working site
    – the ‘Home’ is set to ‘www.mainsite.org/’ for the non-working site

    Any changes to both sites’ settings (on submit) gives me a blank page.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    This sounds like a theme or plugin conflict, since it’s not regular. Start with the usual methods of turning off plugins etc.

    Thread Starter ru4god

    (@ru4god)

    I am not sure what did it, but everything seems to be working good now, somehow!
    At some point, I updated all my plugins, I am not sure if this had anything to do with it. As you said, turning off all plugins during install may be the key.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Subfolder setup – error in creating a new site – page not found’ is closed to new replies.