> For the complete documentation index, see [llms.txt](https://docs.hamz.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hamz.dev/common-problems.md).

# Common Problems

## **Issue 1 - HTTP 500 ERROR**

<figure><img src="/files/sqH0O4MRzrRcsuirIYb6" alt=""><figcaption></figcaption></figure>

If you get this issue when you go to your domain, do the following:

* Copy the contents of your config.php and put it through a [PHP syntax checker](https://phpcodechecker.com/), if an error comes up, just fix the issue, usually you probably removed the ' or ; by accident.
* If thats, not the issue, then its to do with your SQL connection. Recheck all your SQL details in the config and make sure they are correct. Make sure the SQL file is imported into your database and if your on cpanel, make sure to add your user privileges to the database.

If you are still receiving this error then make sure you have correctly Licensed your domain.

[License Portal ](https://license.hamzcad.com/login.php)

Do not add `http://` or `https://` in front of it and no `/` at the end!

<figure><img src="/files/RdVam4W4RIcZL66SBQDs" alt=""><figcaption></figcaption></figure>

## **Issue 2 - Invalid Redirect URL**

<figure><img src="/files/4i9dDA8Ip75oLc5v2w9Z" alt=""><figcaption></figcaption></figure>

If you get this issue when logging in, do the following:

* In your config.php. check the domain is correct spelled and in the correct format. Eh. *<https://cad.domain.tld>  (There cant be any / at the end)*
* *Then go to the* [*discord developer portal*](https://discord.com/developers/applications)\_, navigate to your bot -> oauth2. Make sure the link is correct. Eg. <https://cad.domain.tld/actions/register.php_&#x20>;

## **Issue 3 - Discord count not working on Community Site**

If your Discord count is not working on your community site then what you can do is -&#x20;

Login to your Discord Developer Portal, access your bot used in your config then ensure that all intents are enabled on your bot.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.hamz.dev/common-problems.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
