Unable to activate alidswoo from wp-cli

Flintstone

New Member
I use a wp-cli script for creating my staging instance. This is because you don't allow alidswoo to work on https://staging.mydomain.com so I need to disable alidswoo along with my pixel etc. whenever I am working on my staging site.

This is frustrating because I never know whether my site will work properly when I copy it back from staging... I will log a separate issue about that.

Anyhow, I am able to deactivate alidswoo easily from wp-cli:

Code:
wp plugin deactivate alidswoo

I have never had a problem reactivating a plugin from wp-cli but then when I try to reactivate alidswoo it throws:

Code:
Fatal error: Cannot redeclare woocommerce_variable_add_to_cart() in  on line 0

I would fix this myself but can't because you are using Zend Guard.
 
Last edited:

Georgy

Active Member
Hello! Could you please provide me your Wp credentials to reproduce that issue and check it?
 

Flintstone

New Member
Hello! Could you please provide me your Wp credentials to reproduce that issue and check it?
wp-cli runs from the command line and it isn't really feasible for me to give you root SSH access to my host.

The STR are pretty simple though:

1. Install Wordpress and alidswoo.
2. SSH into your hosting folder containing your Wordpress installation.
3. Most established hosts install wp-cli by default but you can check whether wp-cli is installed by typing
Code:
    wp --info.
.
4. If wp-cli is not installed follow this process
Code:
    curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
    sudo mv wp-cli.phar wp
    chmod +x wp
5. Now use wp-cli to deactivate alidswoo
Code:
    wp plugin deactivate alidswoo
6. Try to reactivate it
Code:
    wp plugin activate alidswoo

The following error will be thrown:

Code:
    Fatal error: Cannot redeclare woocommerce_variable_add_to_cart() in  on line 0
 
Last edited:
Top