Hey Sebastian
(it’s nice to meet you here)
I was able to narrow down our issue to changes between v3.3.1 and v3.3.2. With v.3.3.1 everything is working fine using the require_once syntax. After updating to v.3.3.2 it only only works with the alternative require syntax.
Working code snippet (config.php / v.3.3.1):
<?php
return array_replace(
[
'ENVIRONMENT' => 'local',
'debug' => true,
'languages' => true,
'slugs' => 'de',
'smartypants' => true,
'content' => require_once 'config.content.php',
'hooks' => require_once 'config.hooks.php',
'panel' => require_once 'config.panel.php',
'routes' => require_once 'config.routes.php',
'text_snippets' => require_once 'config.text-snippets.php',
'thumbs' => require_once 'config.thumbs.php'
],
F::load(__DIR__ . '/config.deployment.php', [])
);
Working code snippet (config.php / v.3.3.2 / https://github.com/getkirby/kirby/releases/tag/3.3.2):
<?php
return array_replace(
[
'ENVIRONMENT' => 'local',
'debug' => true,
'languages' => true,
'slugs' => 'de',
'smartypants' => true,
'content' => require __DIR__ . '/config.content.php',
'hooks' => require __DIR__ . '/config.hooks.php',
'panel' => require __DIR__ . '/config.panel.php',
'routes' => require __DIR__ . '/config.routes.php',
'text_snippets' => require __DIR__ . '/config.text-snippets.php',
'thumbs' => require __DIR__ . '/config.thumbs.php'
],
F::load(__DIR__ . '/config.deployment.php', [])
);
And to narrow it down even further – it would be enough to replace only the content, hooks and routes paths. So this code snippet is working fine with v3.4.4:
<?php
return array_replace(
[
'ENVIRONMENT' => 'local',
'debug' => true,
'languages' => true,
'slugs' => 'de',
'smartypants' => true,
'content' => require __DIR__ . '/config.content.php',
'hooks' => require __DIR__ . '/config.hooks.php',
'panel' => require_once 'config.panel.php',
'routes' => require __DIR__ . '/config.routes.php',
'text_snippets' => require_once 'config.text-snippets.php',
'thumbs' => require_once 'config.thumbs.php'
],
F::load(__DIR__ . '/config.deployment.php', [])
);
Do you have an idea which change in the newer version is responsible for this?