WPToolkit installing sets on pre-exiting sites
AnsweredHi there. Been trying to install sets from the wp-toolkit CLI for a few days now but seem to be rather stuck.
I have a set with some plugins and a theme, the set ID is 36. I also have a site setup with wordpress, thats id is 20.
Ive tried to run this command with alot of diffrent formats
wp-toolkit -instance-id 20 --sets -set-id 36 -operation install
wp-toolkit --sets -set-id 36 -instance-id 20 -operation install
wp-toolkit --sets -operation install -instance-id 20 -set-id 36
and much more.
Everytime i run it, it runs, says successfull :
Set has been installed successfully. Installation ID(s): (20)
However when check the files / sites, its completely empty besides the default wp-toolkit plugins / themes.
Anyone have any clue on how this API is supposed to be ran with sets?
Best regards, Jay
-
Hey there! I'm not able to get this to work on my end either, and I'm not finding much documentation for this specific action, so I've reached out to the team and I'll let you know what I find out!
0 -
Always great help as usual Rex! Thanks!
0 -
I spoke with the WP Toolkit team and what I found out was that the commands you are using are correct. Here's the official version I ended up with:
wp-toolkit --sets -operation install -set-id ## -instance-id ##
However, what isn't clear, is what this actually does. This installs the plugins from that set onto that specific instance but it does *not* make the set viewable in the dropdown for that user.
I hope that clarification was helpful, but let me know if you need anything else!
0 -
Hi again Rex. TBH im still lost at what this actually does. Ran it using your format with instance id 20 and set it 36, but still its nothing in the site.
Can't even see the plugin / theme files in wp-content as root, so its not a permission issue. Geniuely belive it not there at all.
Added a picture of set 36 (which looks good):
Best regards, J0 -
That's odd - on my test server I do see things added directly to the plugins directory after running the command. We might need to see a ticket on this since that isn't working on your machine.
I created a set with Really Simple SSL and here's what my plugin directory looks like as of a few minutes ago when I ran the command:
[root@host plugins]# pwd
/home/username/public_html/wp-content/plugins
[root@host plugins]# ll
total 28K
drwxr-xr-x 4 username username 4.0K Jan 17 13:12 .
drwxr-xr-x 7 username username 4.0K Jan 17 13:12 ..
drwxr-xr-x 4 username username 4.0K Jul 22 2020 akismet
-rw-r--r-- 1 username username 259 Apr 28 2021 error_log
-rw-r--r-- 1 username username 2.6K Mar 18 2019 hello.php
-rw-r--r-- 1 username username 28 Jun 5 2014 index.php
drwxr-xr-x 14 username username 4.0K Jan 17 13:12 really-simple-ssl0 -
Heya again!
Okey dokey probaly something funky on my end. Ill set up a ticket.
Best regards, J0 -
If you can post the ticket number here (assuming it's with us) I'd be happy to follow along on my end!
0 -
Ofcourse :) Here is the ticket ID: 95185146
0 -
Thanks for that - I'm following along with that ticket now.
0 -
It looks like PHP was hitting a memory limit on your server and after bumping that, the command worked properly.
0 -
Hi Rex!
Sweeet! Thankfully it was an easy fix!
Thanks for your persistance!
Best regards, J.0 -
I'm glad we could help get this one figured out!
0
Please sign in to leave a comment.
Comments
12 comments