Kunena / Kunena-Forum

Kunena Forum - Forum / Bulletin Board / Discussions component for Joomla - This is the 6.x/5.x main development branch. Please do not open issues regarding earlier versions of Kunena
https://www.kunena.org
GNU General Public License v3.0
1.75k stars 811 forks source link

Template Edit CSS and Edit SCSS buttons not working #8997

Closed Ruud68 closed 2 years ago

Ruud68 commented 2 years ago

Describe the bug

To Reproduce select template click edit css or edit scss

Expected behavior edit screen for css or scss

Actual result page reloads, nothing (visible) happens

Screenshots Peek 2022-05-13 14-07

System information (please complete the following information)

Joomla version: 4.1.3 Kunena version: K6.0.0RC3

rich20 commented 2 years ago

https://github.com/Kunena/Kunena-Forum/issues/8547 It's the same, so I'll close the other one.

Ruud68 commented 2 years ago

sorry, didn't check for duplicates, was doing this quickly because otherwise i would forget :)

rich20 commented 2 years ago

Not a problem :)

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity.

erikthegamer1242 commented 2 years ago

Sorry for necroposting but I am having the same issues and just wondering when will it be resolved?

rich20 commented 2 years ago

Now we have these errors

Edit CSS

Warning: foreach() argument must be of type array|object, bool given in /.../administrator/components/com_kunena/tmpl/template/choosecss.php on line 47

Edit SCSS

| Function | Location 1 | () | JROOT/libraries/src/MVC/View/HtmlView.php:416 2 | Joomla\CMS\MVC\View\HtmlView->loadTemplate() | JROOT/libraries/src/MVC/View/HtmlView.php:199 3 | Joomla\CMS\MVC\View\HtmlView->display() | JROOT/administrator/components/com_kunena/src/View/Template/HtmlView.php:87 4 | Kunena\Forum\Administrator\View\Template\HtmlView->display() | JROOT/libraries/src/MVC/Controller/BaseController.php:635 5 | Joomla\CMS\MVC\Controller\BaseController->display() | JROOT/administrator/components/com_kunena/src/Controller/DisplayController.php:55 6 | Kunena\Forum\Administrator\Controller\DisplayController->display() | JROOT/libraries/src/MVC/Controller/BaseController.php:668 7 | Joomla\CMS\MVC\Controller\BaseController->execute() | JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:139 8 | Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() | JROOT/libraries/src/Component/ComponentHelper.php:351 9 | Joomla\CMS\Component\ComponentHelper::renderComponent() | JROOT/libraries/src/Application/AdministratorApplication.php:139 10 | Joomla\CMS\Application\AdministratorApplication->dispatch() | JROOT/libraries/src/Application/AdministratorApplication.php:182 11 | Joomla\CMS\Application\AdministratorApplication->doExecute() | JROOT/libraries/src/Application/CMSApplication.php:290 12 | Joomla\CMS\Application\CMSApplication->execute() | JROOT/administrator/includes/app.php:61 13 | require_once() | JROOT/administrator/index.php:32

System information

Desktop

erikthegamer1242 commented 2 years ago

How did you get the logs?

xillibit commented 2 years ago

You need to apply the last change : https://github.com/Kunena/Kunena-Forum/pull/9227 and doing edit CSS

rich20 commented 2 years ago

It seems to be a problem with the upper case letters and the resulting different paths. If I replace the S with a lower case letter in both the chooseScss and editScss files, the edit window opens and a custom.scss is also created. https://github.com/Kunena/Kunena-Forum/tree/K6.0/src/admin/tmpl/template However, the entered content is not saved.

The same should be the case with edit Css, but here the following error occurs, so I cannot test it. Warning: foreach() argument must be of type array|object, bool given in /.../administrator/components/com_kunena/tmpl/template/choosecss.php on line 47

xillibit commented 2 years ago

Now it can loads the differents CSS and SCSS files, but i need to work another time on it

rich20 commented 2 years ago

Now it can loads the differents CSS and SCSS files, but i need to work another time on it

Ok. These errors are still present at the moment.

Edit CSS

Edit SCSS

500 Layout default not found.

Call stack

| Function | Location

1 | () | JROOT/libraries/src/MVC/View/HtmlView.php:416 2 | Joomla\CMS\MVC\View\HtmlView->loadTemplate() | JROOT/libraries/src/MVC/View/HtmlView.php:199 3 | Joomla\CMS\MVC\View\HtmlView->display() | JROOT/administrator/components/com_kunena/src/View/Template/HtmlView.php:128 4 | Kunena\Forum\Administrator\View\Template\HtmlView->display() | JROOT/libraries/src/MVC/Controller/BaseController.php:635 5 | Joomla\CMS\MVC\Controller\BaseController->display() | JROOT/administrator/components/com_kunena/src/Controller/DisplayController.php:55 6 | Kunena\Forum\Administrator\Controller\DisplayController->display() | JROOT/libraries/src/MVC/Controller/BaseController.php:668 7 | Joomla\CMS\MVC\Controller\BaseController->execute() | JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:139 8 | Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() | JROOT/libraries/src/Component/ComponentHelper.php:351 9 | Joomla\CMS\Component\ComponentHelper::renderComponent() | JROOT/libraries/src/Application/AdministratorApplication.php:139 10 | Joomla\CMS\Application\AdministratorApplication->dispatch() | JROOT/libraries/src/Application/AdministratorApplication.php:182 11 | Joomla\CMS\Application\AdministratorApplication->doExecute() | JROOT/libraries/src/Application/CMSApplication.php:290 12 | Joomla\CMS\Application\CMSApplication->execute() | JROOT/administrator/includes/app.php:61 13 | require_once() | JROOT/administrator/index.php:32