WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Sub- domain Mapping/ Failed to open stream on line 21 (26 posts)

  1. petebusi
    Member
    Posted 2 years ago #

    Hello Everyone! I urgently need your help, due to some time related release which brings me up to desperation...

    I have a freshly installed WP version 3.3.2 on my site http://zukunftderkommunikation.com (maindomain.com) and configured it for Multi Domain Mapping and selected subdomains for my work.
    Now i have following failure msd on my subdomain http://blog.zukunftderkommunikation.com (subdomain.maindomain.com):

    Warning: require(/home/renepf/public_html/wp-includes/load.php) [function.require]: failed to open stream: No such file or directory in /home/renepf/public_html/wp-settings.php on line 21

    Fatal error: require() [function.require]: Failed opening required '/home/renepf/public_html/wp-includes/load.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/renepf/public_html/wp-settings.php on line 21

    Heres a short illustration of my steps i went through so far:

    1. Installed WP at the mentioned domain
    2. I imported my old blog content into the site.
    therefore i installed the Plugin wp-importer
    3. Backup from my work - deactivating all plugins
    4. Setting up Multi Domains following the instructions from http://ottopress.com/2010/wordpress-3-0-multisite-domain-mapping-tutorial/
    5. Installed the plugin new-blog-defaults into /wp-content/mu-plugins
    6. Installed domain-mapping.php /wp-content/mu-plugins into and sunrise.php into /wp-content
    7. put into config.php define( 'SUNRISE', 'on' );
    8. .htcaccess update

    here is where it gets tricky:

    i acticvated subdomain.maindomain.com before inside my cpanel.
    Than i installed a fresh version of WP on that subdomaim and tried to connect it to my domain mapping list.

    9. adding the subdomain.maindomain.com to my domain mapping list
    10. adding the subdomain.maindomain.com to my "all sites" list
    11. didn't work out...

    12. i deletet all files incl. the subdomain.maindomain.com from the public_html folder and deleted all sites in the domain mapping section inside wp
    13. Now only the maindomain.com was left.

    13. I choose to park the subdomain.maindomain.com
    14. after confirmation i repeated the process and added a new site at domain mapping and than added a new site under "sites" directory inside the wp backend of my mainblog.

    i have now a subfolder inside my wordpress installation at the main directory. The installation seemt to be successful but i'm only having the error msg now. Is there any possibility to fix this issue without the neew of a complete deinstallation and repeating the whole wp configuration and installation process? Thanks in advance for your answers and comments!!

    Kind regards!

  2. You're not supposed to map subdomains like that.

    1) Remove the domain mapping plugin.
    2) Remove the parking for the subdomain.
    3) In cpanel, point your subdomain to /home/renepf/public_html/ (by default it will want to go to /home/renepf/public_html/subdomain, but we don't want that)

    Now check.

  3. petebusi
    Member
    Posted 2 years ago #

    Hi Ipstenu! Thanks for your quick response!

    How do i do 3) exactly, Is `this ment to create a new subdomain in my cpanel again?
    And when in have several domains in the public_html i guess it should be directing to my wished maindomain like /home/renepf/public_html/maindomain.com?

    thanks again!

  4. Don't mess around with your other domains. Leave them alone.

    We are only going to address your subdomains at this moment in time. Once we are done, and you can access them, then we will come back around. Be patient, young Jedi. You have to do things in order or they will break.

    To do #3, go into Cpanel.

    Click on Subdomains.

    See the list? Now, edit the subdomain you want to use on Multisite.

  5. petebusi
    Member
    Posted 2 years ago #

    lol, like your presence :D
    ok, i'm not very new to wp so i know it a bit better. But back to the subdomain.

    #1 done
    #2 done
    #3 let me repeat: I create a new subdomain and set the document root to public_html or public_html/maindomain.com?

    which list you mean? the list inside my cpanel!
    Please master Yoda, i can't receive all of your thoughts, as i'm just learning telepathy. So please speak it out to me, to fully understand what you mean! :o)

  6. You said this:

    i acticvated subdomain.maindomain.com before inside my cpanel.

    I presume you remember where and how you did that?

    Did you delete this cpanel subdomain? If so, you need to recreate it.

  7. petebusi
    Member
    Posted 2 years ago #

    ok, i just tried to recreate it now it shows following error msg:

    There was a problem creating the sub-domain. Show Details
    blog.zukunftderkommunikation.com domainadmin-domainexistsglobal

    it's still existing inside my blog insde my network shaul i delete it from there too?

  8. petebusi
    Member
    Posted 2 years ago #

    and when i now try to access the networkadmin it shows follwing error msg:

    Fatal error: Call to undefined function wp_get_current_user() in /home/renepf/public_html/zukunftderkommunikation.com/wp-includes/capabilities.php on line 1187

  9. There was a problem creating the sub-domain. Show Details
    blog.zukunftderkommunikation.com domainadmin-domainexistsglobal

    Where did that error come from? Cpanel or WP?

  10. petebusi
    Member
    Posted 2 years ago #

    cpanel

  11. Then the issue is your server. Either you aren't allowed to make any more subdomains, or there's a problem.

    Check with your host.

  12. petebusi
    Member
    Posted 2 years ago #

    ok, this is resolved. following error appeared to be the problem.

    Here's the resolution from the host Customer Support:

    (2:38:02pm)CS:It seems this error is being caused because there is an entry in the DNS zone for blog.zukunftderkommunikation.com as a txt record and since that already exists it will not allow the creation of this. I can try to remove this txt record to see if this corrects the issue and I can attempt to add this subdomain for you.

    (2:43:16pm)CS.:Alright. What I have done was I removed the txt record going to "v=spf1 +a +mx +ip4:184.173.215.147 ?all" from the DNS zone for zukunftderkommunikation.com

    And you will now be able to create this subdomain.
    I test this and remove the one I created as a test so you can set this up the way you want it to be set up.

    let's get back to #3 and some open questions:

    3) In cpanel, point your subdomain to /home/renepf/public_html/ (by default it will want to go to /home/renepf/public_html/subdomain, but we don't want that)

    there is some other named domain registered. As well i have a wordpress installation there directly installed, which is related to this different named domain.

    The directory of the domain i am currently working on is "/public_html/zukunftderkommunikation.com" there is the WP MU blog installed.

    and when i now try to access the networkadmin it shows follwing error msg:

    Fatal error: Call to undefined function wp_get_current_user() in /home/renepf/public_html/zukunftderkommunikation.com/wp-includes/capabilities.php on line 1187

    is this because the MU domain Mapping was deleted?

    thanks for your help until here Mika! I really appreciate it!!

  13. The directory of the domain i am currently working on is "/public_html/zukunftderkommunikation.com" there is the WP MU blog installed.

    Then you want your subdomain to point there :) /home/renepf/public_html/zukunftderkommunikation.com

  14. petebusi
    Member
    Posted 2 years ago #

    ok, i crreated the subdomain now and pointed it to the specified folder.

    Now i have a copy of the mainpage on that site and the network admin disapeared inside the WordPress backend.

  15. petebusi
    Member
    Posted 2 years ago #

    edit: i want to run a blog on that sub domain.
    And domain mapping was recommended to use such as mentioned here:
    http://wordpress.org/support/topic/multiple-domain-with-multisite?replies=2

  16. Now i have a copy of the mainpage on that site and the network admin disapeared inside the WordPress backend.

    A ... copy?

    You aren't actually using the name 'blog' for your site, are you? That's a restricted name, and it shouldn't be letting you use it at all...

  17. petebusi
    Member
    Posted 2 years ago #

    no, only my subdomain is called "blog."

    i'm sure it's no copy, allthough it's the same showing now as on it does my mainpage.

  18. no, only my subdomain is called "blog."

    Right, you can't use that. The subdomain can't be /blog/ it's a reserved name.

  19. petebusi
    Member
    Posted 2 years ago #

    ok, i renamed it to blogtalk and i have now the question if i want to add it as a site to my main blog.

    Greetings Site Administrator! You are currently allowing “blog” registrations. To change or disable registration go to your Options page.

    Some other steps to consider before i register the new blog?

    and what's with the MU Domain Mapping Plugin?

  20. MU Domain mapping is when you want to point somethign like halfelf.org to tech.ipstenu.org ;) You map, y'know, domains. A subdomain is the tech... part, see. You don't map those, they're built in to your domain.

    Greetings Site Administrator! You are currently allowing “blog” registrations. To change or disable registration go to your Options page.

    That means you don't have the site created yet. How did you 'rename' this?

  21. petebusi
    Member
    Posted 2 years ago #

    That means you don't have the site created yet. How did you 'rename' this?

    just deleted the subdomain and created a new one.

    by visiting the site wordpress automatcally ask me to install it.

    MU Domain mapping is when you want to point somethign like halfelf.org to tech.ipstenu.org ;) You map, y'know, domains. A subdomain is the tech... part, see. You don't map those, they're built in to your domain.

    i got it! man i thank you very much, you helped me a lot and i appreciate your great effort!

    therefore master Jedy, i wait uptill the next lesson. Now i'm a step across beeing enlightend by your presence!! Have a great week!

  22. Heh okay two things.

    1) Making the subdomain in cpanel is half the battle.
    2) You have to make the site in WP as well. Go to domain.com/wp-admin/network and add the site with the same name.

  23. petebusi
    Member
    Posted 2 years ago #

    It has done it automatically! After creating the subdomain i went to subdomain.maindomain.com and WP asked me to install it. It directly apeared inside backend at "wp-admin/network" - sites

    thank you very much my friend!!

  24. petebusi
    Member
    Posted 2 years ago #

    but i have one question left:

    what are the exact steps, when i want to connect a not related domain with the MU Domain mapping plugin?

  25. Make a site just as you normally would.

    Then install http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

    THEN you can use it to map any domain to any site (except the main site)

  26. petebusi
    Member
    Posted 2 years ago #

    so it's just like the sub domain?
    I create the domain and than i point it to my specified domainfolder in the public_html/maindomain?
    And then Install the wordpress blog inside my backend, adding a new site?

Topic Closed

This topic has been closed to new replies.

About this Topic