Skip to content

Troubleshooting

Alan Paynter edited this page Aug 7, 2026 · 2 revisions

Troubleshooting

Article links return 404 after enabling Pretty URLs. Your host is not applying the .htaccess rewrite (mod_rewrite off, or a non-Apache server). Untick Pretty URLs in Settings — links fall back to the /?q= form, which works everywhere — and ask your host about mod_rewrite.

"This form has expired" when saving or logging in. Your session cookie went missing — usually a very long-idle tab or blocked cookies. Reload the page (a fresh form token comes with it) and try again.

An upload is rejected as too big. The limit is your host's PHP setting (upload_max_filesize), shown on the Media page. Many hosts let you raise it in the control panel; otherwise resize the image first.

Comments never appear. They are waiting for you — check the admin's Comments tab. If no form shows on a post at all, check both switches: the site-wide tick in Settings and the post's own Allow comments tick.

IndexNow pings don't show in Bing. Bing's dashboard lags hours behind, sometimes a day for new domains. If nothing appears after publishing across two days, your host may block outgoing requests from PHP — ask them, or turn the toggle off in good conscience; the sitemap still covers you.

wren.db downloads when visited. Your .htaccess is missing or ignored. Re-upload it from the release zip; on hosts that ignore .htaccess, move the database out of the web root and change the WREN_DB constant at the top of index.php to its new path.

A two-factor code is always refused. Almost always a clock problem: set your phone's date and time to update automatically, then try the current code. Remember also that a code already used cannot be reused — wait for the next one. Failing that, use a recovery code.

Lost your phone. Sign in with one of the eight recovery codes issued when you enabled two-factor; each works once. Then turn two-factor off and on again in Settings to pair a new device and receive a fresh set of codes.

Lost your phone and your recovery codes. You will need database access: open wren.db and set the users table's totp_secret column to an empty string, which disables two-factor for that account. See Two-Factor Authentication for the detail.

Forgotten admin password. There is no reset email. If your host offers a SQLite browser (some do, as phpLiteAdmin), open wren.db and replace the password value in the users table with a hash generated by password_hash('newpassword', PASSWORD_DEFAULT). Otherwise upload a one-line PHP file that performs that update, run it once, and delete it immediately — never leave recovery scripts on a server.

Something else. Open an issue at https://github.com/Wren-CMS/wren-cms/issues with your PHP version and what you expected versus what happened.

Clone this wiki locally