Title: Version 1.9 Compile Error
Last modified: September 3, 2021

---

# Version 1.9 Compile Error

 *  Resolved [bmulhollandrecital](https://wordpress.org/support/users/bmulhollandrecital/)
 * (@bmulhollandrecital)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/version-1-9-compile-error/)
 * My site auto-upgraded to 1.9, had a compile error with the plugin, and went down
   as a result. It’s hosted with WordPress.com so I can’t imagine the hosting or
   ops setup is an issue. Error also doesn’t look to be an interaction with any 
   plugin or theme, since the error seems to be contained to the wp-less folder –
   but I could totally be wrong there.
 *     ```
       Current theme: Stack Child (version 10.5.21)
       Current plugin: WP LESS (version 1.9.0)
       PHP version 7.3.30
   
       Error Details
       =============
       An error of type E_COMPILE_ERROR was caused in line 50 of the file /srv/htdocs/wp-content/plugins/wp-less/lib/Plugin.class.php. Error message: require(): Failed opening required '/srv/htdocs/wp-content/plugins/wp-less/lib/../vendor/wikimedia/less.php/lessc.inc.php' (include_path='/:.')
       ```
   

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

 *  Plugin Author [thom4](https://wordpress.org/support/users/oncletom/)
 * (@oncletom)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/version-1-9-compile-error/#post-14835577)
 * Oops, sorry for the troubles.
 * I’m on it.
 *  Plugin Author [thom4](https://wordpress.org/support/users/oncletom/)
 * (@oncletom)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/version-1-9-compile-error/#post-14835672)
 * Version `1.9.3-2` should fix the issue.
 *  Plugin Author [thom4](https://wordpress.org/support/users/oncletom/)
 * (@oncletom)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/version-1-9-compile-error/#post-14835930)
 * Other people confirms the latest version fixes this problem.
 *  Thread Starter [bmulhollandrecital](https://wordpress.org/support/users/bmulhollandrecital/)
 * (@bmulhollandrecital)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/version-1-9-compile-error/#post-14836178)
 * Yeah I just tried upgrading to 3-3 and am still getting a critical site error–
   perhaps because the error is cached?
 * I’ll be reverting for now.
 *  Thread Starter [bmulhollandrecital](https://wordpress.org/support/users/bmulhollandrecital/)
 * (@bmulhollandrecital)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/version-1-9-compile-error/#post-14871406)
 * Yeah I can again confirm that this is NOT fixed in the latest version.
 * Fatal error: Uncaught Exception: load error: failed to find /srv/htdocs/wp-content/
   https://recital.software/wp-content/themes/stack/style/css/theme.less in /srv/
   htdocs/wp-content/plugins/wp-less/vendor/wikimedia/less.php/lessc.inc.php:144
 * Clearing my cache did not work. Neither did upgrading PHP.
 *  Thread Starter [bmulhollandrecital](https://wordpress.org/support/users/bmulhollandrecital/)
 * (@bmulhollandrecital)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/version-1-9-compile-error/#post-14871412)
 * It’s also pretty obvious from the error that the path is being constructed wrong
   and that’s the problem. Unfortunately there’s too much indirection in the plugin
   source for me to debug it quickly.
 *  [Kari Sharp](https://wordpress.org/support/users/karisharp/)
 * (@karisharp)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/version-1-9-compile-error/#post-14931305)
 * The $lessfile_in_theme variable is not working properly in /wp-content/plugins/
   wp-less/lib/Stylesheet.class.php on line 88 (I am using version 1.9.3-3 of the
   plugin)
 * I temporarily fixed this by adding the path directly to the plugin file (at least
   to get it working until the plugin is fixed).
 * 1. Comment out line 89: $this->source_path = WP_CONTENT_DIR . DIRECTORY_SEPARATOR.
   $lessfile_in_theme;
    2. Add a new line with the correct path to this filename:
   $this->source_path = ‘/www/wp-content/themes/yourthemename/style/css/theme.less’;
 * This will work until the plugin is updated and the file is overwritten, but hopefully
   at that point the variable will be fixed and working properly.

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

The topic ‘Version 1.9 Compile Error’ 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/)

 * 7 replies
 * 9 participants
 * Last reply from: [Kari Sharp](https://wordpress.org/support/users/karisharp/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/version-1-9-compile-error/#post-14931305)
 * Status: resolved