WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] cant add theme in new added site (4 posts)

  1. NormanBird
    Member
    Posted 1 year ago #

    Hi,

    I created a network. added a site. after it processed the screen just went blank, no message or anything, so thats the first weird thing, so i just used the back button and then refreshed the dash board and i see that the demo site is created, so ok.

    i view this new site and there is no formating so no theme. i use that new sites dashboard and go to themes and there are no networked themes to be added, ok..so i go to the network admin and check that the themes thee are network activated and they are. so im out of ideas.

    in summary the sites i add are without themes and i cant add a theme.

    thanks for any help ...Andrea_r ;-)

  2. Blank pages is a PHP error, so check your error logs for that.

    If there's no formatting on the themes, check that your .htaccess is okay.

  3. NormanBird
    Member
    Posted 1 year ago #

    Thanks Mika,

    I checked my .htaccess and it looked as this:

    # 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

    Well that didnt look right so i checked the code in the network setup, and it was supposed to be:

    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]

    so i replaced the code with what was supposed to be there and at first it was the same, but then i did ctrl+f5 in my browser to clear the cache and viola! my site was there! :-) and there was beautiful formatting.

    the question now is, what happened to the code i used during setup for the .htaccess? I folled instructions and added it to the wp-config???

    a mystery or do you know what happened?

    thanks

  4. You probably didn't save the code in your .htaccess. It happens to the best of us!

Topic Closed

This topic has been closed to new replies.

About this Topic