# Kirby Patterns: getting a 404 on pattern subfolders

**URL:** <https://forum.getkirby.com/t/kirby-patterns-getting-a-404-on-pattern-subfolders/8584>\
**Category:** Questions\
**Tags:** v2\
**Created:** [September 21, 2017, 9:05pm UTC](https://forum.getkirby.com/t/kirby-patterns-getting-a-404-on-pattern-subfolders/8584 "2017-09-21T21:05:43Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![minttoothpick](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@minttoothpick](https://forum.getkirby.com/u/minttoothpick)\
**Post date:** [September 21, 2017, 9:05pm UTC](https://forum.getkirby.com/t/kirby-patterns-getting-a-404-on-pattern-subfolders/8584/1 "2017-09-21T21:05:43Z")

</div>

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!

---

<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:** [September 21, 2017, 9:18pm UTC](https://forum.getkirby.com/t/kirby-patterns-getting-a-404-on-pattern-subfolders/8584/2 "2017-09-21T21:18:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![minttoothpick](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@minttoothpick](https://forum.getkirby.com/u/minttoothpick)\
**Post date:** [September 21, 2017, 9:20pm UTC](https://forum.getkirby.com/t/kirby-patterns-getting-a-404-on-pattern-subfolders/8584/3 "2017-09-21T21:20:45Z")

</div>

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.”

---

<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:** [September 21, 2017, 10:01pm UTC](https://forum.getkirby.com/t/kirby-patterns-getting-a-404-on-pattern-subfolders/8584/4 "2017-09-21T22:01:28Z")

</div>

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?

 ![15](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/d/dfe8da827c2ee61a61715b553356edd48bdecbad.jpg)

Or simply a typo pattern/patterns, maybe?

---

<div class="post-metadata">

**Author:** ![minttoothpick](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@minttoothpick](https://forum.getkirby.com/u/minttoothpick)\
**Post date:** [September 21, 2017, 10:10pm UTC](https://forum.getkirby.com/t/kirby-patterns-getting-a-404-on-pattern-subfolders/8584/5 "2017-09-21T22:10:35Z")

</div>

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…

---

<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:** [September 21, 2017, 10:15pm UTC](https://forum.getkirby.com/t/kirby-patterns-getting-a-404-on-pattern-subfolders/8584/6 "2017-09-21T22:15:39Z")

</div>

And the error appears if you click on that folder?

---

<div class="post-metadata">

**Author:** ![minttoothpick](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@minttoothpick](https://forum.getkirby.com/u/minttoothpick)\
**Post date:** [September 21, 2017, 10:23pm UTC](https://forum.getkirby.com/t/kirby-patterns-getting-a-404-on-pattern-subfolders/8584/7 "2017-09-21T22:23:46Z")

</div>

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:

 ![24 PM](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/6/67b55b71cdc35ddb0faa423ab5bad0f9dd9049e2.jpg)

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

 ![48 PM](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/9/9834765e8c4ba3331d93e4263821500cb6293613.png)

---

<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:** [September 22, 2017, 6:10am UTC](https://forum.getkirby.com/t/kirby-patterns-getting-a-404-on-pattern-subfolders/8584/8 "2017-09-22T06:10:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![minttoothpick](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@minttoothpick](https://forum.getkirby.com/u/minttoothpick)\
**Post date:** [September 22, 2017, 2:15pm UTC](https://forum.getkirby.com/t/kirby-patterns-getting-a-404-on-pattern-subfolders/8584/9 "2017-09-22T14:15:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![minttoothpick](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@minttoothpick](https://forum.getkirby.com/u/minttoothpick)\
**Post date:** [September 22, 2017, 2:28pm UTC](https://forum.getkirby.com/t/kirby-patterns-getting-a-404-on-pattern-subfolders/8584/10 "2017-09-22T14:28:09Z")

</div>

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? 🤷‍♂️ I don’t know, but at least everything is functioning! Thanks for taking your time to look into this, @texnixe!

---

<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:** [September 22, 2017, 2:28pm UTC](https://forum.getkirby.com/t/kirby-patterns-getting-a-404-on-pattern-subfolders/8584/11 "2017-09-22T14:28:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:32pm UTC](https://forum.getkirby.com/t/kirby-patterns-getting-a-404-on-pattern-subfolders/8584/12 "2025-02-06T17:32:03Z")

</div>

Archived on February 6, 2025, 5:32pm UTC


