Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Devtools newtheme inheritance Cannot copy non-existing folder

Solved by pamtbaau View solution

Started by Thomas Bieli 8 years ago · 3 replies · 1174 views
8 years ago

Hey there

I cant create a new inheritance theme with the dev tool. I always get the error "Cannot copy non-existing folder."
If i create a blank or copy theme it works fine.

Steps to reproduce:

  1. download grav 1.4.8 (core or admin does not matter)
  2. install the devtools
  3. bin/plugin devtools newtheme
  4. enter a name, description, name and email
  5. choose inheritance
  6. choose '0' (quark - default theme)

Now I get the error

PVP Version 7.1.9

does anyone have an idea where the problem could lie?

I have already used this function. So it already worked..

greeting
Thoomyy

8 years ago

Found the issue....

TL;DR: Typo in folder to be copied: 'inheritence' must be 'inheritance'.

DevTools is trying to copy folder /user/plugins/devtools/components/theme/inheritance, but folder is actually named /user/plugins/devtools/components/theme/inheritence

Error is thown in Folder.php line 288:

TXT
if (!is_dir($source)) {
    throw new \RuntimeException('Cannot copy non-existing folder.');
}

I have logged an issue. In the meantime, if you rename folder /user/plugins/devtools/components/theme/inheritence to /user/plugins/devtools/components/theme/inheritance it will work.

last edited 08/04/18 by pamtbaau
8 years ago Solution

@Thoomyy Fixed in repo. Please re-install using:

BASH
$ bin/gpm install devtools

... or upgrade via Admin.

8 years ago

Hey pamtbaau

Thanks for help. Now it works fine 🙂

greeting
Thoomyy

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by FrViPofm, 4 weeks ago
4 474 2 weeks ago
Themes & Styling · by johan thomas, 5 years ago
1 801 3 weeks ago
Themes & Styling · by stuart young, 2 months ago
3 660 2 months ago
Themes & Styling · by Sebadamus, 3 months ago
5 680 2 months ago
Themes & Styling · by martynfoster735, 3 months ago
1 642 3 months ago