• Resolved rafaelescalios

    (@rafaelescalios)


    Hi, hope somebody can help me with this. The theme is showing in the main site but not in the other sites. I tried to change the theme of the other sites but the theme tab in the Network Admin Dashboard doesn’t have any button to change the theme. (The theme is already enabled)

    Main Site showing theme: http://herbax.org/blog

    Site not showing theme: http://herbax.org/blog/us

Viewing 15 replies - 1 through 15 (of 30 total)
  • Moderator Bet Hannon

    (@bethannon1)

    Go to the Network Admin dashboard, then to Themes, and make sure that the theme is “network activated”. When themes are network activated, then they will appear for use in all the subsites under Appearance — Themes.

    Thread Starter rafaelescalios

    (@rafaelescalios)

    Thank you but the theme is already enabled in the Network Admin dashboard and already activated in the Main site dashboard.

    The Network Admin dashboard doesn’t show any “Appearance-Themes” button on the side bar.

    Any idea what is happening?

    Moderator Bet Hannon

    (@bethannon1)

    You have to go to the subsite dashboard to activate the theme for the site.

    Thread Starter rafaelescalios

    (@rafaelescalios)

    Thank you Bet. I can’t get into the subsite dashboard. When I click on it the page doesn’t open. I get this error:

    herbax.org redirected you too many times.
    ERR_TOO_MANY_REDIRECTS

    How can I fix this?

    Moderator Bet Hannon

    (@bethannon1)

    You might want to double-check that you did the setup process correctly:
    http://codex.ww.wp.xz.cn/Create_A_Network

    Then make sure that you setup the subdirectory type correctly. Look for
    define( 'SUBDOMAIN_INSTALL', false );
    in your wp-config.php file.

    Thread Starter rafaelescalios

    (@rafaelescalios)

    Thank you again Bet. This is my wp-config.php Do you see something could be missing here?

    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'my-name');
    
    /** MySQL database username */
    define('DB_USER', 'my-user');
    
    /** MySQL database password */
    define('DB_PASSWORD', 'passthis');
    
    /** MySQL hostname */
    define('DB_HOST', 'location');
    
    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8');
    
    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');
    
    /**#@+
     * Authentication Unique Keys and Salts.
     *
     * Change these to different unique phrases!
     * You can generate these using the {@link https://api.ww.wp.xz.cn/secret-key/1.1/salt/ ww.wp.xz.cn secret-key service}
     * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
     *
     * @since 2.6.0
     */
    
    /**#@-*/
    
    /**
     * WordPress Database Table prefix.
     *
     * You can have multiple installations in one database if you give each
     * a unique prefix. Only numbers, letters, and underscores please!
     */
    $table_prefix = '57Exmv0_';
    
    /**
     * For developers: WordPress debugging mode.
     *
     * Change this to true to enable the display of notices during development.
     * It is strongly recommended that plugin and theme developers use WP_DEBUG
     * in their development environments.
     *
     * For information on other constants that can be used for debugging,
     * visit the Codex.
     *
     * @link https://codex.ww.wp.xz.cn/Debugging_in_WordPress
     */
    define('WP_DEBUG', false);
    
    define('WP_ALLOW_MULTISITE', true);
    
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'herbax.org');
    define('PATH_CURRENT_SITE', '/blog/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    
    /* That's all, stop editing! Happy blogging. */
    
    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname(__FILE__) . '/');
    
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');
    
    define( 'WP_ALLOW_MULTISITE', true );
    
    define ('FS_METHOD', 'direct');
    
    //--- disable auto upgrade
    define( 'AUTOMATIC_UPDATER_DISABLED', true );
    ?>
    Moderator Bet Hannon

    (@bethannon1)

    First of all, you would never want to post something like this with all your login credentials on a public forum. Your post has been edited to remove the info that should stay secret. πŸ™‚

    You definitely have multisite setup, with a subdirectory type.

    Please copy & post your .htaccess file. Nothing in that file will be security compromising.

    Thread Starter rafaelescalios

    (@rafaelescalios)

    Thank you for the advice. I am new to wordpress multisite and i am trying to figure out how this work. I appreciate your help.
    I couldn’t find .htaccess so i created one. I uploaded to godaddy but there is no code, it is a blank file. I decided to copy and paste a code i found in the forum. Do you think that’s OK? Here:

    # BEGIN WordPress
    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]
    # END WordPress
    Moderator Bet Hannon

    (@bethannon1)

    If you had NO htaccess in multisite, then you definitely did not follow the instructions here: http://codex.ww.wp.xz.cn/Create_A_Network

    There is a specific .htacess set of rules to be used. I don’t know about that set you pasted, but I would start by going to Network Admin — Network Setup, and copy the htaccess rules for your install from there. REPLACE whatever you have in .htaccess.

    Not having an htaccess file is almost certainly why you have not been able to log into subsites.

    Moderator Bet Hannon

    (@bethannon1)

    Wait! Are you sure you didn’t have an “.htaccess” file? The dot in front is important. It may be hidden by default in your hosting account.

    Thread Starter rafaelescalios

    (@rafaelescalios)

    I was thinking it could be hidden. That’s the reason i created a .htaccess and uploaded to the server just to make sure.
    I follow the steps one by one on the link you sent me but i had to stop here:

    To enable mod_rewrite to work within an Apache Virtual host you may need to set some options on the DocumentRoot.

    <VirtualHost *:80>
      DocumentRoot /var/www/vhosts/wordpress
      <Directory /var/www/vhosts/wordpress>
        AllowOverride Fileinfo Options
      </Directory>

    I don’t have idea where the DocumentRoot is located. Do you think this could be the problem why the subsite dashboard is not opening?

    Moderator Bet Hannon

    (@bethannon1)

    Where are you seeing those instructions? I’m not seeing them on this page: http://codex.ww.wp.xz.cn/Create_A_Network

    Thread Starter rafaelescalios

    (@rafaelescalios)

    Step #6 has a link that says “Read Multisite Network Administration for more information.”

    Click on it and you will see it.

    Moderator Bet Hannon

    (@bethannon1)

    Are you sure you are on an Apache Virtual host? Where is your network hosted?

    Thread Starter rafaelescalios

    (@rafaelescalios)

    I am using godaddy’s Plesk. I am assuming Plesk = Apache

Viewing 15 replies - 1 through 15 (of 30 total)

The topic ‘Theme for Multisite’ is closed to new replies.