# Server warningmessage testing merx shop plugin

**URL:** <https://forum.getkirby.com/t/server-warningmessage-testing-merx-shop-plugin/20520>\
**Category:** Questions\
**Tags:** v3\
**Created:** [December 25, 2020, 8:30am UTC](https://forum.getkirby.com/t/server-warningmessage-testing-merx-shop-plugin/20520 "2020-12-25T08:30:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alain](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/alain/32/10270_2.png) [@Alain](https://forum.getkirby.com/u/Alain)\
**Post date:** [December 25, 2020, 8:30am UTC](https://forum.getkirby.com/t/server-warningmessage-testing-merx-shop-plugin/20520/1 "2020-12-25T08:30:44Z")

</div>

Hi  
I’m testing the merx shop plugin.  
The plainkit works but I get a server warning in the terminal:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/2/2a42d4022458710cf97a0395cbc293305534b496.png)

What is wrong there?

Kind christmas regards  
Alain

---

<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:** [December 25, 2020, 12:21pm UTC](https://forum.getkirby.com/t/server-warningmessage-testing-merx-shop-plugin/20520/2 "2020-12-25T12:21:38Z")

</div>

You have to start from the `/public` folder and adapt the path to the `router.php` accordingly

---

<div class="post-metadata">

**Author:** ![Alain](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/alain/32/10270_2.png) [@Alain](https://forum.getkirby.com/u/Alain)\
**Post date:** [December 27, 2020, 10:58am UTC](https://forum.getkirby.com/t/server-warningmessage-testing-merx-shop-plugin/20520/3 "2020-12-27T10:58:34Z")

</div>

Thanks for the hint.

It was not clear to me where to adapt the path to /public because of my lack of kirby- and php knowledge, hence I document here what I did for all those other ignorants like me 🙂

In /kirby/router.php I added ‘/public’ to $root.  
See here:

```
<?php

$root = dirname( __DIR__ ) . '/public';

// https://yourdomain.com/media/super/nice.jpg

if (file_exists($root . '/' . $_SERVER['SCRIPT_NAME'])) {

    return false; // serve the requested resource as-is.

}

$_SERVER['SCRIPT_NAME'] = str_replace($_SERVER['DOCUMENT_ROOT'], '', $index = $root . '/index.php');

include $index;

```

Switched to /public in the terminal an entered:

`php -S localhost:8000 ../kirby/router.php`

And now it works without a warning.

Kind regards  
Alain
