bradp / vv

:globe_with_meridians: Variable VVV - a VVV Site Creation Wizard.‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ :x: This project is no longer maintained. Please update your copy of VVV , which has most of the vv features built in.
GNU General Public License v2.0
1k stars 89 forks source link

vv create loads empty database #311

Open mikehatfield opened 8 years ago

mikehatfield commented 8 years ago

I've been using vv for a while without any issues. The latest site I've created I was presented with the default install WordPress page when loading the site in the browser. I updated the vagrant box and vv to their latest versions and I still have the same problem. The mysql database is created but empty. One other thing I've noticed is that even though during setup in the CLI I set to not install default themes and plugins they are installed anyway.

I've scanned the script messages and things appear to be ok. There is one error that is repeated multiple times. I've truncated the output below:

==> default: Setup MySQL configuration file links...
==> default:  * Copied /srv/config/mysql-config/my.cnf               to /etc/mysql/my.cnf
==> default:  * Copied /srv/config/mysql-config/root-my.cnf          to /home/vagrant/.my.cnf
==> default: service mysql restart
==> default: mysql stop/waiting
==> default: mysql start/running, process 8627
==> default: Initial custom MySQL scripting...
==> default: Initial MySQL prep...
==> default: 
==> default: Start MySQL Database Import
==> default: mysql -u root -proot sitenamehere < sitenamehere.sql
==> default:   * Import of sitenamehere successful
==> default: Databases imported
..
..
==> default: VVV custom site import
==> default: Installing WordPress (release version) in sitenamehere/htdocs...
==> default: Downloading WordPress 4.6.1 (en_US)...
==> default: Using cached file '/root/.wp-cli/cache/core/wordpress-4.6.1-en_US.tar.gz'...
==> default: Success: WordPress downloaded.
==> default: Success: Generated wp-config.php file.
==> default: PHP Fatal error:  Call to undefined function apply_filters() in /srv/www/sitenamehere/htdocs/wp-includes/load.php on line 317
..
..
[Success] New VVV Site Setup: Done! 
Directory: /Users/mike/Documents/business/vagrant-local/www/sitenamehere
URL:       sitenamehere.dev
Username:  admin
Password:  password
mikehatfield commented 8 years ago

I just ran a test and was able to create a new site successfully. However I had to specify a version prior to WordPress 4.6. It worked on two attempts specifying 4.5.3 and 4.5.4. The default latest is currently 4.6.1. 4.6 also failed when trying.

natereist commented 8 years ago

The version in use of wp-cli doesn't work with ≥ 4.6 - PHP Fatal error: Call to undefined function apply_filters() in /srv/www/sitenamehere/htdocs/wp-includes/load.php on line 317

I believe that is coming from vvv and not vv @bradp any idea how to get that updated in a vagrant box that doesn't overwrite when provisioning?

mikehatfield commented 8 years ago

Yup I think that's right on target.