Light API 0.18.0 is a public beta: a minor release such as 0.19.0 may still break. What that means for your module
Light
Developer guide

Troubleshooting

Symptoms, causes and fixes, and one entry per doctor rule.

Each entry gives the symptom, the cause and the fix, and names the doctor rule or command that finds it. Design system, section 14 keeps the full list of environment notes for this development setup.

Problems

A new plugin does nothing

  • Cause. Interceptors are compiled (creatuity/magento2-interceptors): each generated interceptor has its plugin chain baked in, and cache:clean doesn't touch it.
  • Fix. Delete generated/metadata/staticcache/*.php and the interceptors of the classes that should change, on the host and in the container. Both regenerate on the next request. Do the same for a controller whose constructor you changed.

A DI item vanished

  • Cause. Magento replaces a global argument with the area's argument instead of merging them. An item in etc/adminhtml/di.xml for a pool core declares globally wipes the global items in the admin, and the other way around. The role presets once disappeared this way.
  • Fix. Register in the pool's area (Light developer guide). Detected by wrong_area and two_areas.

A pack's wording doesn't show

  • Cause. The pack's CSV row has the same English key as a core row, and the core module loads after the pack. The same goes for a pack's keywords string or block argument.
  • Fix. Add the core module to the <sequence> of the pack's etc/module.xml, then bin/magento cache:flush. Delete pub/static/deployed_version.txt if JavaScript reads the phrase.

A phrase shows Magento's wording instead of yours

  • Cause. An installed language package translates the same English phrase. Magento loads language packages after every module CSV, so the package wins. community-engineering/language-nl_nl shows "Tax" as "BTW", for example.

  • Fix. Give your module an English phrase only it uses, then add the rows for it. In this repository docker exec -u www-data -w /var/www/html magerexlight-php-fpm-1 php tests/i18n/dictionary.php nl_NL --packs prints what the installed language packages translate. Neither the doctor nor the consistency test of core looks for this clash.

  • Fix, when you can't change the phrase. Some phrases come from a module you don't own, such as module-rma's "Reason", which the Dutch package shows as "Activiteit". Name the phrase in the pool prefer_phrases (an argument of Mrx\Light\Plugin\Translation\PreferModulePhrases, global area), keyed by locale, with the module whose i18n/<locale>.csv holds your row. Light then writes that row over the package's, everywhere the shop shows the phrase in that language. The row still has to exist in the module's CSV; a missing CSV file leaves the package's text and logs a warning, and a disabled module's item does nothing. A form-of-address variant and a theme CSV still beat the row. Core's own list, which Mrx_Returns extends with module-rma's phrases in its etc/di.xml:

    app/code/Mrx/Light/etc/di.xml
    <type name="Mrx\Light\Plugin\Translation\PreferModulePhrases">
        <arguments>
            <argument name="phrases" xsi:type="array">
                <item name="nl_NL" xsi:type="array">
                    <item name="status" xsi:type="array">
                        <item name="phrase" xsi:type="string">Status</item>
                        <item name="module" xsi:type="string">Mrx_Light</item>
                    </item>
                    <item name="customer_view" xsi:type="array">
                        <item name="phrase" xsi:type="string">Customer View</item>
                        <item name="module" xsi:type="string">Mrx_Light</item>
                    </item>
                    <item name="next_page" xsi:type="array">
                        <item name="phrase" xsi:type="string">Next page</item>
                        <item name="module" xsi:type="string">Mrx_Light</item>
                    </item>
                </item>
                <item name="de_DE" xsi:type="array">
                    <item name="returns" xsi:type="array">
                        <item name="phrase" xsi:type="string">Returns</item>
                        <item name="module" xsi:type="string">Mrx_Light</item>
                    </item>
                    <item name="product" xsi:type="array">
                        <item name="phrase" xsi:type="string">Product</item>
                        <item name="module" xsi:type="string">Mrx_Light</item>
                    </item>
                </item>
            </argument>
        </arguments>
    </type>

    Keep the list short: each item replaces the package's wording for the whole shop, on every screen that prints the phrase, including Magento's own. Run bin/magento cache:flush after the change.

A change doesn't show

The Cache menu of the top bar, which shows while a cache type waits for a refresh

  • Cause. A cache: config for di.xml, routes, ACL and system.xml, layout for layout files, mrx_light_badges for counts, and config for the theme list.
  • Fix. bin/magento cache:clean, after the container has your change (below). Templates, CSS and JS need no clean in developer mode.

CSS or JS is old

  • Cause. Static files are cached for a year under a versioned URL.
  • Fix. Hard-reload the browser, or bump pub/static/deployed_version.txt (no newline at the end of the file).

The container sees an old file

  • Cause. Files reach the container through Mutagen, a few seconds late.
  • Fix. Wait until docker exec magerexlight-php-fpm-1 grep -c '<new text>' /var/www/html/<file> prints 1 or more, then clean the cache. A clean before that caches the old config again.

A counter looks stale

  • Cause. A count stays fresh for its ttl (default 60 seconds) and is refreshed in the background after that; nothing dropped it when the work changed.
  • Fix. Call BadgeCacheInterface::invalidate('<nav item>') where your code changes what you count, in any area (A nav item with a counter). bin/magento cache:clean mrx_light_badges clears every count.

Counters load late

  • Cause. The cache type mrx_light_badges is disabled in Cache Management, so every page asks for every count in the background.
  • Fix. Enable it: bin/magento cache:enable mrx_light_badges.

A pattern-B compat module or a bridge doesn't appear

  • Cause. Its range guard left it unregistered: class_exists() found no ExtensionApi, or satisfies() said the Light API is outside its range.
  • Fix. bin/magento module:status <module> doesn't list it. Install a release for this Light API. Detected by api_constraint, whose line ends "its registration guard left it unregistered. Update or remove the package.", and pattern_b for a compat module without a proper guard.

A module's Light parts are gone, or a red banner says "Light API … hides"

  • Cause. The compatibility gate hides a module whose declared range doesn't include this Light API (Versioning).
  • Fix. Follow the fix of the message in Compatibility gate messages, then run bin/magento cache:clean config layout. config alone leaves the cached layout stale. Detected by api_constraint, api_undeclared.

A storefront change of a -hyva module doesn't show

  • Cause. The -hyva module is disabled, its range guard left it unregistered, or app/etc/hyva-themes.json doesn't list it.
  • Fix. Enable it, check its range, then bin/magento hyva:config:generate and the Tailwind build of your Hyvä theme. Detected by hyva_in_core when the Hyvä code sits in a core module instead (Hyvä code in a -hyva module).

A shared page shows the wrong image, no image or a card without a title

  • Cause. One of five. The page's kind is other because your layout file doesn't set the argument kind on mrx.light.open_graph (or sets one that doesn't match ^[a-z][a-z0-9_]{0,31}$), and a card of that kind has no title. Your source sits in etc/adminhtml/di.xml, and the pools are global. A source threw and is skipped: the log has Light share image source "<code>" failed. The PHP has no GD with FreeType, so the card sources are skipped without a log line. Or your renderer's answer isn't a JPEG or PNG of exactly 1200 × 630 pixels and at most 5 MB, so the card answers 404 and the log has a warning.
  • Fix. Set the kind in your frontend handle, register the items in etc/di.xml as \Proxy, read the log, and check php -m for gd. After a change, bin/magento cache:clean config layout full_page: the page cache keeps the old og:image. A platform that already fetched an old card keeps it until the card's URL changes, so raise your renderer's version() after a change (A share image for your page). Detected by wrong_area for the second cause.

Every admin page fails after a Light major, with "must be compatible"

  • Cause. A module has Light PHP and no range guard, so its class that implements a changed Light interface still loads. The gate can't hide a class that doesn't compile.
  • Fix. Add the range guard to its registration.php. Detected by api_constraint "no range guard", in the doctor and in the setup:upgrade output, throughout the major before.

A stock screen keeps jumping back to Light

  • Cause. In simple mode the route map sends a stock screen to its Light page. A link to the stock screen without mrx_stock=1 gets redirected.
  • Fix. Build the link with AdvancedUrlInterface::get(), which adds mrx_stock=1 and keeps the stock screen open until the admin opens a Light page (The advanced view, the route map and header actions).

Light keeps sending you to the two-factor screen

  • Cause. Magento_TwoFactorAuth is on, and a module that switches the second factor off, such as MarkShust_DisableTwoFactorAuth, is installed. Such a module skips Magento's two-factor check without granting the two-factor session. Stock pages open, because the check they need never runs. Light asks Magento_TwoFactorAuth itself whether the session is granted, gets no, and sends every Light page to the two-factor screen, tfa/tfa/index. bin/magento mrx:light:doctor warns about it with tfa_bypass.
  • Fix. Either let the bypass grant the session: a plugin that calls Magento\TwoFactorAuth\Api\TfaSessionInterface::grantAccess() where it skips the check. Or, on a development machine, switch the two-factor module off instead of bypassing it: bin/magento module:disable Magento_TwoFactorAuth (on Magento, together with Magento_AdminAdobeImsTwoFactorAuth, which depends on it), then bin/magento setup:upgrade. Light opens without a second factor when the module is off. Neither belongs on a live shop: keep the second factor there.
  • Not this case. Signing in with an Adobe ID (Magento_AdminAdobeIms with adobe_ims/integration/admin_enabled on) skips Magento's second factor by design, and Light follows Magento: it opens after the Adobe ID sign-in. The doctor only notes it, with tfa_adobe_ims.

CSP errors on an admin page

  • Cause. An inline <script>, an on*= attribute or a javascript: URL in a template.
  • Fix. Start your JS with x-magento-init or data-mage-init, or a form hook; a script that must be inline goes through SecureHtmlRenderer::renderTag(), and external hosts in etc/csp_whitelist.xml. Detected by inline_script.

Emails still look like Luma

  • Cause. One of three. The shop keeps its own emails (Settings > Emails & documents, "Your emails and documents"; Customers still get the old emails), so Magento's own header, footer and styles load. Or design/email/header_template or footer_template holds a number, a template saved in Marketing > Email Templates, which wins over Light's. Or, on a development machine, the generated interceptor of Magento\Email\Model\Template was built before Light's plugin existed, so the plugin never runs.
  • Fix. Choose Light's emails; set Header Template and Footer Template in Content > Design > Configuration back to the default; or delete generated/code/Magento/Email/Model/Template/Interceptor.php and generated/metadata/staticcache/*_compiled_plugins.php, on the host and in the container, then bin/magento cache:flush (A new plugin does nothing). In production mode, setup:di:compile builds the interceptor. Detected by email_shell_config for the second cause.

Customers still get the old emails

  • Cause. Installing or updating Light never switches a shop's emails or PDFs. Until the merchant chooses Light's on Settings > Emails & documents, mrx_documents/choice/emails and mrx_documents/choice/pdfs are 0 ("keep"), and the shop sends Magento's bodies, its own templates and its own PDFs. Light's own emails (order canceled, shipping update, invites; Local pickup on a shop without MSI's store pickup modules) go out in Light's look either way. Or a template the owner saved in Marketing > Email Templates, or another module's PDFs, wins in both states.
  • Fix. Open Settings > Emails & documents, read the first card, choose "Use Light's emails" and "Use Light's PDFs" and save. The card names the saved templates and the modules that hook the same documents. To read the state from the shell: bin/magento config:show mrx_documents/choice/emails and mrx_documents/choice/pdfs (1 is Light's); a shop that updated from an earlier release was recorded by the data patch RecordDocumentsInUse and shows the state it was in. The step "Choose your emails and documents" on Home stays open until the first save. After a save, new emails and PDFs follow the choice; what the shop already sent stays as it is.

An email shows __MRX_ACCENT__

  • Cause. A token of the email CSS reached the mail unswapped. Most often a copy of email.css or email-inline.css deployed to pub/static before an upgrade, which wins over the module's file. On a development machine it can also be an interceptor of Magento\Email\Model\Template\Css\Processor built before Light's plugin existed.
  • Fix. Run bin/magento setup:static-content:deploy (in developer mode, delete the stale copy under pub/static/frontend/<theme>/<locale>/Mrx_Documents/css), then delete generated/code/Magento/Email/Model/Template/Css/Processor/Interceptor.php if it is old and bin/magento cache:flush. Detected by email_css.

Edited texts don't show in storefront or cron mails

  • Cause. A module registered its emails items in etc/adminhtml/di.xml. The pool is global: Magento replaces a global argument with the area's, so the items exist in the admin only, and the mails sent from the storefront, cron and the REST API never see the texts the owner saved in Settings > Customer emails.
  • Fix. Move the items to etc/di.xml. Detected by wrong_area.

PDFs use a fallback font

  • Cause. dompdf reads TrueType only. A WOFF2 file in a @font-face falls back to DejaVu Sans without a warning, and so does a weight the CSS never declared.
  • Fix. Ship the font as TTF and declare one @font-face per weight the CSS uses (Your module's document). Light's own Inter comes with four weights, 400, 500, 600 and 700.

PDFs fail after an upgrade

  • Cause. The font cache in var/mrx_documents/fonts belongs to root, because a PDF was printed or a command run from a root shell. dompdf rewrites a file there for every new font, and the PHP-FPM user can't.
  • Fix. Give the folder to the PHP-FPM user: chown -R www-data: var/mrx_documents, with the user your shop's PHP-FPM runs as. Run Magento commands as that user.

A PDF misses what a module's plugin added

  • Cause. While the shop uses Light's PDFs, Light prints invoices, credit memos and packing slips from its own templates. A plugin on the stock drawing code, such as insertOrder(), _drawItem() or an item renderer from pdf.xml, never runs, and nothing reports an error.
  • Fix. Move what the plugin added into an item line or a document type of your own (Plugins on the stock PDF classes). Detected by pdf_inner_plugin.

The accountant ZIP has no PDFs

  • Cause. The period holds more than 300 invoices and credit memos, so the ZIP keeps the CSV files and leaves the PDFs out. dompdf can't render more inside one request, and the export screen says so under the count.
  • Fix. Choose a shorter period, a month or a quarter, and export again. The limit is ZipExport::MAX_PDF_DOCUMENTS.
  • Cause. The invite is Magento's "Forgot your password?" link, so it lives as long as admin/security/password_reset_link_expiration_period says, 2 hours by default.
  • Fix. Open the user in Settings > Users and choose "Send invite again". It makes a new link and mails it. If the mail fails, the screen shows the link to send yourself.

Why setup:di:compile isn't run locally

The development container runs from generated code that developer mode builds on demand. setup:di:compile would replace it and break the running shop, so the pattern-B compile check runs in its own container (Testing).

Two sets of og: tags

  • Symptom. On Mage-OS 4.0, the page source of a product, category or CMS page has two og:title or two og:image tags, and a platform shares whichever it reads first.
  • Cause. Both Mage-OS SEO and Light's mrx.light.open_graph print the tags. Light stands aside only on catalog_product_view, catalog_category_view and cms_page_view while mageos_seo_general/og_tags/enabled is on for the store view. A module of yours that writes og: tags in one of those handles prints the second set, and so does a page cached before the setting changed.
  • Fix. Remove your own tags from those three handles and give your image through the share_image_sources pool (With Mage-OS SEO). Check the setting at the store view that shows the problem, then bin/magento cache:clean config layout full_page.

The product shares a cropped photo on Mage-OS 4.0

  • Symptom. A product that has a Share image still shares Mage-OS SEO's cropped product photo, and the page's og:image has no og:image:width or og:image:height from Light.
  • Cause. Mage-OS SEO prints the tags, and the bridge that hands it Light's image, Mrx_SeoMageos, is not enabled.
  • Fix. Enable it: bin/magento module:enable Mrx_SeoMageos, setup:upgrade, then cache:clean config full_page. If it is enabled, check mageos_seo_general/og_tags/enabled per store view: with the setting off for that store view Light's own block prints the tags instead.

Doctor rules

bin/magento mrx:light:doctor judges Light and the modules that extend it, and exits 1 on any error about one of them. --module=<name> limits it to one module.

A module counts as extending Light when any of these holds:

  • its name starts with Mrx_ or MageRex_;
  • it adds to a Light pool (a row in a pool of Extension targets);
  • its layout uses an mrx.* name;
  • it owns a light/* route;
  • it loads after a Light core module through <sequence>;
  • its composer.json declares extra.mrx-light-api;
  • it names a Light core class in its PHP, templates or XML, so a lone <plugin> or <preference> on a Light class counts without a <sequence>.

Its rules also read other modules' code, such as mail templates or a composer.json under app/code. Findings about a module that doesn't extend Light are not counted: the report ends with one summary line, <n> findings about <m> modules that don't extend Light, not counted. Run with --all to list them. --all (or --module with that module's name) lists them as info, and JSON carries them under other. They never make the doctor exit 1, so an agency shop's own modules can't fail an install check on code Light can't change.

unknown_key (error)

A key the pool doesn't read, often a typo. Light ignores it. Fix: use a key from Extension targets.

wrong_area (error)

An item registered in another area than the pool's. Fix: move it to the pool's area.

two_areas (error)

A module registers the same pool in two areas, so one replaces the other. Fix: keep it in the pool's area.

parse_error (warning)

A di.xml that doesn't parse. The doctor skips the file. Fix: make it valid XML.

light_collision (error)

Two modules answer the same light/<controller>/<action>, and the router reaches only one; often a bridge left installed next to a module with the same Light pages built in. Fix: rename your controller folder, or remove the bridge.

require_range (error)

The installed version of the module behind your bridge is outside the range your composer.json requires. It skips dev-* versions. Fix: test and widen the range (Versioning).

unknown_resource (error)

An ACL id that isn't in the tree. It hides the item from staff only, because full-access roles are allowed everything. Fix: use an id from an acl.xml.

unknown_container (error)

A referenceContainer whose container doesn't exist, so Magento drops the block. Fix: use a container from the reference.

unknown_reference (error)

An item that points at a code nobody registered. The kind, in brackets at the start of the message, says what it points at: parent (a nav item's parent), target (a nav item with neither route nor url), item (a claim's nav_key or a counter's nav item), badge (the nav item a to-do's or an app's badge, or a nav_badges key, names), section (a Settings card's group, or a config_sections section that no system.xml declares), role_area (resources added to a role area no module declares), form (a form_extensions form code) or page (a header_actions page no Light route serves). A nav item key counts when a nav_items entry declares it or a provider in nav_providers names it with #[ProvidesNavItems]. Fix: correct the code, sequence the module that declares it, or name the key on the provider that returns it (A nav item with a counter).

private_api (error, or warning)

Your module names a Light class that isn't @api. It is an error when your module declares extra.mrx-light-api, a warning otherwise. A -hyva module may name its one base module's classes. Fix: use the @api surface (API reference).

deprecated_use (warning)

Your module uses a deprecated @api member. Fix: move to the replacement the tag names (Upgrading).

api_constraint (error)

Your module is out of range or skipped, its range guard or require on mrx/module-light holds another range than extra.mrx-light-api, or it has Light PHP without a range guard. Fix: see Compatibility gate messages.

api_undeclared (warning during 0.x, error from 1.0.0)

Your module contributes to or uses Light without extra.mrx-light-api. Fix: add the range.

api_range_form (warning)

A range that isn't ^X.Y parts joined by ||. Fix: declare ^0.18 during the beta, or parts such as ^1.0 || ^2.0 after 1.0.0.

mixed_layout (warning)

A layout file off the Light handles references an mrx.* container, so the gate would drop its other changes too. Fix: move the Light references into a light_* or mrx_* layout file.

hyva_in_core (error)

A core module names Hyvä. Fix: move the code to the module's -hyva module (Hyvä code in a -hyva module).

country_pack (warning)

The store is based in a country that has a Light country pack, and the pack isn't enabled. The message reads "Your store is based in NL, and mrx/module-country-nl isn't enabled, so Light has no tax setup, business ID checks, carriers or legal page drafts for NL." Core then runs on its neutral defaults. Fix: install the pack (mrx/module-country-nl for the Netherlands, or magerex/distribution-nl for a whole Dutch shop) and enable it.

product_kind_pack (warning)

The shop has products of a type that has a Light pack, and the pack isn't enabled. The message reads "Your shop has 3 bundles and Mrx_ProductBundles isn't enabled. They open read-only in Light." Light opens those products read-only with a link to the advanced view, and offers no way to make a new one. Digital downloads read differently, because they stay editable without their pack: "Your shop has 2 digital downloads and Mrx_ProductDownloads isn't enabled. Their price and stock stay editable in Light; their files can only be changed in the advanced view." The rule skips a type Magento doesn't register, because a shop without Magento's bundle, grouped or downloadable module can't have such products. Fix: install and enable the pack (mrx/module-product-bundles for bundles, mrx/module-product-group-pages for group pages, mrx/module-product-downloads for digital downloads, or magerex/distribution-nl for all three), or leave it off on purpose and ignore the warning (Bundles and group pages, Digital downloads).

product_kind_type (error)

A product_kinds item names no type_id, claims a product type Magento doesn't register, or claims a type another kind already claims. The message names the kind and the module whose row set the field. Fix: correct the type id (the message suggests the nearest one), or give the type to one kind (Add a kind of product).

draft_product_type (error)

A draft_product_types item has a provider that isn't a class implementing Mrx\Orders\Api\DraftProductTypeInterface, no type_id, a type Magento doesn't register, a type Orders handles itself (simple, virtual or configurable), or a type another item serves too. An item whose module is off is skipped. Fix: register one provider per type, as a \Proxy object item (Draft orders for a product type).

pattern_b (error)

A <Base>LightCompat module is registered, and its base module has Light PHP, an object item or preference naming a Light type, the compat folder inside its path, or a compat registration.php without the range guard or with another range than the root composer.json. Fix: follow the pattern-B rules (Getting started).

inline_script (warning)

A template with an executable inline <script>, an on*= attribute or a javascript: URL. Fix: see "CSP errors" above.

Two nav items under one parent share a sort_order, so module load order decides their order. Fix: pick another sort_order.

Two nav items share a keyboard shortcut. Fix: pick another shortcut, or none.

app_category (warning)

An app descriptor names a category that doesn't exist, so Apps files the app by its menu instead. Fix: use a core category (An app, its category and pins).

missing_module (warning)

An item's module names a module that isn't installed, so the item never shows. Fix: correct the name, or drop the item.

override_order (warning)

Your change to another module's item depends on module load order: your module.xml doesn't sequence the declaring module. Fix: add the <sequence> (Changing Light for one shop).

override_gate (warning)

Your change to another module's item sets module, which replaces the declaring module's gate. Fix: remove module from the change.

unknown_icon (warning)

An icon name Light doesn't know; it would draw the "info" icon. Fix: use a registered icon, or register yours (Your own list and detail pages).

schema_field (error)

A settings page names a field in simple, advanced, labels or notes that the section doesn't have, or an advanced entry that is already in simple, holds no value, stores a list or is past the sixth row. Fix: use the <group>/<field> path from your system.xml, and list a field once, in simple or in advanced.

validate_class (warning)

A system.xml field's validate class that the Light settings page can't run. Fix: move the check to the page's validator (A settings page from your system.xml).

acl_unreachable (warning)

Your module adds Light screens, but no role area reaches its resources, so staff never see them. Fix: add your resource to an area (Users and permissions).

email_shell (warning)

A frontend HTML email of your module doesn't include the email header or footer, so it goes out without the shop's logo, footer and styles. Fix: start the body with {{template config_path="design/email/header_template"}} and end it with the footer include (Your module's email and document).

email_inline_style (warning)

An email body has more than 3 style attributes, which the owner's format can't restyle. Fix: use the email classes (Your module's email and document).

email_shell_config (warning, or error)

A warning when a store's email header or footer is a template saved in Marketing > Email Templates: it wins over Light's, so the look applies only partly. An error when it names a template id that is no longer registered, so every mail fails with "Email template is not defined". Fix: set Header Template and Footer Template in Content > Design > Configuration back to the default, or delete the saved template.

email_css (error)

Mrx_Documents' email CSS is missing, or a deployed copy in pub/static is older than the module's file, so mails go out without their look or with the old one. Fix: run setup:static-content:deploy; in developer mode, delete the stale copy.

pdf_inner_plugin (warning)

A module plugs or replaces a class of Magento\Sales\Model\Order\Pdf that draws the stock invoice or credit memo PDF (insertOrder(), _drawItem(), an item renderer from pdf.xml), or plugs getPdf() itself. Light prints those PDFs from its own templates while the shop uses Light's PDFs, so the plugin doesn't run and what it added is missing, with no error. Fix: move it into an item line or a document type of your own (Your module's document).

tfa_bypass (warning)

Magento_TwoFactorAuth is enabled, and so is a module known to skip its check: MarkShust_DisableTwoFactorAuth or WolfSellers_EnableDisableTfa. Stock pages open, but every Light page sends the admin to the two-factor screen. A warning, so the doctor still exits 0. Fix: see Light keeps sending you to the two-factor screen.

tfa_adobe_ims (note)

Magento_TwoFactorAuth and Magento_AdminAdobeImsTwoFactorAuth are on, and admins sign in with an Adobe ID (adobe_ims/integration/admin_enabled). Magento then skips its own second factor, since the Adobe ID brings its own, and never grants the two-factor session; Light follows Magento and opens after the Adobe ID sign-in without the two-factor screen. The finding is about a Magento module, so the doctor lists it with the findings it doesn't count (--all, or --module=Magento_AdminAdobeImsTwoFactorAuth) and still exits 0 (in --format=json it sits under other with level warning). Nothing to fix.

store_override (warning)

A store view has a value of its own for a setting Light shows per channel, set in the advanced view (or written by an import or a data patch). It wins on the storefront for that language, while the settings page shows the channel's value. One warning per row, naming the path and the store view (code, id, language and channel). Texts Light keeps per language itself, such as payment titles or the locale, are not listed. A warning, so the doctor still exits 0. The message says where to remove it: on the settings page that shows the setting (Settings > Checkout), or, for a setting of a payment provider's own section (Mollie, Pay.), that provider's settings on Settings > Payments or the advanced view, or, for a setting no Light page shows (a theme's setting, the compare link, the wishlist), only in the advanced view: Stores > Configuration at that store view, or Content > Design > Configuration for a logo. Fix: remove the value with "Remove the Deutsch value" (the language it names) under the field, or, for a logo, browser icon or email logo, with "Use this logo for Deutsch too" (or "icon", "email logo") under the file, or in the advanced view at that store view (Store-view values from the advanced view). Keep it when that language really needs its own value; Light doesn't edit it. The rows that switch off the hreflang links (Settings > Channels, "Switch off language links") are Light's own and are not listed.

Settings > Legal pages links a page for a language, but a store view of that language can't open it: the page isn't visible there ("Visible on"), or it no longer exists. That store view reads the link like the others of its language, so its footer leaves the page out while Settings > Legal pages shows it as linked. Typical after a second channel: its Dutch store view reads the Dutch link, and the page was made visible for the first channel's Dutch store view only. One warning per link, naming the page, the legal page type, the language and each store view (code, id, language and channel). A warning, so the doctor still exits 0. Fix: add the store view under "Visible on" on the page. When the page is visible in another store view of that language, saving Settings > Legal pages under All channels adds the rest too, unless the admin who saves may not save pages (Magento_Cms::save) or the page can't be saved in that store view, such as when another page uses its URL key there. A page of another language, or one that is gone: link another page on Settings > Legal pages.

hreflang_shared_url (warning)

Mage-OS SEO is on and writes hreflang links for two or more languages of one channel that share a base URL (the languages differ by a store code or a cookie, not by a path or a domain). The links lead to the same page or to pages that don't exist, and search engines may ignore all of them. One warning per channel and web address, naming the language store views (code, id, name). Store views listed under Exclude Store Views in Mage-OS SEO don't count. A warning, so the doctor still exits 0. Fix: on Settings > Channels, choose "Switch off language links" on the channel's card, or list those store views under Exclude Store Views in Stores > Configuration > MageOS SEO > SEO > Hreflang (Multistore). Or give each language its own path or domain.

seo_rebuild_job (warning)

Mage-OS SEO rebuilds its sitemaps and llms files in the queue consumer mageosSeoFeedRegenerate, and that consumer only runs when cron runs the consumers group. This rule says why it would not. It is silent without Mage-OS SEO. It checks, in this order, and reports the first cause it finds:

  1. cron/enabled is 0 in app/etc/env.php. Set it to 1 and run bin/magento cron:install.
  2. Magento_MessageQueue is disabled. Enable it. (Mage-OS SEO requires it, so this rarely shows.)
  3. cron_consumers_runner/cron_run is false, so Magento's cron doesn't start the consumers. When a process manager such as supervisor or systemd runs queue:consumers:start mageosSeoFeedRegenerate that is fine, so this one is a note for supervisor setups: the doctor lists it with the findings it doesn't count (--all, or --module=Magento_MessageQueue) and still exits 0. Without a process manager the files are never rebuilt after changes. If no cron job finished in the last 30 minutes, the rule reports cause 4 instead.
  4. The cron job consumers_runner failed lately. The message names its error; fix it on the server and try bin/magento cron:run in a terminal.
  5. Cron is not running at all: none of the jobs that run on every shop finished in the last 30 minutes. Check that the crontab of the web user has the cron:run line (bin/magento cron:install).
  6. Cron runs, but the crontab starts cron:run with --group for other groups and not for consumers. bin/magento cron:install puts the full entry back.
  7. cron_consumers_runner/consumers lists consumers but not mageosSeoFeedRegenerate. Add it to the list.

The rule reads the cron_schedule history of the last 30 minutes. Magento deletes finished jobs after history_success_lifetime (60 minutes by default), so a shop that lowers it far below 30 can show cause 5 or 6 while cron is fine. Known limits: the rule doesn't check that Mage-OS SEO's connection is configured, and it doesn't tell when two store views of the same locale write the same files. It reads neither the queue tables (a shop on AMQP keeps its messages elsewhere) nor Mage-OS SEO's own pending flags. When another change asks for the same rebuild more than an hour later, Mage-OS SEO also shows its own system message in the admin. Fix: the line of the cause.

mago_on_ai_base (warning)

Mago, the admin assistant of Mage-OS 4.0 (MagoAssistant_Mago), is enabled, but its bridge to Disrex AI (Disrex_AiMago) is not. The chat then runs on mage-os/module-ai-base's own key and model: its calls stay out of the monthly limit on Settings > AI, its costs out of "This month", and the AI fixture of a test never answers it. The message is "The admin assistant does not use your AI settings. Install disrex/module-ai-mago." A warning, so the doctor still exits 0. Fix: composer require disrex/module-ai-mago, then bin/magento module:enable Disrex_AiMago and bin/magento setup:upgrade. A shop on magerex/distribution-nl 0.16.0 or later has it already. The bridge registers only where Mago, ai-base and Disrex_Ai 1.10 or later exist, so on a shop without Mago it does nothing.

locations_reservation_backlog (warning)

The stock reservation table (inventory_reservation) holds 25,000 rows or more. Magento deletes the reservations of finished orders every night, and while that does not happen the stock lists, their counts and Home get slower. The finding names the likely cause; it is silent without Mrx_Locations and Multi-Source Inventory's reservations.

  1. The nightly cleanup failed lately. Fix the error it names on the server.
  2. Cron is switched off or not running on the server, so the cleanup never runs. bin/magento cron:install puts the entry back.
  3. The oldest orders already add up to zero, but their entries are still there: the cleanup has not run yet or does not reach them.
  4. The oldest orders do not add up to zero: their reservations were never completed or compensated.

Fix: on the server, bin/magento inventory:reservation:list-inconsistencies shows what is left over, and bin/magento inventory:reservation:create-compensations closes the gaps. Light runs neither. A channel move is refused while one stock holds a million rows or more.

rule_failed (error)

A doctor rule itself threw. The message names the rule and the error. Fix: report it with the message; the other rules still ran.

Last updated on

On this page

ProblemsA new plugin does nothingA DI item vanishedA pack's wording doesn't showA phrase shows Magento's wording instead of yoursA change doesn't showCSS or JS is oldThe container sees an old fileA counter looks staleCounters load lateA pattern-B compat module or a bridge doesn't appearA module's Light parts are gone, or a red banner says "Light API … hides"A storefront change of a -hyva module doesn't showA shared page shows the wrong image, no image or a card without a titleEvery admin page fails after a Light major, with "must be compatible"A stock screen keeps jumping back to LightLight keeps sending you to the two-factor screenCSP errors on an admin pageEmails still look like LumaCustomers still get the old emailsAn email shows __MRX_ACCENT__Edited texts don't show in storefront or cron mailsPDFs use a fallback fontPDFs fail after an upgradeA PDF misses what a module's plugin addedThe accountant ZIP has no PDFsThe invite link expiredWhy setup:di:compile isn't run locallyTwo sets of og: tagsThe product shares a cropped photo on Mage-OS 4.0Doctor rulesunknown_key (error)wrong_area (error)two_areas (error)parse_error (warning)light_collision (error)require_range (error)unknown_resource (error)unknown_container (error)unknown_reference (error)private_api (error, or warning)deprecated_use (warning)api_constraint (error)api_undeclared (warning during 0.x, error from 1.0.0)api_range_form (warning)mixed_layout (warning)hyva_in_core (error)country_pack (warning)product_kind_pack (warning)product_kind_type (error)draft_product_type (error)pattern_b (error)inline_script (warning)nav_sort (warning)nav_shortcut (warning)app_category (warning)missing_module (warning)override_order (warning)override_gate (warning)unknown_icon (warning)schema_field (error)validate_class (warning)acl_unreachable (warning)email_shell (warning)email_inline_style (warning)email_shell_config (warning, or error)email_css (error)pdf_inner_plugin (warning)tfa_bypass (warning)tfa_adobe_ims (note)store_override (warning)legal_page_hidden (warning)hreflang_shared_url (warning)seo_rebuild_job (warning)mago_on_ai_base (warning)locations_reservation_backlog (warning)rule_failed (error)