Guide · Last updated: 2026-11-28

Contao error tracking: bug reports and PHP errors with bugd.one

The bugd.one bundle for Contao 5.3, 5.7 and 6: report button, JavaScript errors, failed requests and PHP errors – configurable per website and CSP-friendly.

Language: Deutsch

Failed cron runs, e-mails that don't go out or exceptions in an extension end up in Contao's system log or in var/logs – where rarely anyone reads them in time. The bugd.one bundle reports these errors to your dashboard, identifies the affected package and lets visitors report problems themselves. Your theme, layout and templates stay untouched.

Prerequisites

  • Contao 5.3 LTS, 5.7 LTS or 6.0, PHP 8.1 or newer (Contao 6 itself needs PHP 8.4). Tested on Contao 5.3.54, 5.7.17 and 6.0.6 with PHP 8.4.
  • A bugd.one account: new accounts try all Pro features free for 7 days, no credit card. Then Pro (€9.90) or Team (€29.90) per month (incl. VAT). Without an active plan bugd.one accepts no new reports or crashes.
  • A project with its project key (bk_live_…) from Project → Settings, plus the server key (bk_server_…) for PHP errors.
  • The bundle mignuti/contao-bugdone (version 1.0.1): bugdone-contao.zip. The ZIP is a ready-made Composer package with a fixed version; the bundle is not on Packagist yet.

Step by step

Step 1: Install the bundle

With the Contao Manager: open Packages → Upload packages, choose the file bugdone-contao.zip and click Apply changes. The Contao Manager then updates the database.

With Composer (without the Manager): put the ZIP into contao-manager/packages/ (the folder the Contao Manager uses too) and add it as an artifact repository:

composer config repositories.artifacts artifact contao-manager/packages
composer require mignuti/contao-bugdone:1.0.1
vendor/bin/contao-console contao:migrate

contao:migrate creates the new fields on the website root. To update, put the new ZIP into the same folder (remove the old one) and run composer require mignuti/contao-bugdone:<new version>.

Step 2: Set up the website root

  1. Open Content → Pages.
  2. Edit the root page of your website (page type “Website root”, the page with the globe icon).
  3. Scroll to the bugd.one section and paste your project key (bk_live_…) into Project key.
  4. Leave Show the report button on and set Show the report button to to All visitors (or Logged-in members only for testing).
  5. Choose the page of your privacy policy under Privacy policy page.
  6. For JavaScript errors: tick Capture JavaScript errors, and Report failed requests if you want it.
  7. Click Save.
Contao: editing the website root, “bugd.one” section with project key, report button, offsets, privacy page and JavaScript errors
Contao, step 1: Content → Pages → edit the website root → “bugd.one”. Paste the project key, tick the features, save.

If you run several websites in one installation, repeat this on every website root – each website can use its own bugd.one project. If the button doesn't show up right away, clear the page cache (System → System maintenance → Purge data or vendor/bin/contao-console cache:clear).

Step 3: Turn on PHP errors (optional)

  1. Open System → Settings and scroll to the “bugd.one – PHP errors” section.
  2. Tick Report PHP errors to bugd.one.
  3. Paste your server key (bk_server_…) into Server key. Optionally Also report warnings – this can be noisy.
  4. Click Save.
Contao: System → Settings, section “bugd.one – PHP errors” with switch, server key, warnings and environment
Contao, step 2 (PHP errors only): System → Settings → “bugd.one – PHP errors”. Paste the server key, save.

PHP errors apply to the whole installation: all websites, the back end and the console. Contao stores the key in system/config/localconfig.php, not in the database. The form never shows it again: leave the field empty to keep the saved key; remove it with Delete the saved server key.

