# Debugging error messages

When Shopware is running in production mode, usually only general messages like "Theme could not be assigned to sales channel." are being displayed. Based on these general messages, it unfortunately is not possible to identify the cause of the error more precisely.

The first step in case of error messages in the administration is to receive a more detailed error message.

## Receiving more detailed error message

To receive a more detailed error message use one or both of the following options:

* Check your **PHP error log** for further information.
  * In case you don't know how to change the value, your hoster will certainly be happy to help you.
* Put Shopware (temporarily) into the **debug mode**.
  * Please find a guidance in the [Shopware Documentation](https://docs.shopware.com/en/en/shopware-6-en/tutorials-and-faq/debugging).

{% hint style="info" %}
**Note**: The article is part of our guided troubleshooting assistant and explains a specific step in this process.

In order to perform the corresponding steps in the correct order, please use the troubleshooting assistant.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowledge.themeware.design/knowledge-base/tutorials/debugging/debugging-error-messages.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
