When using the Cookie Consent Modal plugin (Cookie Consent Modal | Kirby CMS) the JS and CSS can’t be loaded because of an exception.
is_dir(): open_basedir restriction in effect.
File(/home/c102232/domains/theaterconcordia.nl/public_html/media/plugins/michnhokn/cookie-banner/cookie-modal.css) is not within the allowed path(s): (/home/c102232/:/tmp:/var/tmp:/opt/alt/php82/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php82/lib/php/)
The hosting company is saying that the error is in Filesystem/Dir.php and I should solve it there, but that is kind of ridiculous because it’s part of Kirby.
It must be some PHP configuration issue I assume, but I don’t know how to solve it. Anyone has an idea?
I first had 'media' => 'https://www.theaterconcordia.nl/media/', but that resulted in a 404 error, because the path became https://www.theaterconcordia.nl/media//plugins/michnhokn/cookie-banner/cookie-modal.css with double forward slashes.
After removing the forward slash, I get the 500 error again.
The weird thing is that is only failing on that plugin (it’s the only plugin there).
The older folders below media are accessed by Kirby and have data written to, like media\pages.