# EnvVarProcessor.php line 76 - exception "Environment variable not found"

**URL:** <https://forum.mautic.org/t/envvarprocessor-php-line-76-exception-environment-variable-not-found/15933>\
**Category:** Product Support\
**Created:** [September 3, 2020, 9:24am UTC](https://forum.mautic.org/t/envvarprocessor-php-line-76-exception-environment-variable-not-found/15933 "2020-09-03T09:24:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![maumatic](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/maumatic/32/3284_2.png) [@maumatic](https://forum.mautic.org/u/maumatic)\
**Post date:** [September 3, 2020, 9:24am UTC](https://forum.mautic.org/t/envvarprocessor-php-line-76-exception-environment-variable-not-found/15933/1 "2020-09-03T09:24:27Z")

</div>

**Your software**  
My Mautic version is: 3.1  
My PHP version is: 7.3.22

**Your problem**  
My problem is: I’m getting errors from Mautic in apache’s error\_log

These errors are showing in the log:

```
EnvNotFoundException: Environment variable not found: "MAUTIC_DB_TABLE_PREFIX". - in file /var/www/mmm.mysite.com/vendor/symfony/dependency-injection/EnvVarProcessor.php - at line 76
EnvNotFoundException: Environment variable not found: "MAUTIC_REQUEST_CONTEXT_BASE_URL". - in file /var/www/mmm.mysite.com/vendor/symfony/dependency-injection/EnvVarProcessor.php - at line 76

```

And there’s many of them

The environment variables `MAUTIC_DB_TABLE_PREFIX` and `MAUTIC_REQUEST_CONTEXT_BASE_URL` are the 2 ones reported

Steps I have tried to fix the problem:

I looked into `EnvVarProcessor.php` at line 76 but didn’t find anything obviously wrong

In `app/config/local.php` I have `'db_table_prefix' => NULL,`  
And didn’t find anything related to `MAUTIC_REQUEST_CONTEXT_BASE_URL`

So far I don’t know if this is a big problem or not, my Mautic system seems to work OK.  
But anyway any hint to get rid of these error messages is welcome.

---

<div class="post-metadata">

**Author:** ![rehannischal7](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rehannischal7/32/4468_2.png) [@rehannischal7](https://forum.mautic.org/u/rehannischal7)\
**Post date:** [April 27, 2021, 11:17am UTC](https://forum.mautic.org/t/envvarprocessor-php-line-76-exception-environment-variable-not-found/15933/2 "2021-04-27T11:17:02Z")

</div>

getting the same error! is it solved yet?

---

<div class="post-metadata">

**Author:** ![maumatic](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/maumatic/32/3284_2.png) [@maumatic](https://forum.mautic.org/u/maumatic)\
**Post date:** [April 27, 2021, 4:00pm UTC](https://forum.mautic.org/t/envvarprocessor-php-line-76-exception-environment-variable-not-found/15933/3 "2021-04-27T16:00:36Z")

</div>

I’m now running Mautic v3.3.2 and these errors don’t show up anymore.

---

<div class="post-metadata">

**Author:** ![miamiman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/miamiman/32/1118_2.png) [@miamiman](https://forum.mautic.org/u/miamiman)\
**Post date:** [August 2, 2021, 8:26pm UTC](https://forum.mautic.org/t/envvarprocessor-php-line-76-exception-environment-variable-not-found/15933/4 "2021-08-02T20:26:04Z")

</div>

I am on 3.3.3 and report a series of these errors on line 76.

My mautic install works fine so far.

 ![Screenshot_2](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/f/f78688b60d668cb25e6d4a8cdc5bb775e632aefc.jpeg)

---

<div class="post-metadata">

**Author:** ![jefflewis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jefflewis/32/5762_2.png) [@jefflewis](https://forum.mautic.org/u/jefflewis)\
**Post date:** [September 4, 2021, 12:30am UTC](https://forum.mautic.org/t/envvarprocessor-php-line-76-exception-environment-variable-not-found/15933/5 "2021-09-04T00:30:41Z")

</div>

Did you solve this? I have the same issue on v4.0 (the MAUTIC\_WEBROOT) env variable not found.
