• My setup: WordPress Multisite with MU Domain Mapping plugin

    I enqueue my LESS style sheet with get_stylesheet_directory_uri(). Works wit Domain Mapping disabled. But not with Domain Mapping enabled.

    Warning: filemtime(): stat failed for /home/www.mywebsite.co/wp-contenthttps://sub.mywebsite.com/wp-content/themes/mytheme/css/style.less in /home/www.mywebsite.com/wp-content/plugins/wp-less/lib/Stylesheet.class.php on line 92

    Fatal error: Uncaught exception ‘Exception’ with message ‘load error: failed to find /home/…/wp-contenthttps://…/style.less’ in /home/…/plugins/wp-less/vendor/oyejorge/less.php/lessc.inc.php:128 Stack trace: #0 /home/…/plugins/wp-less/vendor/oyejorge/less.php/lessc.inc.php(225): lessc->compileFile(‘/home/…’) #1 /home/…/plugins/wp-less/lib/Compiler.class.php(75): lessc->cachedCompile(‘/home/…’, true) #2 /home/…/plugins/wp-less/lib/Plugin.class.php(248): WPLessCompiler->cacheStylesheet(Object(WPLessStylesheet), false) #3 /home/…/plugins/wp-less/lib/Plugin.class.php(281): WPLessPlugin->processStylesheet(‘theme-style’, false) #4 [internal function]: WPLessPlugin->processStylesheets() #5 /home/…/plugin.php(525): call_user_func_array(Arr in /home/…/plugins/wp-less/vendor/oyejorge/less.php/lessc.inc.php on line 128

    https://www.ads-software.com/plugins/wp-less/

Viewing 1 replies (of 1 total)
  • Thread Starter technotrust

    (@technotrust)

    I enqueued my style sheet like this:
    wp_enqueue_style('theme-style', get_stylesheet_directory_uri() . '/css/style.less', array(), '1.0.0', 'all');

    And changed it to:
    wp_enqueue_style('theme-style', '/themes/' . get_template() . '/css/style.less', array(), '1.0.0', 'all');

    And now it works again.

Viewing 1 replies (of 1 total)
  • The topic ‘Enabling Domain Mapping breaks WP-LESS’ is closed to new replies.