Can't activate default theme Croogo/Core at Admin - Extensions - Themes!

33 views
Skip to first unread message

Alexander VamShop

unread,
Jun 5, 2018, 1:09:06 PM6/5/18
to Croogo
Hi!

How to activate default theme Crogo/Core at Admin - Extensoins - Theme.

When i click the Activate button, i have 404 Nof Found error: 

/admin/extensions/themes/activate/Croogo%252FCore

Another themes (without slash at the name) activated successfully.


Alexander VamShop

unread,
Jun 11, 2018, 4:53:16 PM6/11/18
to Croogo
Possible solution:

/app/vendor/croogo/croogo-core/Extensions/src/Controller/Admin/ThemesContoller.php

Change:

    public function activate($theme = null)
    {
   
    $theme = urldecode($this->request->query('name'));


to:

    public function activate($theme = null)
    {
   
    $theme = urldecode($this->request->query('name'));

and change code at /app/vendor/croogo/croogo-core/Extensions/src/Template/Admin/Themes/index.ctp:

                $out .= $this->Html->tag('div', $this->Form->postLink(__d('croogo', 'Activate'), [
                        'action' => 'activate',
                        urlencode($themeName),

to:

                $out .= $this->Html->tag('div', $this->Form->postLink(__d('croogo', 'Activate'), [
                        'action' => 'activate',
                        'name' => urlencode($themeName),
Reply all
Reply to author
Forward
0 new messages