I just migrated a project I’m working on to Kirby 3.
Pretty much everything went really smooth. I’ve only got one issue:
The media files are not being properly generated.
It seems that the directory setup is being done correctly but the actual image files are missing.
The setup is running in a local environment with gulp-connect-php (https://www.npmjs.com/package/gulp-connect-php).
My local PHP version is PHP 7.1.19.
When I run the whole setup inside with MAMP everything works.
I got the same issue on a live server where I uploaded the project to test.
What is your remote server environment? And what exactly is not working on the remote? Just the images missing while subpages and the Panel work as expected?
Hey there, maybe you could help me out …
I got the same directory structure as getkirby.com, meaing the bare minimum files reside in a folder called www, while all the rest lives one directory below, called my-project.
When telling gulp-connect where Kirby’s router.php file is (my-project/kirby), I get this error:
[Thu Feb 21 00:36:22 2019] PHP Warning: include(/my-project/index.php): failed to open stream: No such file or directory in /my-project/kirby/router.php on line 12
[Thu Feb 21 00:36:22 2019] PHP Stack trace:
[Thu Feb 21 00:36:22 2019] PHP 1. {main}() /my-project/kirby/router.php:0
Although, when going without the aforementioned router option, everything’s just fine (panel is working, etc) but some media files are being generated, others not (which seems very random to me). This occurs on frontend and backend alike: some images are being cropped / resized correctly, and others just don’t. Trying to view an image in the backend results in this error message:
The JSON response from the API could not be parsed. Please check your API connection.
I’m interested in getting things to work with PHP’s built-in server (and thusgulp-connect), too … It was part of the beauty of Kirby 2 - sadly, K3 raised the bar higher without need imho … maybe @texnixe can bring some light into this matter?
Hey there, I just checked this repository, but it seems to lack the router.php setup:
Anywhoozle, I’d be glad to have a look at your (hopefully working) setup - otherwise I’ll return to using docker-based (or even vagrant-based) solutions, since Valet for Linux just doesn’t do the trick for me.
Hi, yeah that’s the setup but still an old one for Kirby 2.
I used it for a project I did recently where I updated for Kirby 3 support.
It’s not yet uploaded though. Don’t think I have the time tonight but tomorrow could work.