<p>Without knowing what the actual error is, it's hard to help you out. Could you try and find the error in the error log, probably located at <code>storage/logs/web.log</code>? Error and stack trace should be in there.</p>
<p>Another thing you could do is open a terminal, go to the root folder of your Craft installation and run <code>tail -f storage/logs/web.log</code>. This will show additions to the log as they occur. After that, reload the page that throws the error and see what error appears in your terminal window.</p>

CC BY-SA 4.0
2023-06-09T13:19:26.990Z
Thanks Paul - that is some very useful information, I really appreciate it!
Sean G
CC BY-SA 4.0
2023-06-09T08:27:24.593Z
2023-06-09T08:27:24.593Z
Paul
<p>My Craft CMS version 3 site is breaking when I boostrap a custom module up on app.php file.</p>
<p>The code looks like this:</p>
<pre><code>
&lt;?php

use craft\helpers\App;

return [
    'id' =&gt; App::env('APP_ID') ?: 'CraftCMS',
    'modules' =&gt; [
        'my-module' =&gt; \modules\Module::class,
        'fa-forms' =&gt; \faforms\Module::class
    ],
    'aliases' =&gt; [
        '@subdomain' =&gt; 'http://subdomain.localhost',
    ], 
    //'bootstrap' =&gt; ['fa-forms'],
    //'bootstrap' =&gt; ['my-module'],
    'components' =&gt; [
        'queue' =&gt; [
            'ttr' =&gt; 3600,
        ],
    ],
];
</code></pre>
<p>If I uncomment the bootstrap for the fa-forms module I get a server error that I cannot trace because it prevents the debug toolbar from loading.</p>
<p>Has anyone had a similar issue with bootstrap breaking their site?</p>

<craft3><php>
Site breaking when I call a custom module up on app.php file
# Site breaking when I call a custom module up on app.php file

(Asked by: username_0 on 2023-06-08)

My Craft CMS version 3 site is breaking when I boostrap a custom module up on app.php file.
The code looks like this:

 App::env('APP_ID') ?: 'CraftCMS',
    'modules' => [
        'my-module' => \modules\Module::class,
        'fa-forms' => \faforms\Module::class
    ],
    'aliases' => [
        '@subdomain' => 'http://subdomain.localhost',
    ], 
    //'bootstrap' => ['fa-forms'],
    //'bootstrap' => ['my-module'],
    'components' => [
        'queue' => [
            'ttr' => 3600,
        ],
    ],
];

If I uncomment the bootstrap for the fa-forms module I get a server error that I cannot trace because it prevents the debug toolbar from loading.
Has anyone had a similar issue with bootstrap breaking their site?

**Tags:** craft3, php


---

## 1 answers

### Answer by username_1 on 2023-06-09. Score: 1

Without knowing what the actual error is, it's hard to help you out. Could you try and find the error in the error log, probably located at `storage/logs/web.log`? Error and stack trace should be in there.

Another thing you could do is open a terminal, go to the root folder of your Craft installation and run `tail -f storage/logs/web.log`. This will show additions to the log as they occur. After that, reload the page that throws the error and see what error appears in your terminal window.

> **Comments:**
> **username_0**: Thanks username_1 - that is some very useful information, I really appreciate it!  

---

