# Exception The "args" parameter is missing

**URL:** <https://forum.getkirby.com/t/exception-the-args-parameter-is-missing/14039>\
**Category:** Questions\
**Tags:** v3\
**Created:** [May 1, 2019, 5:10pm UTC](https://forum.getkirby.com/t/exception-the-args-parameter-is-missing/14039 "2019-05-01T17:10:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amerlander](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/amerlander/32/6699_2.png) [@Amerlander](https://forum.getkirby.com/u/Amerlander)\
**Post date:** [May 1, 2019, 5:10pm UTC](https://forum.getkirby.com/t/exception-the-args-parameter-is-missing/14039/1 "2019-05-01T17:10:23Z")

</div>

I try to upgrade a Kirby 2 site to Kirby 3. I finished most of the upgrade steps ond most of the pages are working. But there is one page, when I try it to open I get an Exception and I have no clue whats the cause.

The Exception says »The “args” parameter is missing« and is triggered in **kirby\src\Toolkit\Controller.php** in line 32.

I have tried to empty the templatefile of that page, but that doesnt changed anything.

What stepts could I try to get rid of that exception?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [May 1, 2019, 5:15pm UTC](https://forum.getkirby.com/t/exception-the-args-parameter-is-missing/14039/2 "2019-05-01T17:15:26Z")

</div>

In Kirby 2 you could fetch [additional arguments from a route](http://k2.getkirby.com/docs/developer-guide/advanced/controllers#arguments-from-the-router) in the controller using the `$args` parameter. Could you please post what you have in your controller?

---

<div class="post-metadata">

**Author:** ![Amerlander](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/amerlander/32/6699_2.png) [@Amerlander](https://forum.getkirby.com/u/Amerlander)\
**Post date:** [May 1, 2019, 6:18pm UTC](https://forum.getkirby.com/t/exception-the-args-parameter-is-missing/14039/3 "2019-05-01T18:18:47Z")

</div>

Thank you, it was in the controller. I just had to remove the args parameter of the function call.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [May 1, 2019, 6:21pm UTC](https://forum.getkirby.com/t/exception-the-args-parameter-is-missing/14039/4 "2019-05-01T18:21:36Z")

</div>

If you have to pass data from a route to a controller, you can now do it like this: [https://getkirby.com/docs/guide/routing#pass-data-to-controller](https://getkirby.com/docs/guide/routing#pass-data-to-controller)

---

<div class="post-metadata">

**Author:** ![Tilman](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/tilman/32/8664_2.png) [@Tilman](https://forum.getkirby.com/u/Tilman)\
**Post date:** [February 3, 2021, 10:07am UTC](https://forum.getkirby.com/t/exception-the-args-parameter-is-missing/14039/5 "2021-02-03T10:07:02Z")

</div>

i am upgrading from 2.5 and took a first step by going to 3.0. my problem is that i have an OPTIONAL-parameter that i would like to pass to the controller:

aic.cologne/initiatives/spaces =\> show all spaces  
aic.cologne/initiatives/spaces/S =\> show all spaces beginning with S

when i call the controller with my custom route (/initiatives/spaces/(:any)) it’s working

```auto
page('initiatives/spaces')->render($data)

```

however the default routing (/initiatives/spaces) throws an error in the controller because it is missing the param. is there a way to make the param optional or do i have to adress this by handling the default routing in my custom-routes?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 3, 2021, 12:00pm UTC](https://forum.getkirby.com/t/exception-the-args-parameter-is-missing/14039/6 "2021-02-03T12:00:42Z")

</div>

What is in your controller?
