Please copy the content of sunrise.php ...From WHERE?

Hello,

WordPress Multisite on WordPress 3.8.1.
With WPMUDEV plugin: Multi-Domains installed today.

...at the top of the Network Settings > Multi-Domains page:

http://domain.com/wp-admin/network/settings.php?page=multi-domains

...it says:

Please copy the content of sunrise.php into /home/domain/public_html/wp-content/sunrise.php
and uncomment the SUNRISE setting in the /home/domain/public_html/wp-content/wp-config.php file.

Please uncomment the line
//define( 'SUNRISE', 'on' ); in the 0php file.

1. From this first part:

Please copy the content of sunrise.php into... sunrise.php

Copy sunrise.php content from WHERE?

2. This 0php "file" doesn't exist anywhere so I cannot uncomment anything:

Please uncomment the line
//define( 'SUNRISE', 'on' ); in the 0php file.

3. And what is this file supposed to be?

...in the 0php file.

The SUNRISE comment does not exist in the wp-config.php file. So I don't get what this settings page is trying to get me to do.

I believe once I know the answer to the first question I may be able to answer the other questions. But I don't know. The copy edict was not very clear. And a "broken" file name in the admin page doesn't help.

Ist is os frutsrturating to flollow sloppy istrstructionsns whennn thyey arere nott wel pllannned orr carfullly desingedd.

Completely confused Chris

  • Timothy Bowers

    Hey there.

    The SUNRISE comment does not exist in the wp-config.php file. So I don't get what this settings page is trying to get me to do.

    As you see the instructions are telling you to uncomment the constant (the define)

    So, if it doesn't exist then you'll need to add it in there.

    Please follow the usage tab here:

    https://premium.wpmudev.org/project/multi-domains/#usage

    I've requested our developer change the text in the plugin to something like:

    Please copy the sunrise.php from the plugin folder /FOLDER-PATH/wp-content/plugins/multi-domains/sunrise.php into /FOLDER-PATH/wp-content/sunrise.php

    And the second one to say:

    In your wp-config.php file please uncomment or add (if not available) the following code: define( 'SUNRISE', 'on' );

    Hopefully that should make it clearer.

    Thanks for letting us know about about this issue.

    Take care.

  • anotheropus

    Timothy!

    Thank you. I thought I was loosing it, or WordPress 3.8.1 jacked up the plugin, or (sadly) that the plugin UI was designed for PHP and WordPress professionals rather than end users.

    I really appreciate you helping clear this up for me in this instance and for all others in the future who will run into this.

    Many times I see that plugin developers write the user instructions for other plugin developer level, PHP professional people. It is a universal phenomenon that plugins are designed primarily for end users but the designers (very) often assume that WordPress end users are always three to five years into professional PHP development and that WordPress end users have spent their life in the codex and so of course understand every function, hook and filter available to WordPress.

    A wonderful trend in the WOrdPress plugin world could start at WPMUDEV ...start making the instruction sets on settings and options pages such that end users would know what they were supposed to do and how to do it without using an hour on Google and plugin help desks every time a plugin needed adjusting.

    Imagine how much more time plugin developers would have to do what they want if they weren't tied up with so many help desk tickets each day. Part of that solution is in the UI and UI instructions.

    And the next level would be to design plugins so robust that all the settings could be managed on the Settings page without also opening FTP and a PHP IDE just to get a plugin to work.

    I know, I know... crazy ideas :slight_smile:

    Imagine...

    Thank you for each element you shared in this answer. It is super helpful.

    Chris

    BTW I also know that things like this plugin are somewhat of and exception as they work with multisites... not that it should excuse good, intuitive and clearly instructive UI design.

  • anotheropus

    Timothy,

    Thank you and another related question.

    You referred me to:

    https://premium.wpmudev.org/project/multi-domains/#usage

    That page is helpful except this section is inaccurate:

    Creating Sites in the Admin

    Now when you go to Sites > Add New in your network admin, you’ll see a new option to select which domain you want to add the new site to.

    This is partially true but the screenshot and this description are missing a field above the domain name drop down. That field is labelled "Site Address."

    I attached a screenshot of this looks like in a multisite today (the image in the link is inaccurate).

    And if I select one of the domains I added to the multisite in that drop down they are all there. But the form will not save unless I add "www" or something above the drop down in that Site Address field.

    If I do not put anything into the Site Address I get:

    Missing or invalid site address.

    However when I add "www" in the Site Adress the domain name will only resolve using http://www.domainname.com even though I have a CNAME (alias) wildcard in the DNS records for www.

    And if I put the domain name in the field it creates a URL such as domainname.domainname.com

    If I use the domain name in the field and just allow the root domain for the site to be used then I get the new site at the subdomain--which defeats the purpose of having domain names for the subsites.

    I keep trying different approaches and deleting the sites but no matter what the only way I can get a domain name to resolve is using the http://www.domain.com approach.

    If I set it up with the www and then edit the site settings to remove it the domain name will only resolve to the master site URL.

    If I set it up and then edit the site settings to use the master URL as the site address and the domain name as the path then of course the site resolves to http://masterdomain.com/subsitedomain/

    Lastly (on the domain names), in the Multi-Domains settings page all of the subsite domains show Wildcard DNS Availability as unavailable--even though I set them to Public when I added them to the multisite. And even after I edit a domain name in this list and set it as Public they still come back as unavailable.

    I have the dedicated IP address set in the settings.

    In the Domain Mapping settings it says:

    If you are having problems with domain mapping you should try removing the following lines from your wp-config.php file:.

    I tried this several times WITH the four define lines in the wp-config.php and WITHOUT it (as advised in the settings).

    Do you have any pointers for this part of the steps missing from:

    https://premium.wpmudev.org/project/multi-domains/#usage

    Thank you,

    Chris

    This is so much work to just get domain names working on subsites... I'd be laughing if I wasn't crying so loud after so many hours now.

  • Jack Kitterhing

    Hi there Chris,

    Hope you're well today and sorry to see your having issues with getting this working.

    Could you send me the following please so I can check your install and get this working for you :slight_smile:

    - In the subject field add "Attn: Jack Kitterhing"
    - Link back to this thread
    - Include admin/network access
    - Include FTP
    - Include any relevant URLS for your site/Domains you want to map/use with multi-domains :slight_smile:

    On the contact form, select "I have a different question", this ensures it comes through and gets assigned to me.

    https://premium.wpmudev.org/contact/

    Thanks!

    Kind Regards
    Jack.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.