Kirby Patterns: getting a 404 on pattern subfolders

Hi everyone!

I’m having trouble getting the Kirby Patterns plugin to work. I’ve installed a fresh plainkit and the plugin. When I go to /patterns in my browser, I see the default theme styling and the contents of my readme. However, when I make, say, patterns/figure/figure.html.php and try to navigate there, I get a 404.

Everything is fresh, using default settings, so I’m not sure what’s going on. Is Kirby 2.5.5 compatible with the plugin?

Thanks for your help; I hope I haven’t missed anything obvious!

What do you get the 404 for? Missing index.css and index.js?

Hi - no, the page doesn’t load at all, and I get “The requested resource /patterns/figure/figure.html.php was not found on this server.”

Hm, I did a quick test with the latest plainkit and the plugin without any problems. So I guess it is still compatible. What’s in your figure.html.php? When you go to /patterns, can you see the newly created figure folder in the sidebar?

Or simply a typo pattern/patterns, maybe?

Thanks for looking into it. figure.html.php just has static content: <p>foo</p>. I can see the figure folder, though. I’ve double checked, and I don’t believe I have any typos…

And the error appears if you click on that folder?

Correct. That’s what is so confusing; because the site/patterns folder is working, and it’s displaying my readme, and any subfolders show up.

If I create a subfolder that doesn’t contain any files ("anything") and click on it, nothing breaks: the Patterns UI/CSS stays, and it’s just blank:

But if I create a file inside that folder (for example, anything/anything.scss), I get the 404:

Strange. What’s your environment? OS, Server, PHP version etc.??

I’m using a Mac (OS 10.12.6), PHP 7.1.8, and using the built-in server with php -S localhost:8000

Oookay, I set up MAMP to test with that instead, and things are working now… must be some fluke with the built-in PHP server somehow? :man_shrugging: I don’t know, but at least everything is functioning! Thanks for taking your time to look into this, @texnixe!

Yes, I just tested with built-in server and didn’t work