You probably have a conflict with another plugin that is also trying to fix HTTPS detection. Add this line to your wp-config.php file, above the lines about <code>ABSPATH</code>. You can then change this plugin back to default settings before proceeding.