Hello. So I happened to have a page named ‘Media’ on a new project. When I assign the URL to ‘media’ and view the page I get a blank screen. If I change it to say, ‘press’, the page loads as expected. I see there is a now a media folder on Kirby v3 so perhaps there’s a conflict. That would make sense, but what’s the solution? Thanks in advance for any assistance.
The solution would be to rename the media folder, but that is currently not possible:
The milestone is 3.1.2, so that should be soonish…
I see. Thanks for the speedy reply.
Fixed in 3.1.3
I have the same issue with 3.3.5.
I don’t know if I’m doing something wrong. Do I have to define both „roots“ and „urls“ for the new media folder? I’dont wanna hardcode the url in urls config. Why is this necessary?
<?php $base = dirname(__DIR__); require $base . '/kirby/bootstrap.php'; $kirby = new Kirby([ 'roots' => [ 'index' => __DIR__, 'media' => __DIR__ . '/files', 'content' => $base . '/content', 'site' => $base . '/site', 'accounts' => $base . '/storage/accounts', 'cache' => $base . '/storage/cache', 'sessions' => $base . '/storage/sessions', ] ]); echo $kirby->render();
If you move the media folder to a different location, you have to set your custom Urls as well, yes.
But the domain doesn’t have to be hardcoded.