Title: wp-less fails under https
Last modified: August 20, 2016

---

# wp-less fails under https

 *  Resolved [Marco](https://wordpress.org/support/users/mimecine/)
 * (@mimecine)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/wp-less-fails-under-https/)
 * When I use WP-Less over ssl it fails to find the source file and kills execution.
   Stacktrace when WP_DEBUG is set:
 * Warning: filemtime(): stat failed for /home/demo.localhost/public_html/_/wp-contenthttps://
   kiosk.demo.localhost/wp-content/themes/mni-stack2/style.less in /home/demo.localhost/
   public_html/_/wp-content/plugins/wp-less/lib/Stylesheet.class.php on line 96
 * Fatal error: Uncaught exception ‘Exception’ with message ‘load error: failed 
   to find /home/demo.localhost/public_html/_/wp-contenthttps://kiosk.demo.localhost/
   wp-content/themes/mni-stack2/style.less’ in /home/demo.localhost/public_html/_/
   wp-content/plugins/wp-less/lib/vendor/lessphp/lessc.inc.php:1927
    Stack trace:#
   0 /home/demo.localhost/public_html/_/wp-content/plugins/wp-less/lib/Compiler.
   class.php(24): lessc->__construct(‘/home/demo.localhost/pub…’) #1 /home/demo.
   localhost/public_html/_/wp-content/plugins/wp-less/lib/Plugin.class.php(122):
   WPLessCompiler->__construct(‘/home/demo.localhost/pub…’) #2 /home/demo.localhost/
   public_html/_/wp-content/plugins/wp-less/lib/Plugin.class.php(161): WPLessPlugin-
   >processStylesheet(‘less’, false) #3 [internal function]: WPLessPlugin->processStylesheets(”)#
   4 /home/demo.localhost/public_html/_/wp-includes/plugin.php(403): call_user_func_array(
   Array, Array) #5 /home/demo.localhost/public_html/_/wp-includes/functions.wp-
   styles.php(25): do_action(‘wp_print_styles’) #6 [internal function]: wp_print_styles(”)#
   7 /home/demo.localhost/public_html/_/wp-includes/plugin.php(403): call_ in /home/
   demo.localhost/public_html/_/wp-content/plugins/wp-less/lib/vendor/lessphp/lessc.
   inc.php on line 1927
 * Most likely either WP or WP-Less assumes protocol to be http only…
 * [http://wordpress.org/extend/plugins/wp-less/](http://wordpress.org/extend/plugins/wp-less/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [Marco](https://wordpress.org/support/users/mimecine/)
 * (@mimecine)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/wp-less-fails-under-https/#post-2702812)
 * The fix: In lib/Stylesheet.class.php, line 91, replace WP_CONTENT_URL with content_url()
 *  [coolgates](https://wordpress.org/support/users/coolgates/)
 * (@coolgates)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/wp-less-fails-under-https/#post-2703000)
 * Ran into this issue, too. Fix worked as described. Any reason why this shouldn’t
   be included as an update to the plugin?
 *  Plugin Author [thom4](https://wordpress.org/support/users/oncletom/)
 * (@oncletom)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/wp-less-fails-under-https/#post-2703012)
 * Thanks for the report. I’m publishing an update of the plugin within the day.
 * Sorry for the delay, seriously.
 *  Plugin Author [thom4](https://wordpress.org/support/users/oncletom/)
 * (@oncletom)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/wp-less-fails-under-https/#post-2703013)
 * The problem is addressed here: [https://github.com/oncletom/wp-less/issues/8](https://github.com/oncletom/wp-less/issues/8)
 * I already run my blog over SSL and I did not encounter any problem with SSL.
   
   So maybe you are using it a way I did not expected.
 *  Plugin Author [thom4](https://wordpress.org/support/users/oncletom/)
 * (@oncletom)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/wp-less-fails-under-https/#post-2703021)
 * And the fix included in 1.5.2. I’ve missed the PR.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘wp-less fails under https’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-less.svg)
 * [WP-LESS](https://wordpress.org/plugins/wp-less/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-less/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-less/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-less/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-less/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-less/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [thom4](https://wordpress.org/support/users/oncletom/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/wp-less-fails-under-https/#post-2703021)
 * Status: resolved