Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Can't create a new theme

Started by Muut Archive 9 years ago · 1 replies · 483 views
9 years ago

Hi,

just wanted to start a new theme for my own website. Therefore I set up a new Grav environment, installed devtools and then tried to execute bin/plugin devtools new-theme. First I got an error about an T_STRING problem, which was solved by modifying the first line in bin/plugin to #!/usr/bin/env php55, since Domainfactory uses different PHP versions on their servers.

With php55 the version 5.5.30 is executed, so I thought it might work now. In fact, it did not:

YAML
X-Powered-By: PHP/5.5.30
Content-type: text/html

FATAL: Must be run from ROOT directory of Grav!

In fact I am in the root directory of this Grav installation, otherwise I wouldn't be able to call bin/plugin.

Any hints on this?

Regards, Thomas

9 years ago

In case of Domainfactory you have to modify the header of bin/plugin to the following line:
!/usr/bin/env php5-55LATEST-CLI
This is a link to the currently latest PHP 5.5 CLI version (as of 24.01.2017 it's version 5.5.38)

Thanks to rhukster for guiding me.

Regards, Thomas

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1346 9 years ago
Archive · by Muut Archive, 9 years ago
2 933 9 years ago
Archive · by Muut Archive, 9 years ago
2 4060 9 years ago
Archive · by Muut Archive, 9 years ago
1 2945 9 years ago
Archive · by Muut Archive, 9 years ago
3 1117 9 years ago