ConfigurePremium
Licence settings in CoullWorks Blog for Magento 2
The Licence Key field, the Validate button and every answer it gives, setting the key from the environment, the three licence states, and the locked admin page.
Updated 17 November 2026Back to the package pageBuy
This group holds the one thing the module needs before it will run on a public domain: the licence key. For what a licence covers, the price and what happens when it lapses, see Licence. This page is the setting itself.
Licence group#

The Licence group on a fresh install. The key is shown as a row of dots because the field hides what is stored; the note under it is the field's own help text.
The group has one field you edit, Licence Key, a Validate button that checks it, and one read-only row, Updates, that appears only once the paid update year has ended.
Licence Key#

The Licence Key field as it opens on a fresh install: dots shown by the obscured field, with the help text under it.
- Where it is: Stores, Configuration, CoullWorks, Blog, Licence. Setting path
coullworks_blog/license/key. - Scope: Default only (the admin shows it as global).
- Type: Obscured text. The value is stored encrypted with Magento's own encryption..
- Default: empty.
- Can also be set outside the admin: see Set the key from the environment.
- Allowed values and checks: No format check in the form. Paste the key exactly as it is in your CoullWorks account, with no spaces before or after.
- What it changes: The key is sent to the licensing server, with the domain of each store view, to find out whether that domain is covered. It is checked when you save this section and then every day by the cron job
coullworks_blog_license_check(04:17). Local development hosts need no key.
Validate#

The Licence group with the new Check the key row. Nothing is shown under the button until you press it.
- Where it is: Stores, Configuration, CoullWorks, Blog, Licence, Check the key. It is a button, not a setting: it stores nothing.
- What it does: asks the licensing server about the key as it is typed in the field, for the domains of the scope you are editing (the whole install at Default Config), and writes the answer next to the button in plain words with a colour. If the field shows only dots, it checks the key that is saved (or the one set in the environment).
- What it does not do: it does not save the key and it does not change the answers the blog already holds. The blog's own check runs when you press Save Config and then every day. The key is never shown in the answer.
- Who can press it: anyone who can open the Blog configuration section (the resource
CoullWorks_Blog::config). It works even when the blog admin screens are locked for want of a licence, because that is when you need it. It only answers a POST that carries the admin form key.

A made-up key checked against the real licensing server from a public domain.
| Colour | The answer | What it means |
|---|---|---|
| Green | Valid: this domain is covered. Updates run until the date. | The key is good for the domain, and the paid update year is still open. The date is left out if the server sends none. |
| Amber | Valid. Updates ended on the date; the blog keeps working. | The key is good. The paid year has ended, so you stop getting updates, but nothing is switched off. |
| Red | This key is not valid. | The licensing server does not know the key. Check it for a stray space or a missing character. |
| Red | This domain is not covered. | The key is real, but the licence has no free place for this domain. The server's own reason follows, for example that every production place is in use. Add the domain to your licence in your CoullWorks account. |
| Red | This licence has been revoked. | The licence was refunded or ended by CoullWorks. Contact support. |
| Amber | Local development host: no licence needed, the key was not checked. | Every domain in the scope is a local name such as .ddev.site, so the server was not asked. |
| Amber | Could not reach the licensing server: a domain that was valid keeps working. | No answer came back (network, timeout or a server error). Nothing was changed. Try again later. |
| Amber | Enter a key first. | The field is empty. A key you cleared is not the same as the saved key, so the saved one is not used. |

The same check on the sandbox's own .ddev.site address: the key is not sent anywhere.

An empty field.
Checking a domain that has a free place on your licence asks the server about that domain in the same way the daily check does, so the server may record the domain against your licence.
Set the key from the environment#
To keep the key out of the admin, set it in the environment or in a config file. Use the setting path coullworks_blog/license/key.
- Environment variable:
CONFIG__DEFAULT__COULLWORKS_BLOG__LICENSE__KEY. app/etc/env.phporapp/etc/config.php: undersystem,default,coullworks_blog,license,key.
The value is plain text. Magento does not encrypt values set this way, and the module reads it as it is. Magento shows the Licence Key field greyed out and locked, with dots in it. Press Validate: it checks the key that is in effect.

A key set in env.php. The field cannot be edited, and Validate still answers.
After you change env.php or config.php, run bin/magento app:config:import (or setup:upgrade): Magento refuses to load until it has read the change. The blog keeps its last answer for each domain until the next daily check, or until you press Flush Magento Cache for a domain that has no answer yet.
Updates. When the paid update year has ended, a read-only row appears under the key that reads "Updates ended on" followed by the date, and adds that the blog keeps working. It is a note, not a setting, and it does not appear while updates are still running.
The licensing server address is set outside the admin (system/default/coullworks_blog/license/url in env.php or config.php). There is no admin field for it.
How to enter a licence key#
- Open Stores, Configuration, CoullWorks, Blog at Default Config.
- In Licence, paste the key into Licence Key.
- Press Validate to see what the licensing server says about it before you save. Press Save Config. Nothing is shown when the check finishes: a failed check is not reported as an error on this page.
- Open System, Cache Management and press Flush Magento Cache. Flushing the cache also asks the licensing server about any domain that has no answer yet.
- Reload a Blog admin screen. If the domain is covered, the licence notice and the locked page are gone.
If a notice still names a domain, that domain is not on your licence. Add this domain to your licence in your CoullWorks account, then flush the cache again.
To remove a key, clear the field and save. The module forgets its stored answers and, on a public domain, switches off until a key is entered.
The licence states#
The module keeps the last answer it got for each domain and works out one of three states:
| State | Meaning | What you see |
|---|---|---|
| Licensed | The domain is covered and the last check was in the past 7 days | Nothing |
| Unverified | The domain was covered, but no check has succeeded for 7 days or more (for example the server cannot reach the licensing server) | A system message that the blog has not been able to check its licence for 7 days and that the blog keeps working |
| Unlicensed | No answer yet, or the answer says the domain is not covered | A critical system message, the locked admin page, and the storefront blog is off for that store view |
Local development hosts (localhost, 127.0.0.1, private addresses, and names ending .test, .local, .ddev.site and similar) are exempt. An IP address on the public internet is not.
The locked page#

The Content screen of a store with one unlicensed domain. The sandbox gave a French store view a public name with no licence for this shot, because local names are exempt.
When any store view's domain is unlicensed, every Blog admin screen shows this page instead of its own content. It is not an ACL permission you can grant or remove: the gate runs for every admin user on every Blog admin address, whatever their role.
The page says "This domain isn't licensed for CoullWorks Blog: add the key, or add" followed by the domain or domains, "to your licence in your CoullWorks account." Under it are two links: Open your CoullWorks account, and a link to Stores > Configuration > CoullWorks > Blog > Licence.
- Stores, Configuration is not part of the gate, so you can always reach the key field.
- The gate looks at every store view of the install. One unlicensed domain locks all the Blog admin screens, not only the screens of that store view.
- GraphQL and REST refuse requests for an unlicensed domain, and the storefront blog routes return 404 for it.
To clear it: enter or correct the key as above, or add the domain to your licence in your CoullWorks account, then flush the cache.







