vccw
vccw copied to clipboard
install theme with zip package
Operating System: Windows 10 Pro Vagrant Version: 2.0.0 Virtual Box Version: 5.1.16
Hi, On my site.yml i have :
theme:
- /vagrant/themes/Divi-3.0.82.zip
- /vagrant/themes/mytheme2015.zip
But i have is error :
TASK [Run `wp theme is-installed`] *********************************************
fatal: [vccw.test]: FAILED! => {"changed": true, "cmd": ["wp", "theme", "is-installed", "[u/vagrant/themes/Divi-3.0.82.zip,", "u/vagrant/themes/mytheme2015.zip]", "--path=/var/www/html/"], "delta": "0:00:08.609581", "end": "2017-10-16 13:57:39.462512", "failed": true, "rc": 1, "start": "2017-10-16 13:57:30.852931", "stderr": "Error: Too many positional arguments: u/vagrant/themes/mytheme2015.zip]", "stdout": "", "stdout_lines": [], "warnings": []}
...ignoring
and
TASK [Run `wp theme activate`] *************************************************
fatal: [vccw.test]: FAILED! => {"changed": true, "cmd": ["wp", "theme", "activate", "[u/vagrant/themes/Divi-3.0.82.zip,", "u/vagrant/themes/mytheme2015.zip]", "--path=/var/www/html/"], "delta": "0:00:07.603451", "end": "2017-10-16 13:57:47.214039", "failed": true, "rc": 1, "start": "2017-10-16 13:57:39.610588", "stderr": "Error: Too many positional arguments: u/vagrant/themes/mytheme2015.zip]", "stdout": "", "stdout_lines": [], "warnings": []} to retry, use: --limit @/vagrant/provision/playbook.retry
I thinking wp theme is-installed don't work with url zip package but i have no idea about this error "Too many positional arguments".
see: https://developer.wordpress.org/cli/commands/theme/is-installed/
Could i have some help please
Ah, VCCW doesn't support to install multiple themes, because WordPress can't activate two or more themes at once.
wp theme is-installed don't work with url zip package
You are right. But I have no idea to solve the problem for now.
Thanks 😊
Thanks for you anwser
VCCW doesn't support to install multiple themes
Maybe add a comment : the only theme which you want to install and activate lol :wink:
I will use provision-post.sh script instead.
For the problem :
wp theme is-installed don't work with url zip package
Maybe could you add test in worpress.yml near #Check exist Theme or add a comment : zip theme are not allowed ??
@prbond
Thanks for advice, could you give us a PR? Because I am a Japanese, so I am not good at English very much. 😄
@miya0001
Yes, if you want English is not my first language too :cry:
English is not my first language too
Oh! I am sorry!!