Licensing for sites hosted on Pantheon

Home Forums Calendar Products Events Calendar PRO Licensing for sites hosted on Pantheon

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1020023
    William
    Participant

    We’re hosting our sites on pantheon and it’s causing problems with licensing.

    The URLs that show up on our license keys page are the dynamic server names, not the real host names. We’re unable to control when and how these names may change and we don’t have a way of tying them back to a real host.

    They have this article that describes how to use the http host rather than servername.
    https://pantheon.io/docs/articles/sites/code/server_name-and-server_port/

    We purchased 3 licenses but we only have 2 live sites that are using the plugin. We have lots of development environments that may have eaten one of the licenses.

    Any help would be appreciated.

    #1020099
    Brian
    Keymaster

    Hi,

    Thanks for using our plugins. I can try to help out here.

    I have not run into this issue before.

    First the license key is only needed for automatic updates. The plugins will function without a license key.

    From that documentation you provide it looks like adding this to the wp-config.php file could resolve the issue:

    $_SERVER['SERVER_NAME'] = $_SERVER['HTTP_HOST'];

    Have you tried that?

    Let me know and we can go from here.

    Thanks

    #1020100
    Brian
    Keymaster

    I also found this from another tutorial and adding this instead of the above snippet to the wp-config.php file might work:

    // For non-www domains, remove leading www
    $site_server = preg_replace( '#^www\.#', '', $_SERVER['HTTP_HOST'] );

    // You're on your own for the yes-www version <span class="wp-smiley wp-emoji wp-emoji-smile" title=":-)">:-)</span>

    // Set URLs
    define( 'WP_HOME', 'http://'. $site_server );
    define( 'WP_SITEURL', 'http://'. $site_server );

    This is the guide I found it from.

    Tips for Hosting WordPress on Pantheon

    Cheers

    #1075258
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Licensing for sites hosted on Pantheon’ is closed to new replies.