You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installing Dokan from WP-CLI wp plugin install dokan-lite --activate is giving the following error:
Installing Dokan Multivendor Marketplace (2.7.8)
Downloading installation package from https:\/\/downloads.wordpress.org\/plugin\/dokan-lite.zip...
Unpacking the package...
Installing the plugin...
Plugin installed successfully.
Activating 'dokan-lite'...
Warning: Some code is trying to do a URL redirect. Backtrace:
#0 WP_CLI\\Utils\\wp_redirect_handler(http:\/\/tareq.example.com\/wp-admin\/index.php?page=dokan-setup)
#1 call_user_func_array(WP_CLI\\Utils\\wp_redirect_handler, Array ([0] => http:\/\/tareq.example.com\/wp-admin\/index.php?page=dokan-setup)) called at [\/var\/www\/tareq.example.com\/htdocs\/wp-includes\/class-wp-hook.php:288]
#2 WP_Hook->apply_filters(http:\/\/tareq.example.com\/wp-admin\/index.php?page=dokan-setup, Array ([0] => http:\/\/tareq.example.com\/wp-admin\/index.php?page=dokan-setup,[1] => 302)) called at [\/var\/www\/tareq.example.com\/htdocs\/wp-includes\/plugin.php:203]
#3
Instead of calling wp_redirect() forcefully after installation, we should use a transient with an expiration time of maybe 10 seconds and redirect the user to the setup page depending on the transient. More is here.
The text was updated successfully, but these errors were encountered:
Installing Dokan from WP-CLI
wp plugin install dokan-lite --activate
is giving the following error:Instead of calling
wp_redirect()
forcefully after installation, we should use a transient with an expiration time of maybe 10 seconds and redirect the user to the setup page depending on the transient. More is here.The text was updated successfully, but these errors were encountered: