# You do not have access to the requested area/action.

**URL:** <https://forum.mautic.org/t/you-do-not-have-access-to-the-requested-area-action/3063>\
**Category:** Product Support\
**Created:** [December 24, 2015, 11:35am UTC](https://forum.mautic.org/t/you-do-not-have-access-to-the-requested-area-action/3063 "2015-12-24T11:35:37Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![zyzioziom](https://avatars.discourse-cdn.com/v4/letter/z/ed8c4c/32.png) [@zyzioziom](https://forum.mautic.org/u/zyzioziom)\
**Post date:** [December 24, 2015, 11:35am UTC](https://forum.mautic.org/t/you-do-not-have-access-to-the-requested-area-action/3063/1 "2015-12-24T11:35:37Z")

</div>

Hi,  
  
When trying to modify forms (add action or field) i receive JavaScript message: You do not have access to the requested area/action. The same happens in Campaign builder, didn’t check a lot but Lists work well.  
  
  
  
Nginx shows no errors  
  
Browser console shows no errors  
  
  
  
I have admin rights (first and only user)  
  
  
  
Any ideas?  
  
  
  
Using 1.2.3, downloaded today

---

<div class="post-metadata">

**Author:** ![zyzioziom](https://avatars.discourse-cdn.com/v4/letter/z/ed8c4c/32.png) [@zyzioziom](https://forum.mautic.org/u/zyzioziom)\
**Post date:** [December 24, 2015, 11:35am UTC](https://forum.mautic.org/t/you-do-not-have-access-to-the-requested-area-action/3063/2 "2015-12-24T11:35:37Z")

</div>

Hi,  
When trying to modify forms (add action or field) i receive JavaScript message: You do not have access to the requested area/action. The same happens in Campaign builder, didn’t check a lot but Lists work well.

Nginx shows no errors  
Browser console shows no errors

I have admin rights (first and only user)

Any ideas?

Using 1.2.3, downloaded today

---

<div class="post-metadata">

**Author:** ![zyzioziom](https://avatars.discourse-cdn.com/v4/letter/z/ed8c4c/32.png) [@zyzioziom](https://forum.mautic.org/u/zyzioziom)\
**Post date:** [December 25, 2015, 1:13am UTC](https://forum.mautic.org/t/you-do-not-have-access-to-the-requested-area-action/3063/3 "2015-12-25T01:13:38Z")

</div>

1.2.2 - problem is the same

![](http://i.imgur.com/YRlCNyz.png)

There is no log file in app/logs

I had mautic installed before on the same server with the same settings. Before reinstall it was working like a charm.

---

<div class="post-metadata">

**Author:** ![zyzioziom](https://avatars.discourse-cdn.com/v4/letter/z/ed8c4c/32.png) [@zyzioziom](https://forum.mautic.org/u/zyzioziom)\
**Post date:** [December 28, 2015, 12:29am UTC](https://forum.mautic.org/t/you-do-not-have-access-to-the-requested-area-action/3063/4 "2015-12-28T00:29:50Z")

</div>

This is nginx access log:

```auto
[28/Dec/2015:01:23:11 +0100] "GET /s/forms/field/new?type=captcha&tmpl=field&formId=1&_=1451262181604&mauticUserLastActive=1&mauticLastNotificationId=3 HTTP/1.1" 200 76 "http://mautic.dimmi.pl/s/forms/edit/1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/601.3.9 (KHTML, like Gecko) Version/9.0.2 Safari/537.86.3"
```

I’ve got some errors in mautic logs now:

`[2015-12-25 02:03:15] mautic.WARNING: Command `doctrine:migrations:version` exited with status code 255 [] []
[2015-12-25 02:03:15] mautic.ERROR: PDOException: SQLSTATE[28000] [1045] Access denied for user 'www-data'@'localhost' (using password: NO) (uncaught exception) at /home/dimmi/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 while running console command `doctrine:migrations:version` [] []
[2015-12-25 10:31:33] mautic.WARNING: IP LOOKUP: The file "/home/dimmi/mautic/app/cache/prod/../ip_data/GeoLite2-City.mmdb" does not exist or is not readable. [] []
[2015-12-25 10:31:33] mautic.WARNING: IP LOOKUP: The file "/home/dimmi/mautic/app/cache/prod/../ip_data/GeoLite2-City.mmdb" does not exist or is not readable. [] []
[2015-12-25 10:31:33] mautic.WARNING: IP LOOKUP: The file "/home/dimmi/mautic/app/cache/prod/../ip_data/GeoLite2-City.mmdb" does not exist or is not readable. [] []`

This URL: [http://mautic.dimmi.pl/s/forms/field/new?type=captcha&tmpl=field&formId=1&\_=1451262181604&mauticUserLastActive=1&mauticLastNotificationId=3](http://mautic.dimmi.pl/s/forms/field/new?type=captcha&tmpl=field&formId=1&_=1451262181604&mauticUserLastActive=1&mauticLastNotificationId=3)

Returns:

```auto
{"error":"You do not have access to the requested area/action."}
```

I guess this is the reason:

```auto
[2015-12-25 02:03:15] mautic.WARNING: Command `doctrine:migrations:version` exited with status code 255 [] []
```

When applying database credentials at installer, first time it just reloads and I have to put them again to work. www-data with no password are not these credentials, maybe it’s sending empty form at first?

---

<div class="post-metadata">

**Author:** ![zyzioziom](https://avatars.discourse-cdn.com/v4/letter/z/ed8c4c/32.png) [@zyzioziom](https://forum.mautic.org/u/zyzioziom)\
**Post date:** [December 28, 2015, 1:11am UTC](https://forum.mautic.org/t/you-do-not-have-access-to-the-requested-area-action/3063/5 "2015-12-28T01:11:59Z")

</div>

I reinstalled from source - master branch, release 1.2.3, packages installed by composer. Same thing again.

This is in the logs now:

[code][2015-12-28 01:06:55] mautic.CRITICAL: Uncaught PHP Exception DoctrineDBALDBALException: “An exception occurred while executing ‘SELECT u0\_.is\_published AS is\_published0, u0\_.date\_added AS date\_added1, u0\_.created\_by AS created\_by2, u0\_.created\_by\_user AS created\_by\_user3, u0\_.date\_modified AS date\_modified4, u0\_.modified\_by AS modified\_by5, u0\_.modified\_by\_user AS modified\_by\_user6, u0\_.checked\_out AS checked\_out7, u0\_.checked\_out\_by AS checked\_out\_by8, u0\_.checked\_out\_by\_user AS checked\_out\_by\_user9, u0\_.id AS id10, u0\_.username AS username11, u0\_.password AS password12, u0\_.first\_name AS first\_name13, u0\_.last\_name AS last\_name14, u0\_.email AS email15, u0\_.position AS position16, u0\_.timezone AS timezone17, u0\_.locale AS locale18, u0\_.last\_login AS last\_login19, u0\_.last\_active AS last\_active20, u0\_.online\_status AS online\_status21, u0\_.preferences AS preferences22, r1\_.is\_published AS is\_published23, r1\_.date\_added AS date\_added24, r1\_.created\_by AS created\_by25, r1\_.created\_by\_user AS created\_by\_user26, r1\_.date\_modified AS date\_modified27, r1\_.modified\_by AS modified\_by28, r1\_.modified\_by\_user AS modified\_by\_user29, r1\_.checked\_out AS checked\_out30, r1\_.checked\_out\_by AS checked\_out\_by31, r1\_.checked\_out\_by\_user AS checked\_out\_by\_user32, r1\_.id AS id33, r1\_.name AS name34, r1\_.description AS description35, r1\_.is\_admin AS is\_admin36, r1\_.readable\_permissions AS readable\_permissions37, u0\_.role\_id AS role\_id38 FROM users u0\_ LEFT JOIN roles r1\_ ON u0\_.role\_id = r1\_.id WHERE u0\_.username = ? OR u0\_.email = ?’ with params [“patryk”, “patryk”]: SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected” at /home/dimmi/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 91 {“exception”:"[object] (Doctrine\DBAL\DBALException(code: 0): An exception occurred while executing ‘SELECT u0\_.is\_published AS is\_published0, u0\_.date\_added AS date\_added1, u0\_.created\_by AS created\_by2, u0\_.created\_by\_user AS created\_by\_user3, u0\_.date\_modified AS date\_modified4, u0\_.modified\_by AS modified\_by5, u0\_.modified\_by\_user AS modified\_by\_user6, u0\_.checked\_out AS checked\_out7, u0\_.checked\_out\_by AS checked\_out\_by8, u0\_.checked\_out\_by\_user AS checked\_out\_by\_user9, u0\_.id AS id10, u0\_.username AS username11, u0\_.password AS password12, u0\_.first\_name AS first\_name13, u0\_.last\_name AS last\_name14, u0\_.email AS email15, u0\_.position AS position16, u0\_.timezone AS timezone17, u0\_.locale AS locale18, u0\_.last\_login AS last\_login19, u0\_.last\_active AS last\_active20, u0\_.online\_status AS online\_status21, u0\_.preferences AS preferences22, r1\_.is\_published AS is\_published23, r1\_.date\_added AS date\_added24, r1\_.created\_by AS created\_by25, r1\_.created\_by\_user AS created\_by\_user26, r1\_.date\_modified AS date\_modified27, r1\_.modified\_by AS modified\_by28, r1\_.modified\_by\_user AS modified\_by\_user29, r1\_.checked\_out AS checked\_out30, r1\_.checked\_out\_by AS checked\_out\_by31, r1\_.checked\_out\_by\_user AS checked\_out\_by\_user32, r1\_.id AS id33, r1\_.name AS name34, r1\_.description AS description35, r1\_.is\_admin AS is\_admin36, r1\_.readable\_permissions AS readable\_permissions37, u0\_.role\_id AS role\_id38 FROM users u0\_ LEFT JOIN roles r1\_ ON u0\_.role\_id = r1\_.id WHERE u0\_.username = ? OR u0\_.email = ?’ with params [“patryk”, “patryk”]:nnSQLSTATE[3D000]: Invalid catalog name: 1046 No database selected at /home/dimmi/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:91, PDOException(code: 3D000): SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected at /home/dimmi/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:694)"} []  
[2015-12-28 01:08:09] mautic.ERROR: DoctrineDBALDBALException: An exception occurred while executing ‘SHOW FULL TABLES WHERE Table\_type = ‘BASE TABLE’’: SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected (uncaught exception) at /home/dimmi/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 91 while running console command `doctrine:migrations:version` [] []

[/code]

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [December 28, 2015, 6:25pm UTC](https://forum.mautic.org/t/you-do-not-have-access-to-the-requested-area-action/3063/6 "2015-12-28T18:25:58Z")

</div>

I think the problem is in

```auto
mautic.ERROR: PDOException: SQLSTATE[28000] [1045] Access denied for user 'www-data'@'localhost'
```

and

```auto
No database selected
```

But I have no explanation for why Mautic works in some areas and does not in others. Maybe try to clear the cache (remove the app/cache folder)

---

<div class="post-metadata">

**Author:** ![zyzioziom](https://avatars.discourse-cdn.com/v4/letter/z/ed8c4c/32.png) [@zyzioziom](https://forum.mautic.org/u/zyzioziom)\
**Post date:** [December 29, 2015, 10:39pm UTC](https://forum.mautic.org/t/you-do-not-have-access-to-the-requested-area-action/3063/7 "2015-12-29T22:39:30Z")

</div>

Clearing cache did not help.

According to logs, Mautic is trying to log into database with empty credentials in installer form and it fall backs to default nginx user ‘www-data’ with no password and no database selected.

Is there any way I can write database credentials manually in some config file and run database migrations by myself?

---

<div class="post-metadata">

**Author:** ![zyzioziom](https://avatars.discourse-cdn.com/v4/letter/z/ed8c4c/32.png) [@zyzioziom](https://forum.mautic.org/u/zyzioziom)\
**Post date:** [December 29, 2015, 10:51pm UTC](https://forum.mautic.org/t/you-do-not-have-access-to-the-requested-area-action/3063/8 "2015-12-29T22:51:41Z")

</div>

This is Mautic error log when setting root credentials to mysql database:

```auto
[2015-12-29 22:50:06] mautic.ERROR: DoctrineDBALDBALException: An exception occurred while executing 'SHOW FULL TABLES WHERE Table_type = 'BASE TABLE'': SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected (uncaught exception) at /home/dimmi/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 91 while running console command `doctrine:migrations:version` [] []
```

---

<div class="post-metadata">

**Author:** ![dulabs](https://avatars.discourse-cdn.com/v4/letter/d/b5a626/32.png) [@dulabs](https://forum.mautic.org/u/dulabs)\
**Post date:** [December 30, 2015, 6:38pm UTC](https://forum.mautic.org/t/you-do-not-have-access-to-the-requested-area-action/3063/9 "2015-12-30T18:38:06Z")

</div>

I have this problem too in campaign builder.

I check mautic error log and it says “$HTTP\_RAW\_POST\_DATA is deprecated”.  
I set always\_populate\_raw\_post\_data to -1 and also remove cache folder.  
But the error still exists.

Do you have another solutions?

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [December 30, 2015, 10:20am UTC](https://forum.mautic.org/t/you-do-not-have-access-to-the-requested-area-action/3063/10 "2015-12-30T10:20:40Z")

</div>

The installation process writes the database credentials to app/config/local.php file. Take a look there. Also, clear cache every time you modify a config file so Mautic knows about the change.

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [December 31, 2015, 10:21am UTC](https://forum.mautic.org/t/you-do-not-have-access-to-the-requested-area-action/3063/11 "2015-12-31T10:21:50Z")

</div>

@dulabs Your error is not related to the error described in this thread. It would be better to create a new one.

Anyway, have you restarted the server after the PHP configuration change?

---

<div class="post-metadata">

**Author:** ![zyzioziom](https://avatars.discourse-cdn.com/v4/letter/z/ed8c4c/32.png) [@zyzioziom](https://forum.mautic.org/u/zyzioziom)\
**Post date:** [January 1, 2016, 5:59pm UTC](https://forum.mautic.org/t/you-do-not-have-access-to-the-requested-area-action/3063/12 "2016-01-01T17:59:44Z")

</div>

Hi,

I managed to solve my problem. During install I disabled SSL connection (I’m using let’s encrypt certificate) and turned it back on when finished install.

Forms and Leads seem to work now.

Thanks for help.

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:54pm UTC](https://forum.mautic.org/t/you-do-not-have-access-to-the-requested-area-action/3063/13 "2020-02-02T22:54:35Z")

</div>


