Closed lukasbestle closed 8 years ago
Could you please try adding the license to the config
file directly and test if that works? Also: Which Kirby and Panel version are you using?
Adding the license directly does work. However, now I'm noticing that the license widget isn't appearing in the dashboard even if I remove all references to the license from my config. I was assuming the absence of that widget meant that my license was being recognized, but perhaps not. Some simple debugging leads me to think that the config file might not be able to access a license file in another part of the directory structure (trying file_exists on every version of the file location I can think of and none of them seem to hit). I might try this with the licenses stored in a subfolder of config and see if the method of inclusion is the culprit. If that works I'll close this.
Putting the license.php file in a subfolder of site/config seems to have resolved this. I'm not sure if the license widget not appearing on the dashboard is a bug, but, in any case, it's not this bug. Feel free to close.
Thanks for the reply. You should be able to load your license files from your custom site.php
based on the current domain. You can also set the license directly from there (with a switch
block) without using separate files.
The widget is only displayed on non-localhost servers. It won't be displayed when testing locally.
Moved from getkirby/kirby#498, original issue by @cchimi: