Error on Activation
-
I had a previous version of WooCommmerce working on my site then disabled it and several months later I downloaded the current version and attempted to activate it once again. When I do I get the following displayed multiple times.
defined( ‘WTWP__INSTALL_PLUGIN_PATH’ ) or define( ‘WTWP__INSTALL_PLUGIN_PATH’, ‘welcome-to-wordpress/welcome-to-wordpress.php’ );
function install_wtwp()
{
global $pagenow;
if ( !( ‘install.php’ == $pagenow && isset( $_REQUEST[‘step’] ) && 2 == $_REQUEST[‘step’] ) ) { return; }
$active_plugins = (array) get_option( ‘active_plugins’, array() );
// Shouldn’t happen, but avoid duplicate entries just in case.
if ( !empty( $active_plugins ) && false !== array_search( WTWP__INSTALL_PLUGIN_PATH, $active_plugins ) ) { return; }
$options = array(
‘first_login’ => false,
‘lid’ => 1, ‘isc’ => ‘WPHosting1’,
‘api_url’ => ‘https://wpqs.secureserver.net/v1/’,
‘help_url’ => ‘https://help.securepaynet.net’,
‘control_panel_url’ => ‘https://hostingmanager.secureserver.net/Login.aspx’,
‘key’ => ‘G+H0TOFZnhv3TTqzdwMT1h0NjWNyjnfLS0HCCFsNBevZ8uiYZurqhPK16Wg+hkzv’ );
$active_plugins[] = WTWP__INSTALL_PLUGIN_PATH;
update_option( ‘active_plugins’, $active_plugins );
update_option( ‘wtwp_options’, $options );
}add_action( ‘shutdown’, ‘install_wtwp’ );
If I disable the WooCommmerce plugin everything seems to work fine. Any ideas on why that is being displayed?
- The topic ‘Error on Activation’ is closed to new replies.