# PHP Missing Code Error When Running 'api.access.deny'

**URL:** <https://community.auth0.com/t/php-missing-code-error-when-running-api-access-deny/75729>\
**Category:** Get Help\
**Tags:** auth0-php, sample, php\
**Created:** [January 3, 2022, 10:15am UTC](https://community.auth0.com/t/php-missing-code-error-when-running-api-access-deny/75729 "2022-01-03T10:15:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![janik.driehaus](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/janik.driehaus/32/12805_2.png) [@janik.driehaus](https://community.auth0.com/u/janik.driehaus)\
**Post date:** [January 3, 2022, 10:15am UTC](https://community.auth0.com/t/php-missing-code-error-when-running-api-access-deny/75729/1 "2022-01-03T10:15:56Z")

</div>

![image](https://global.discourse-cdn.com/auth0/original/3X/8/4/844619075891cddbe8916b5f6cb9904ec98b073c.png)

I encounter this error when adding an Action to the login Flow. If I remove the Action from the Flow, it works again. I’d love to know where I’m going wrong, as the aforementioned line in question is simply:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/2/1/218f0e88cedb3452736f2cba826fc19bf64bec07.png)

&nbsp;

This is the Action:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/2/8/28333d265bf3e9c4153587d1fbc259af8a7d555e.png)

As today is a weekday (Monday), I want to deny access to the application **AuthPHP** for testing purposes.

The login Flow looks like this:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/a/8/a8f9fc841a6c5e32e21f8b749adcc9463c0624d9.png)

I followed the steps outlined in [this guide](https://auth0.com/docs/actions/write-your-first-action#create-an-action).

I have changed the Action a number of times to try and pinpoint the error. It only fails when calling `api.access.deny()', though I cannot figure out why.

**Update** : This issue does _not_ occur when running the Python sample app.

---

<div class="post-metadata">

**Author:** ![janik.driehaus](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/janik.driehaus/32/12805_2.png) [@janik.driehaus](https://community.auth0.com/u/janik.driehaus)\
**Post date:** [January 10, 2022, 3:42pm UTC](https://community.auth0.com/t/php-missing-code-error-when-running-api-access-deny/75729/2 "2022-01-10T15:42:16Z")

</div>

Problem is not an issue as the sample app isn’t required anymore.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 25, 2022, 3:42pm UTC](https://community.auth0.com/t/php-missing-code-error-when-running-api-access-deny/75729/3 "2022-01-25T15:42:37Z")

</div>

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