# Forms not working due to /form/generate.js

**URL:** https://forum.mautic.org/t/forms-not-working-due-to-form-generate-js/29943
**Category:** Product Support
**Created:** [November 14, 2023, 2:34pm UTC](https://forum.mautic.org/t/forms-not-working-due-to-form-generate-js/29943 "2023-11-14T14:34:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![zero477](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zero477/32/10873_2.png) [@zero477](https://forum.mautic.org/u/zero477)
#### Post date: [November 14, 2023, 2:34pm UTC](https://forum.mautic.org/t/forms-not-working-due-to-form-generate-js/29943/1 "2023-11-14T14:34:56Z")

</div>

**Your software**  
My Mautic version is: v4.2.2  
My PHP version is: 8.0.30  
My Database type and version is: 10.4.20-MariaDB-1:10.4.20+maria~buster-log

**Your problem**  
My problem is: Forms suddenly stopped displaying.

These errors are showing in the log:  
[2023-11-14 02:13:30] mautic.WARNING: PHP Warning - Trying to access array offset on value of type bool - in file /home/public\_html/app/bundles/PageBundle/Entity/HitRepository.php - at line 276

[2023-11-14 02:47:57] mautic.NOTICE: PHP Notice - SessionHandler::gc(): ps\_files\_cleanup\_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) - in file /home//public\_html/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php - at line 106

[2023-11-14 03:10:42] mautic.NOTICE: PHP Notice - SessionHandler::gc(): ps\_files\_cleanup\_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) - in file /home//public\_html/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php - at line 106

[2023-11-14 03:14:36] mautic.NOTICE: PHP Notice - SessionHandler::gc(): ps\_files\_cleanup\_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) - in file /home//public\_html/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php - at line 106

[2023-11-14 03:54:44] mautic.NOTICE: PHP Notice - SessionHandler::gc(): ps\_files\_cleanup\_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) - in file /home//public\_html/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php - at line 106

[2023-11-14 05:28:36] mautic.NOTICE: PHP Notice - SessionHandler::gc(): ps\_files\_cleanup\_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) - in file /home//public\_html/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php - at line 106

[2023-11-14 05:49:36] mautic.NOTICE: PHP Notice - SessionHandler::gc(): ps\_files\_cleanup\_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) - in file /home//public\_html/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php - at line 106

[2023-11-14 11:33:13] mautic.WARNING: PHP Warning - Trying to access array offset on value of type bool - in file /home//public\_html/app/bundles/PageBundle/Entity/HitRepository.php - at line 276

[2023-11-14 08:38:18] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Call to a member function createQueryBuilder() on null” at /home//public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php line 31 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function createQueryBuilder() on null at /home//public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php:31)”}

[2023-11-14 13:51:16] mautic.NOTICE: PHP Notice - SessionHandler::gc(): ps\_files\_cleanup\_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) - in file /home//public\_html/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php - at line 106

Steps I have tried to fix the problem:  
I came to the community and found this post → [/form/generate.js?id=1 not show form - #9 by zaharovrd](https://forum.mautic.org/t/form-generate-js-id-1-not-show-form/23909/9)

But still havent been able to find the fix

The problem is in

It shows nothing.

---

<div class="post-metadata">

### Author: ![zero477](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zero477/32/10873_2.png) [@zero477](https://forum.mautic.org/u/zero477)
#### Post date: [November 14, 2023, 9:26pm UTC](https://forum.mautic.org/t/forms-not-working-due-to-form-generate-js/29943/2 "2023-11-14T21:26:36Z")

</div>

Hello,

I solved it, it was a problem with Cloudflare… nothing to do with Mautic. I would like to delete the post but I do not know how.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)
#### Post date: [November 20, 2023, 7:12am UTC](https://forum.mautic.org/t/forms-not-working-due-to-form-generate-js/29943/3 "2023-11-20T07:12:39Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

### Author: ![tobsowo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tobsowo/32/3096_2.png) [@tobsowo](https://forum.mautic.org/u/tobsowo)
#### Post date: [November 20, 2023, 7:12am UTC](https://forum.mautic.org/t/forms-not-working-due-to-form-generate-js/29943/4 "2023-11-20T07:12:52Z")

</div>

Please don’t delete, it will be of help to someone else when having similar issue.