Better for Git deployments: set the key as an environment variable, e.g. in .env.local (don't commit it to the repository). It takes precedence over the field; Report PHP errors to bugd.one must still be ticked.

BUGDONE_SERVER_KEY=bk_server_…

Step 4: Test the connection

Run on the server:

vendor/bin/contao-console bugdone:test

The test error appears in bugd.one under Crashes (filter: development) and triggers no notifications. The command also tells you if the key is wrong, the plan is missing or no connection can be made, and it works even before capturing is switched on. If your bugd.one project keeps a list of allowed domains, add your website's domain there.

What is captured

SourceWhat is reportedNeeds
Report buttontext and screenshot from the visitor (password and payment fields blacked out)project key
Browseruncaught JavaScript errors with the last steps before them, including errors during page loadproject key
Requestsfailed requests to your own website (status 500 and above, network errors), e.g. Ajax formsproject key
PHPuncaught exceptions (no 404/403), fatal errors, errors in the console, optionally warningsserver key
Contao logeverything Contao and Symfony log at “error” or above, e.g. from extensions, cron or Messengerserver key

PHP errors are captured in the front end, back end and console. The bundle identifies the affected package (e.g. vendor/package, your own code under src/ as app). If the same error arrives in several ways, e.g. as an exception and as a log entry, it is reported only once. Sent are the error message and type, the stack trace with paths relative to the project and without arguments, the log channel and level, the page address without query string, the request type and the PHP and Contao versions. Contao's error pages and logging (var/logs, system log) keep running unchanged.

Crash detail with origin (app, environment, version, device, page) and key figures
Crash detail: origin at a glance, plus occurrences, affected users, first seen and release.

Settings at a glance

On the website root, bugd.one section:

FieldMeaning
Project keybk_live_…. Without a valid key the bundle outputs nothing on this website. The field rejects a server key.
Show the report buttonReport button on/off (default: on). Error tracking also works without the button.
Show the report button toAll visitors or Logged-in members only (front end login; for testing before going live).
Button style / Position / Primary colorLook of the button.
Bottom offset (px) / Side offset (px)Whole number 0–400, empty = 16 px. Only needed if another floating button sits in the same corner. Does not apply to the “Side tab” style.
Privacy policy pageThe page of your privacy policy. The form links it next to the consent. Please set it.
Capture JavaScript errorsCrash reporter on all pages of this website (default: off).
Report failed requestsOnly together with JavaScript errors: failed requests to your own website as crashes of their own.
EnvironmentAutomatic detects the environment (see below). Only production triggers e-mails, webhooks and chat messages.
ReleaseOptional; defaults to the Contao version.

Under System → Settings, “bugd.one – PHP errors” section: Report PHP errors to bugd.one, Server key, Delete the saved server key, Also report warnings and Environment (see step 3).

The crash reporter goes before </head>, the report form before </body> – only on front end pages, not in the back end, redirects, Ajax responses or downloads. The form's language follows the language of the page.

Environments and test systems

With Automatic, the bundle reports development when Contao runs in dev mode (APP_ENV=dev) or the website is opened under localhost, *.local, *.test or a private IP address, otherwise production. Reports from development and staging appear in the dashboard with a marker but trigger no e-mails, webhooks or chat messages.

Page speed

The crash reporter (about 9 KB compressed) loads with defer and preconnect and never blocks rendering. Errors that happen before it starts are buffered and reported afterwards. The report button loads only after the page has loaded. Measured with Fast 4G and a 4× slowed-down CPU: first content after 372 ms – with and without bugd.one. The output works with Contao's page cache; whether “Logged-in members only” applies is checked on every request. The server sends PHP errors only after the response has gone to the visitor, for at most 2 seconds; the same error at most every 5 minutes, at most 30 reports per 10 minutes.

Privacy

As the website operator you are the controller; bugd.one (Mignuti Media) processes the data on your behalf. Mention bugd.one in your privacy policy and conclude the data processing agreement.

  • Report button (only when a visitor submits): text, optional screenshot (password and payment fields blacked out), name and e-mail address only with consent, page address without parameters, browser and operating system, recent console errors and failed requests.
  • JavaScript errors (for all visitors, when enabled): error message, stack trace, page address without parameters, browser and operating system, environment and release.
  • PHP errors (from the server, when enabled): as described above. E-mail addresses, tokens, API keys and passwords in error messages are replaced before sending.
  • Not transmitted: data from your members and back end users (no ID, name or e-mail address), cookies, form input, IP addresses. The bundle sets no cookies and assigns no visitor IDs.

The data is stored with Cloudflare under EU jurisdiction.

Troubleshooting

  • The report button covers another button (chat, callback, cookie settings): on the website root, right below the position, raise the Bottom offset (px), e.g. to 90 – the button then sits above the other one. Or change the Side offset (px), or set the position to Bottom left. Empty = 16 px.
  • No button visible: is the project key on the right website root (the one of the website you're opening)? Does it start with bk_live_? Clear the page cache (System → System maintenance → Purge data or vendor/bin/contao-console cache:clear). Search the page source for widget.umd.js – the button loads shortly after the page has loaded.
  • Button only visible to some visitors: Show the report button to is set to Logged-in members only. Set it to All visitors for everyone.
  • “bugd.one” section missing on the website root: update the database (in the Contao Manager or with vendor/bin/contao-console contao:migrate) and clear the cache. The fields only exist for the “Website root” page type.
  • PHP errors don't arrive: run vendor/bin/contao-console bugdone:test. The command names a wrong key, a missing plan or a blocked connection. If BUGDONE_SERVER_KEY is set, the environment variable overrides the field. Also check that Report PHP errors to bugd.one is ticked and that var/bugdone/ is writable.
  • HTTP 403 `origin_not_allowed`: add your domain in bugd.one under Project → Settings → Allowed domains.
  • HTTP 403 `project_read_only`: the trial has ended; choose a plan.
  • Content Security Policy: with Contao's own CSP (on the website root, “Security” section) there is nothing to do. If the web server (Apache, nginx) sets the CSP, allow https://bugd.one there in script-src and connect-src (for images and voice messages under “My reports” also img-src and media-src) and provide a nonce or 'unsafe-inline' for the small inline scripts. Watch the browser console for CSP messages.

Going further

Frequently asked questions

Do I need the server key?
Only for PHP errors. The report button, JavaScript errors and failed requests run with the public project key (bk_live_…) on the website root. The server key (bk_server_…) is secret, belongs only under System → Settings or in the BUGDONE_SERVER_KEY environment variable and never appears in the page source.
Can several websites in one installation use different projects?
Yes. You set the project key, report button and JavaScript errors on each website root separately, so every website can have its own bugd.one project. PHP errors, on the other hand, apply to the whole installation and go to the project of the server key.
Does the bundle work with a strict Content Security Policy?
Yes. If Contao's own CSP is active on the website root, the bundle adds https://bugd.one itself and gives its inline scripts a nonce – tested with default-src 'self'; script-src 'self', without violations. No 'unsafe-inline' is required. If your web server sets the CSP, add https://bugd.one there yourself.
Are 404 and 403 pages reported?
No. “Page not found”, “access denied” and other HTTP errors below 500 are never sent, nor are redirects, maintenance mode, failed logins or deprecations.
Is data from my members transmitted?
No. No ID, name or e-mail address of members or back end users, no cookies, no form input and no IP addresses. Name and e-mail are only sent if a visitor enters them when reporting and gives consent.

Up and running in two minutes

Create an account, add a project, paste your key — all Pro features free for 7 days, no credit card required.

Try free for 7 days · Read the docs · All guides