Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restor from git not working #169

Open
martinszy opened this issue Nov 8, 2019 · 1 comment
Open

Restor from git not working #169

martinszy opened this issue Nov 8, 2019 · 1 comment

Comments

@martinszy
Copy link

So I'm trying versionpress, and I activate it, and I push it to github, and I clone it, and I'm trying to restore it, as per:

And I find that when running wp vp restore-site --siteurl='http://localhost/mysite' --require=wp-content/plugins/versionpress/src/Cli/vp.php

The file does not exist. The plugin was not committed to github.

So I manually copy the files and then this happens:

$ wp vp restore-site --siteurl='http://localhost/' --require=wp-content/plugins/versionpress/src/Cli/vp.php
Error: wp-config.php file not found

$ touch wp-config.php
$ wp vp restore-site --siteurl='http://localhost/' --require=wp-content/plugins/versionpress/src/Cli/vp.php
PHP Warning:  Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in ... /wp-content/plugins/versionpress/bootstrap.php on line 14
PHP Warning:  Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in ... /wp-content/plugins/versionpress/bootstrap.php on line 20
Error: Unfortunately, this site was not tracked by VersionPress.
            Therefore, it cannot be restored.
  • VersionPress version: 4.0-beta2
  • WordPress version: 5.2.2
  • OS, webserver, PHP: Linux/Apache
  • Git version: 2.11.0
@martinszy
Copy link
Author

Hi, can you check this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant