• After successfully installed WordPress Multisites on MS Windows 10 localhost for testing several LMS plugins before applying on production environment, I can open & access the main local host site & dashboard, but after adding any new subsite when trying to visit it browser gives error ” We’re having trouble finding that site” although it is showing added & named successfully on Mysites, (e.g.: learnpress.localhost)

    • This topic was modified 6 years, 6 months ago by yasserfm.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Can you describe your multisite setup? Are you using subdomain or subdirectory installation? If you’re using sub-domain, have done the necessary DNS changes (perhaps via hosts file) for these sub-domains to work?

    If learnpress.localhost is a subsite address (that means you’re using sub-domain setup), you should be able to ping it in your Windows command prompt and get a reply. If this doesn’t work, you have DNS issues and you need to fix that first — WordPress has nothing to do with that.

    Thread Starter yasserfm

    (@yasserfm)

    Hello George, thanks a lot for your reply, yes I’m using sub-domain setup, and the sub-domain browsing error solved as you suggest througth adding DNS changes in the windows system hosts file, but now I’m facing another issue when trying to login to any subsite , which is: “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.” in the login window, and this happened in all brosers I tried although I checked & enabled cookies on all browsers, do you have any advice for this thanks,

    I’m not very familiar with Windows and IIS, but on Linux servers, I’ve solved this cookie problem by adding the following to wp-config.php

    define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST'] );

    See this StackOverflow Q&A: https://wordpress.stackexchange.com/questions/166181/cant-log-in-error-cookies-are-blocked-or-not-supported-by-your-browser-you

    And this WordPress forum support thread: https://wordpress.org/support/topic/cookie-error-site-not-letting-me-log-in/

    Thread Starter yasserfm

    (@yasserfm)

    hello George, in my case the login issue solved by adding the the follwing to wp-config.php

    define(‘ADMIN_COOKIE_PATH’, ‘/’);
    define(‘COOKIE_DOMAIN’, ”);
    define(‘COOKIEPATH’, ”);
    define(‘SITECOOKIEPATH’, ”);

    thanks a lot for the help, best regards.

    I’m glad I could be of help.

    Have a good day… and good luck with your project!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘error when open Subsites within localhost installed WordPress Multisites’ is closed to new replies.