Guide · Last updated: 2026-11-26

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

The bugd.one plugin for Shopware 6.5, 6.6 and 6.7: report button, JavaScript errors, failed shop requests and PHP errors from storefront, APIs and queue.

Language: Deutsch

A Shopware store has many places where things can go wrong without anybody noticing: a plugin that throws an exception in the Store API, a message-queue message that fails for good after all retries, a click on “Add to cart” that ends in 503. The bugd.one plugin reports these errors to your dashboard and lets customers report problems themselves.

Prerequisites

  • Shopware 6.5, 6.6 or 6.7 and PHP 8.1 or newer, as required by Shopware (6.7 needs PHP 8.2).
  • A bugd.one account: new accounts try all Pro features free for 7 days, no credit card required. After that the project needs 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 for your store with its project key (bk_live_…) from Project → Settings. It is public and appears in the page source. For PHP errors you also need the server key (bk_server_…); it is secret and belongs only in the “Server key” field.
  • The plugin: bugdone-shopware.zip.

Step by step

Step 1: Install the plugin

The easiest way is the administration: Extensions → My extensions → Upload extension, upload the ZIP (don't unpack it; the archive contains the BugdoneShopware/ folder), click Install on the bugd.one entry and activate the plugin.

On the console, copy the BugdoneShopware folder to custom/plugins/ and run:

bin/console plugin:refresh
bin/console plugin:install --activate BugdoneShopware
bin/console cache:clear

For deployments with custom/static-plugins, add the folder as a local Composer package:

composer config repositories.bugdone path custom/static-plugins/BugdoneShopware
composer require mignuti/shopware-bugdone:@dev
bin/console plugin:refresh
bin/console plugin:install --activate BugdoneShopware

Step 2: Set the project key and the report button

Open Extensions → My extensions → bugd.one → … → Configure. At the top you pick the sales channel; empty values are taken from “All Sales Channels”.

SettingMeaning
Project keybk_live_…, required. Without a valid key the plugin outputs nothing.
Show the report buttonDefault on.
Capture JavaScript errorsDefault off. Loads the crash reporter on every storefront page.
Also report failed shop requestsDefault on, only together with “Capture JavaScript errors”: server errors (5xx) and network errors of storefront requests to your store, e.g. cart or checkout.
EnvironmentAutomatic (APP_ENV), production, staging or development.
Button style, button position, primary colorHow the report button looks.
Link to your privacy policyFull https:// address; the form links it next to the consent. Please set it.
Release (optional)Defaults to the Shopware version, e.g. Shopware 6.6.10.4.

The form language follows the sales channel's domain. Save, then clear the cache under Settings → System → Caches & indexes → Clear caches (or bin/console cache:clear); otherwise the HTTP cache still serves the old page.

Step 3: Turn on PHP errors

Select “All Sales Channels” at the top and, in the PHP errors (server) section, turn on “Report PHP errors to bugd.one”. Enter the server key and save. PHP error capture only reads this setting, because errors in the administration, the message queue and the console belong to no sales channel.

Step 4: Test

Check PHP error capture on the console:

bin/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 or the plan is missing. Test the report button by sending a test report from the storefront (it appears under Bugs), and JavaScript errors with setTimeout(function () { throw new Error('bugd.one Test ' + Date.now()) }) in the browser console.

What is captured

In the browser (with “Capture JavaScript errors”): uncaught JavaScript errors with the last steps before them, scripts and stylesheets that fail to load, and – with the extra option – failed requests to your store with method, path (IDs as :id) and status. Requests to other domains don't count.

On the server (with the server key):

SourceWhat is reported
Storefront, Store API, Admin API, administrationexceptions that lead to a server error (5xx), via Symfony's kernel.exception, before Shopware renders the error page
Message queuemessages Symfony no longer retries (indexing, e-mails, scheduled tasks without their own error handling), in the CLI worker and the admin worker
Consoleexceptions from console commands, e.g. during deployments, without usage errors such as unknown commands

Each report contains the error message and type (with code and chained causes), the stack trace with paths relative to the project, the affected plugin or package (e.g. custom/plugins/<Name> or core:storefront), route, request type, HTTP method and status, and the PHP and Shopware versions.

Environments

Automatic follows APP_ENV: prod is production, anything else development. Local test hosts (localhost, *.local, *.test, private IPs) are always reported as development by the browser scripts. Reports from staging and development appear in the dashboard marked DEV but trigger no e-mails, webhooks or chat messages.

Privacy

You as the store operator are the controller for the data the plugin sends to bugd.one; bugd.one (Mignuti Media) processes it on your behalf. Add bugd.one to your privacy policy and conclude the data processing agreement before you activate the plugin. The plugin's README contains a suggested wording.

  • Report button (only when a customer submits): text, screenshots the customer takes (on request only, password and payment fields blacked out) and images, name and e-mail address only with consent, page address without parameters, browser, operating system, recent console errors and failed requests. Photos and voice messages only if you enabled support or feedback for the project – then mention them in your privacy policy.
  • JavaScript errors (for all visitors, when enabled): error message, stack trace, page address without parameters, browser, operating system, environment, store version and the last steps before the error (clicked elements only as a technical selector, without text or input).
  • PHP errors: no cookies, form data, query strings, customer or user data or IP addresses. E-mail addresses, tokens, access keys (including SWSC…/SWIA…), API keys, 32-hex-character IDs, passwords in connection strings and home-directory names are replaced before sending.

The plugin sets no cookies. The data is stored with Cloudflare under EU jurisdiction.

Page speed

The crash reporter (about 9 KB compressed) loads with defer; errors before it starts are buffered by a small inline script. The report button (about 45 KB compressed) is loaded only after the page has finished loading. The server never sends PHP errors during the request but afterwards (kernel.terminate), with a 2-second timeout; the same error at most every 5 minutes, at most 30 reports per 10 minutes and 5 per request.

Troubleshooting

  • The report button covers another button (chat, callback, cookie settings): in the plugin settings, right below the position, raise the distance from bottom (“Bottom offset” in some plugins), e.g. to 90 – the button then sits above the other one. Or change the side distance, or move it to the left. Empty = 16 px.
  • No button visible: clear the cache, check that the key starts with bk_live_, is set in the right sales channel and “Show the report button” is on. Search the page source for widget.umd.js; turn off ad blockers for the test.
  • Crash reporter missing in `<head>`: a theme that replaces the layout_head_meta_tags_charset block in storefront/layout/meta.html.twig without calling parent() pushes the script out.
  • HTTP 403 `origin_not_allowed`: add your sales channels' domains under Allowed domains in bugd.one. PHP errors come from the server and are not affected.
  • HTTP 403 `project_read_only`: the trial has ended; choose a plan.
  • `bugdone:test` says “No valid server key”: the server key must be set under “All Sales Channels” and start with bk_server_.
  • Content Security Policy: allow https://bugd.one in script-src, connect-src, img-src and media-src; with bot protection also https://challenges.cloudflare.com in script-src and frame-src.

Going further

Frequently asked questions

Do I have to recompile the theme?
No. The plugin ships no JavaScript or SCSS of its own. The scripts are added to every storefront page through a template extension and loaded from bugd.one at runtime. After saving the settings, clearing the cache is enough.
Why don't PHP errors arrive although I turned them on?
PHP error capture only reads the setting under “All Sales Channels”, because errors in the administration, the message queue and the console belong to no sales channel. Enter the server key there and check with bin/console bugdone:test.
Are 404 errors or invalid input reported?
No. Exceptions that lead to a server error (5xx) are reported. Errors with a 4xx status such as page not found, not logged in or invalid input are left out. Shopware's error page and logging keep working unchanged.
Can I use a separate bugd.one project per sales channel?
Yes. All storefront settings apply per sales channel; values you leave empty in a channel come from “All Sales Channels”. Only PHP error capture always uses the “All Sales Channels” setting.
What data about my customers goes to bugd.one?
No customer data from the shop: no customer number, no name, no e-mail address, no cart, no orders. A name and e-mail address end up in a bug report only if the customer enters them and consents.

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