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

Error when site was moved

Started by Muut Archive 11 years ago · 3 replies · 337 views
11 years ago

I moved one of my Grav development installations from one Linux PC to another, and now when I try to view it in my local environment I get this error:

TXT
Fatal error: Uncaught exception 'RuntimeException' with message 'Please run: <i>bin/grav install</i>' in /opt/lampp/htdocs/projects/cbasites/index.php:11 Stack trace: #0 {main} thrown in /opt/lampp/htdocs/projects/cbasites/index.php on line 11

So, I went into said folder and, after adding the permission to execute, ran ./bin/grav install. As a result, I got this error:

TXT
ERROR Missing .dependencies file in user/ folder
ERROR invalid YAML in .dependencies

Any idea what I did wrong and how to fix it?

11 years ago

First error occurs because it couldn't find the vendor/ folder, so you didn't move all.

Second error occured because it couldn't find any .dependencies file at the root of Grav which is included by default.

I suggest you zip up the entire local site, copy it over to your other PC and extract it. That way you will get all the files.

11 years ago

Oh OK, great. Thanks! And I should do the same when uploading it to a server with Git or FTP?

11 years ago

Really you need to ensure that you first have everything you need on the site to run, then you can use FTP/Git to sync the stuff that does potentially change, ie, the user/ folder.

Then you can independently upgrade the system/ folder with Grav's built-in GPM.

This is what we do on this site.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1330 9 years ago
Archive · by Muut Archive, 9 years ago
2 922 9 years ago
Archive · by Muut Archive, 9 years ago
2 4052 9 years ago
Archive · by Muut Archive, 9 years ago
1 2930 9 years ago
Archive · by Muut Archive, 9 years ago
3 1109 9 years ago