• Resolved ahtiandr

    (@ahtiandr)


    Hello! I am quite new with word press and having some trouble already.

    I have a multisite and I wanted to change the main site’s end patch from “/” to “/fi” (“www.example.fi” to “www.example.fi/fi”) . This cannot be done for the main site from the wp admin dashboard but I went to wp config and changed this

    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    to this

    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 2);
    define(‘BLOG_ID_CURRENT_SITE’, 2);

    after this I went back to admin dashboard and now I was able to edit my main site’s path to this “/fi”

    after this operation I couldnt get access to my site but then I changed this

    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 2);
    define(‘BLOG_ID_CURRENT_SITE’, 2);

    to this

    define(‘PATH_CURRENT_SITE’, ‘/fi’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    and now I am able to access my website and my site dashboard but I cant access to the network admin.

    all Iget is : Error establishing a database connection

    I am copleatly lost and I hope to get some help.

Viewing 1 replies (of 1 total)
  • Thread Starter ahtiandr

    (@ahtiandr)

    Right! So I managed to resolve this issue by myself 🙂

    In case someone will be interested how I fixed it:

    there is one tiny thing which missed from my Patch “/”

    so I changed
    define(‘PATH_CURRENT_SITE’, ‘/fi’); to
    define(‘PATH_CURRENT_SITE’, ‘/fi/’);

    and now I am able to access the admin dashboard.

Viewing 1 replies (of 1 total)

The topic ‘cant access network admin’ is closed to new replies.