Hello!
I have just updated a Joomla site on localhost (running with xampp) from 3.10.10 to 4.1.5 (Php Version 8.0.19) where I'm using the GK Simplicity Template. Update worked fine, but when I tried to change any template configurations in the templates styles I got the following error:
Undefined constant "DS"
I was able to solve the problem by my own and just wanted to share, in case anybody gets the same error and that this could be fixed with the next template update.
The problem occurs because in most of the files under \templates\gk_simplicity\admin\elements you are using the "DS" contant around line 13. In order to solve it you need to replace the constant with "/".
For example:
gkfonts.php
include_once(JPATH_SITE . DS . 'templates' . DS . 'gk_simplicity' . DS . 'admin' . DS . 'elements' . DS . 'j4' . DS . 'gkfont.php');
needs to be changed to
include_once(JPATH_SITE . '/templates/gk_simplicity/admin/elements/j4/gkfont.php');
After i made this change to all files in this directory i was able to change the template settings in backend again.
Btw you are doing an amazing job and I am very thankful that you are keeping the Gavick templates up to date.
Best regards
Jenny