Starting Multisite - Can't Get Themes or Plugins To Show Up On Sub-domains

I'm trying to set up multi-site with sub-domains of chat.christiangays.com and dating.christiangays.com. I've followed all the instructions, network enabled themes and plugins but I can't get any of them to show up on the sub-domains. What am I missing?

Thank You.
Support Access Granted
https://ChristianGays.com

  • Rupok

    Hi Mary, hope you had a wonderful day.

    Thanks for granting Support Access. I logged in to Network Dashboard successfully but when I was trying to go do Subsite Dashboard for checking the issue, it's showing me the following error:
    You must log in to access the admin area.
    Please check the attached screenshot for reference.

    I tried to create another test subsite to check the issue but that new subsite is not even opening.

    I need your cPanel access to investigate the issue and resolve it faster. Can you send me message with cPanel access credentials through our secure contact form here: https://premium.wpmudev.org/contact/ ? I'll also need your WordPress Admin Credentials. Please change admin password to a temporary one, send us, and when we are done, please change it back to your original password.

    Subject: "Attn: Rupok"
    - WordPress admin Username
    - WordPress admin Password
    - Login URL
    - cPanel Username
    - cPanel Password
    - cPanel Login URL
    - Link back to this thread for reference
    - Any other relevant URLs

    Select "I have a different question" for your topic. This and the subject line ensure that it gets assigned to me.

    Please let us know when you are done sending. I'm looking forward to hear from you and resolve this issue as soon as possible.

    Have a nice day. Cheers!
    Rupok

  • Mary

    Well I've installed and uninstalled so many times now I've lost track. I'm getting closer. I am able to activate themes and plugins on both .chat and .dating sub-domains but they keep switching back and forth. I might put in .chat.christiangays.com but I get dating.christiangays.com

    Also, if I go to My Sites I only see CG and dating - no chat, but if I go to Sites then I see all three.

    Obviously I've screwed something up. Would appreciate any help you can give.
    Thank you.

  • Mary

    I sure wish I could get some help on this. I've uninstalled and installed just .chat sub-domain again and I'm getting a few errors.

    The first one is when WP has been installed successfully but it says:

    Warning: mysqli_real_escape_string() expects parameter 2 to be string, object given in /home/dating/public_html/wp-includes/wp-db.php on line 1127 (twice)

    Then, if I try to go to either http or https://chat.christiangays.com I get an error that the page isn't working.

    Is there any chance that someone could help me with this now? I really need to get it working.
    Thank you.

    PS: Please note that the first string is going to "dating" but I don't have dating added yet.

  • Kasia Swiderska

    Hello Mary,

    I'm sorry for delay in our response. I'm checking now your multisite and chat.christiangays.com is working however it shows that your ssl certificate is not wildcard certificate but it is only for christiangays.com - so browser is showing warning about wrong certificate.
    If you want to use ssl on subsites on the network you will have to purchase wildcard certificate so it will handle by default all subdomains in domain christiangays.com.

    Also I went to plugins list of https://chat.christiangays.com and there were plugins listed and I was able to activate one no problem.

    Warning: mysqli_real_escape_string() expects parameter 2 to be string, object given in /home/dating/public_html/wp-includes/wp-db.php on line 1127 (twice)

    I don't see that warning. On what page can I see it?

    Your server is returning 404 error on dating subsite and that means that wildcard subdomains are not enabled for your domain and/or server. Please contact your hosting provider and ask them to enable wildcard subdomains so subdomains network will work properly.
    https://codex.wordpress.org/Configuring_Wildcard_Subdomains

    kind regards,
    Kasia

  • Mary

    Thank you for the info. My systems admin gave me the correct info to fix it. I will share in case anyone else needs the info. After doing as he suggested I uninstalled and reinstalled multisite and all works as it should.

    First - as I see - you created separate accounts for each sub-site:

    chat.christiangays.com: chatcg==root==main==chat.christiangays.com==/home/chatcg/public_html==45.40.136.137:80======0
    dating.christiangays.com: datingcg==root==main==dating.christiangays.com==/home/datingcg/public_html==45.40.136.137:80==45.40.136.137:443====0

    This is not correct and should not work with wp multisite.

    You should create parked domains (subdomains) under main site account (as I see you already created subdomain *.christiangays.com - this is not correct as well) and do all configuration there.

    So you should remove wildcard subdomain *.christiangays.com and create either parked wildcard subdomain or 2 needed parked subdomains (e.g dating and chat) - this will add needed 'alias' directive to apache virtual hosts config and will address requests of dating.christiangays.com and chat to
    christiangays.com multisite engine - currently server tries to access an empty folders (and you see index of /)

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.