Server warningmessage testing merx shop plugin

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

What is wrong there?

Kind christmas regards
Alain

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

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 :slight_smile:

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