I installed a Kirby 3.5 project I’ve been working on for a while on my server but unfortunately all pages are blank white pages. So far i tried the following steps to debug:
Tested that the index.php in the web directory is loaded. I replaced echo (new Kirby)->render(); to echo a simple string which worked.
Tested the connection to kirby/bootstrap.php by moving the kirby folder somewhere else. This resulted in an error message that the file couldn’t be found, as expected.
Tested if kirby/bootstrap.php actually finds the autoload. It did.
I verified that the vendor folder is in the right spot and all dependencies installed correctly.
Checked whether mbstring php extension is enabled as I read in another thread this could lead to blank pages.
Used composer update to make sure the autoload is up to date.
Enabled optimize-autoloader in the composer.json file.
The weird thing is I used an identical deployment setup on another server for a different website and its working just fine. I compared both setups and couldn’t find a difference.
Any help would be greatly appreciated. Thanks in advance!
I had a look at it and other php files and didn’t find any whitespaces. In my config.php I require a plugin for env files after the php opening tag but that shouldn’t be a problem right? It looks like this:
I only have a Kirby folder in the web directory. There is the getkirby package in the vendor folder but it only consists of the composer-installer.
I noticed that a plugin I’m using that requires Kirby and that has its own vendor folder inside the plugin directory installed seemingly all dependencies that Kirby requires. There isn’t a Kirby folder in there but could these duplicate dependencies be enough to mess with Kirby?
Okay follow up: I disabled the plugin and removed every call to it and the problem is gone! Great. So the duplicates seem to be the problem. How would I go about installing a plugin’s composer dependencies properly though? Is there a way to make sure composer doesn’t handle plugins and the general installation separately?
The plugin is this one. Earlier I wrote that I had a functional setup that was the same as on the site this thread is about but I now noticed that on the older site I didn’t gitignore the plugin’s vendor folder. This time I did add the vendor folder to the .gitignore and added the composer install in the plugin’s directory to my build steps.
Maybe it’s wrong to build the plugin? Considering the author pushed a vendor folder to the git repo maybe I am misunderstanding the use of the plugin’s composer.json file.
The dotenv plugin is the only ‘outside’ plugin I use. I wrote a bunch of block plugins but they aren’t hosted anywhere besides my company’s git repos. Would it be better to require outside plugins through composer?