The constant WP_PLUGIN_DIR is already defined in /wp-includes/default-constants.php. A constant can only be defined once so PHP throws a warning. If you’re comfortable working in source code go to the plugin file /wp-content/plugins/wp-ngrok/core.php and modify line 106 to include a test for the presence of the constant:
change :
define( 'WP_PLUGIN_DIR', $server_proto . $_SERVER['HTTP_HOST'] );
to:
if (!defined('WP_PLUGIN_DIR')) {
define( 'WP_PLUGIN_DIR', $server_proto . $_SERVER['HTTP_HOST'] );
}
The only problem with this fix is that if the plugin is updated the change will probably be overwritten. Hopefully the developer sees this and applies a fix.
-
This reply was modified 5 years, 2 months ago by overtureweb.
-
This reply was modified 5 years, 2 months ago by overtureweb.
-
This reply was modified 5 years, 2 months ago by overtureweb.