question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to adapt to Kirby 3 PHP routing

See original GitHub issue

👋 I am using kirby-webpack with Kirby CMS 3 now and it works great, but there is a problem with the development server.

  • When i upload an image to the panel, the image does not show in the preview/thumbnail.
  • I get this error when using the kirby-builder plugin kirby-builder-error-dev

After the npm run build process and starting the build in PHP server php -S localhost:8000 kirby/router.php everything works. The images are there and even the plugin works.

So I tried to install the Kirby routing in the development server but failed.

phpServer = php({ bin: user.devServer.phpBinary || 'php', host: user.devServer.phpHost || 'localhost', root: user.paths.www, verbose: false, promptBinary: true, args, router: user.paths.kirby.core + '/router.php' // Kirby routing })

Am i missing something here? Thank you very much!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
arnaudjuracekcommented, Jun 19, 2019

FIY @grommas, I just created a Kirby 3 branch partially based on your fork. Feel free to PR if you want to add things.

Once properly tested, this branch will be merged in the main repository.

0reactions
arnaudjuracekcommented, Mar 7, 2019

I’m glad that you found a workaround ! Pinning this issue for later reference.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Routing | Kirby CMS
Use Kirby's router to modify URLs or provide extra functionality when the user calls an given URI pattern.
Read more >
Newest 'kirby' Questions - Stack Overflow
I have a php website (based on kirby cms), and on the server i suddenly get ... How can I adapt this code...
Read more >
Kirby 3: How to build a website from scratch - YouTube
Plainkit: https://github.com/getkirby/plainkit.
Read more >
The Definitive PHP 7.2, 7.3, 7.4, 8.0, and 8.1 Benchmarks (2022)
We tested the performance of 14 PHP platforms (WordPress, Drupal, Laravel) on 5 ... Kirby 3.6.1.1; Flarum 1.2.0; Update to PHP 8.1 at...
Read more >
d4l/kirby-static-site-generator - Packagist
Static site generator plugin for Kirby 3. ... To use this, adapt config option d4l.static_site_generator.endpoint to your needs (should be a string) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found