While troubleshooting the HolidayLandmark forum, I could see reCAPTCHA and Google sign-in in Edge and Firefox on the same laptop. In Chrome, the controls were missing. The useful clue came from Chrome DevTools:
Uncaught ReferenceError: XSLTProcessor is not defined
POST /forum/login 422 (Unprocessable Content)
This guide shows how to fix the JavaScript error on a Flarum 1.x forum and how to continue debugging if the login request still returns 422.
Why this happens in Chrome
XSLTProcessor is a browser feature for transforming XML into another format, such as HTML. Flarum uses XSLT to render formatted posts. Chrome 158 removed its built-in XSLT support. When older forum JavaScript tries to use the missing feature, it throws an error during startup. That can interrupt the code that sets up other parts of the forum. Edge and Firefox may behave differently depending on the installed version and whether the feature is available. Chrome’s XSLT removal guide · Flarum’s XSLT compatibility notes
A CAPTCHA that works on the same laptop in another browser, combined with this console error, gives you a concrete reason to investigate the forum’s Chrome compatibility before changing your network settings. The console error alone does not show whether Chrome’s startup error caused the missing authentication controls or the 422 login response.
Step 1 — Check the installed Flarum version
SSH into the forum server and open the directory that contains both composer.json and the flarum CLI file. Run:
composer show flarum/core
Check the versions line. Flarum 1.8.17 introduced an XSLT polyfill (a script that supplies the missing feature). Flarum 1.8.22 also fixed how the polyfill is published to S3 and other object stores. For a Flarum 1.x installation, use 1.8.22 or a newer compatible 1.x patch. If you already have a compatible release, go to Step 3. Flarum compatibility notes · Flarum 1.8.22 release notes
Step 2 — Update Flarum with Composer
Back up the forum files and database. Preview a targeted update from the forum directory:
composer update flarum/core --with-all-dependencies --dry-run
--with-all-dependencies allows Composer to update related packages when needed. --dry-run shows the proposed changes before they are applied. Check that the proposed core version stays on 1.x and is at least 1.8.22.
If Composer cannot select that version, check which package or version constraint is blocking it:
composer prohibits flarum/core 1.8.22
Review any incompatible extensions before applying the update. Once the preview looks right, run these commands in order. If a command fails, resolve its error before continuing.
composer update flarum/core --with-all-dependencies
php flarum migrate
php flarum cache:clear
The first command updates the packages, the second applies any required database changes, and the third clears Flarum’s cached data. Use the PHP CLI version your forum expects. Flarum 1.x update documentation
Step 3 — Verify the fix in Chrome
- Open the forum in Chrome and press F12 → Network.
- Reload with Ctrl + Shift + R. In the Network filter box, search for
xslt-polyfill. - If an asset fails to load, click the request and inspect its status and response headers. A 404 points to a missing file or incorrect asset URL. A JavaScript MIME-type error points to how the CDN or asset server serves the file.
- If you use S3 or another object store and hit the issue described in the 1.8.22 release notes, run
php flarum assets:publishafter updating. Then purge the CDN cache forassets/xslt-polyfill/*and reload. Flarum 1.8.22 release notes - Open Console and confirm that
XSLTProcessor is not definedis gone. Open Sign Up and check for the reCAPTCHA checkbox and Google sign-in wherever your forum normally shows them. Test Log In as well.
If the polyfill loads but the original error persists, search the deployed forum code for XSLTProcessor and identify which extension or script calls it. The console may highlight a bundled or source-mapped line that gives little context. Use the actual call to decide which component to update.
What if Flarum login still returns HTTP 422?
A 422 means the server received the login request and rejected the submission. To get the specific reason, open DevTools → Network → Fetch/XHR, select the failed login request, and click Response. If the response contains only a generic error page, check the forum logs for the same attempt. Share the error text from Response when asking for help. The Payload tab can expose the submitted password.
Once the browser error is gone, the results of the Sign Up and Log In tests tell you which issue remains. If the controls still fail to load, inspect their requests in Network. If the controls load but the forum returns 422, use the server response or logs to trace that rejection.
Top comments (0)