Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Bruna a11n

    (@bruberries)

    Hi @planea,

    My site is an WPMU and Mailpoet is installed in second site which is a subdomain of the main site.
    That trouble with API key it’s blocking all transactional mails from my site. I’m using Email Log plugin to debug.

    I believe that’s the problem. If you’re using the same activation key on two different domains, you’ll get an error message.

    You’d need to subscribe to two separate sending plans and activate one key for each website.

    So one key for tienda.simbiosist-shirts.com and the other one for simbiosist-shirts.com.

    Please let us know if it works!

    Thank you!

    Thread Starter planea

    (@planea)

    I am only using the key on the subdomain. In fact, on the main Mailpoet site it is not even installed but I remembered that I did have an old key configured.
    I reinstalled it to delete the key and it wouldn’t let me, so I deleted it from the database in the wp_mailpoet_settings table in the mta and premium records.
    I hope this solved the problem.
    Thank you very much

    Plugin Author Bruna a11n

    (@bruberries)

    Hi @planea,

    If you believe the key is still associated with the other domain, you can also reset it by following these instructions.

    Thread Starter planea

    (@planea)

    Hi @bruberries,

    I remove key following instructions and activate again only on subdomain but I still have the same problem. Every two days I keep getting the message that my key is not valid.

    Plugin Author Bruna a11n

    (@bruberries)

    Hi @planea,

    This may happen when there’s something preventing the key check from running as expected, so our daily scheduled task to check the key fails.

    MailPoet uses the current site URL to check whether it is still associated with your API key.

    We typically see this issue on certain hosts, where a site has a domain name of example.com, but the hosting company triggers Cron to run on a different URL.

    This causes the site to interact with the Cron via example.com, but scheduled tasks were running on example.com.myhostingcompany.com or https://www.example.com (or something else). If your website is hosted with Dreamhost, for example, it’s known that they can dynamically change your site URL in wp-config.php, and it should affect the key check task.

    Sometimes we also see it in the form of site misconfiguration, where e.g. the database has one site URL, while in wp-config.php there’s another URL set via SITE_URL constant, two versions of your domain URL in the Settings, or any redirects in place.

    Can you please check the above with your hosting?

    Thread Starter planea

    (@planea)

    Our hosting didn’t change url. Maybe Domain mapping por WordPress Multiste? Public url site for visitors was https://tienda.simbiosist-shirts.com while subsite URL is https://simbiosist-shirts.com/tiendaonline/.

    Is Mailpoet fully compatible with WordPress Multisites and Domain Mapping?

    Hi there @planea,

    Thanks for getting back to us!

    MailPoet 3 does not officially support Multisite websites.

    You can add some additional logging to your site to check which URL is returned when API key check fails.

    – Go to Plugins > Plugin Editor > MailPoet 3 (New) > choose /lib/Services/Bridge/API.php file: https://d.pr/i/edMtLF

    – add the following code under both strings:
    public function checkMSSKey() {
    public function checkPremiumKey() {

    file_put_contents(
        ABSPATH . 'wp-content/mpdebug.log',
        date('Y-m-d H:i:s') . ' ' . __FUNCTION__  . ' ' . WPFunctions::get()->homeUrl() . "\n",
        FILE_APPEND
      );

    – logs will be stored in /wp-content/mpdebug.log.

    Note that logging will be removed if the MailPoet plugin is updated. Do not update your Mailpoet plugin if you want logging to stay on your site for some time.

    After you find which URL is returned, please check with your hosting where it can be set up.

    Hope it helps!

    Thread Starter planea

    (@planea)

    This is content for /wp-content/mpdebug.log.
    2021-09-27 22:16:03 checkPremiumKey https://tienda.simbiosist-shirts.com
    2021-09-28 00:58:30 checkMSSKey https://tienda.simbiosist-shirts.com

    But domain on my account was: simbiosist-shirts.com

    We are thinking on change to another paid solution.

    Thanks

    Hi there @planea,

    So it seems like you’re activating your MailPoet key on https://simbiosist-shirts.com/tiendaonline/ but after some time when the plugin re-validates your key, it sees https://tienda.simbiosist-shirts.com as your homeURL() and returns an error.

    Since we don’t know how your site is configured, please reach out to your hosting to check where https://tienda.simbiosist-shirts.com is still set up as homeURL().

    Hope it helps!

    Hi there @planea,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Your key is not valid’ is closed to new replies.