Title: Exception error
Last modified: August 20, 2016

---

# Exception error

 *  [cwulff](https://wordpress.org/support/users/cwulff/)
 * (@cwulff)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/exception-error/)
 * Getting the following error when I try to register the less stylesheet. Any thoughts?
 * Warning: include() [function.include]: Failed opening ‘/nas/wp/www/cluster-1324/
   uugathering/wp-content/advanced-cache.php’ for inclusion (include_path=’.:/usr/
   share/php:/usr/share/pear’) in /nas/wp/www/cluster-1324/uugathering/wp-settings.
   php on line 58
 * Fatal error: Uncaught exception ‘Exception’ with message ‘parse error: failed
   at `{ .span(@index); }` /nas/wp/www/cluster-1324/uugathering/wp-content/themes/
   uugathering/assets/css/less/mixins.less on line 578′ in /nas/wp/www/cluster-1324/
   uugathering/wp-content/plugins/wp-less/lib/vendor/lessphp/lessc.inc.php:3144 
   Stack trace: #0 /nas/wp/www/cluster-1324/uugathering/wp-content/plugins/wp-less/
   lib/vendor/lessphp/lessc.inc.php(2053): lessc_parser->throwError() #1 /nas/wp/
   www/cluster-1324/uugathering/wp-content/plugins/wp-less/lib/vendor/lessphp/lessc.
   inc.php(114): lessc_parser->parse(‘//?// Mixins?//…’) #2 /nas/wp/www/cluster-
   1324/uugathering/wp-content/plugins/wp-less/lib/vendor/lessphp/lessc.inc.php(
   690): lessc->tryImport(Array, Object(stdClass), Object(stdClass)) #3 /nas/wp/
   www/cluster-1324/uugathering/wp-content/plugins/wp-less/lib/vendor/lessphp/lessc.
   inc.php(277): lessc->compileProp(Array, Object(stdClass), Object(stdClass)) #
   4 /nas/wp/www/cluster-1324/uugathering/wp-content/plugins/wp-less/lib/vendor/
   lessphp/lessc.i in /nas/wp/www/cluster-1324/uugathering/wp-content/plugins/wp-
   less/lib/vendor/lessphp/lessc.inc.php on line 3144
 * [http://wordpress.org/extend/plugins/wp-less/](http://wordpress.org/extend/plugins/wp-less/)

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

 *  Plugin Author [thom4](https://wordpress.org/support/users/oncletom/)
 * (@oncletom)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/exception-error/#post-3470370)
 * Hi,
 * it’s a compilation error.
    Maybe your [@index](https://wordpress.org/support/users/index/)
   value is incorrect and thus your .span mixing generates an invalid behavior.
 *  [a2d](https://wordpress.org/support/users/a2d/)
 * (@a2d)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/exception-error/#post-3470471)
 * I had the same error while trying to get WP-Less working with Roots theme
 * To fix, replace:
    /wp-content/plugins/wp-less/lib/vendor/lessphp/lessc.inc.php
 * and/or if you’re embedding the plugin in a theme, replace e.g.:
    /wp-content/
   themes/[your theme]/lib/wp-less/lib/vendor/lessphp/lessc.inc.php
 * with the latest version from the lessphp github repo
    ([https://github.com/leafo/lessphp](https://github.com/leafo/lessphp))
 * i.e grab the raw file currently here: [http://goo.gl/Ffo5W](http://goo.gl/Ffo5W)
 * Works. Just need to learn ‘less’ now 😉
 *  Plugin Author [thom4](https://wordpress.org/support/users/oncletom/)
 * (@oncletom)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/exception-error/#post-3470480)
 * OK I should definitely update the LESS library; I’m a bit late in the updates
   since I relocated.
 * Feel free to propose a PR on the github project: [https://github.com/oncletom/wp-less](https://github.com/oncletom/wp-less)
 *  Plugin Author [thom4](https://wordpress.org/support/users/oncletom/)
 * (@oncletom)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/exception-error/#post-3470481)
 * It should be fixed in the `1.5.3` release.
 *  Thread Starter [cwulff](https://wordpress.org/support/users/cwulff/)
 * (@cwulff)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/exception-error/#post-3470531)
 * Seems it needs an update again. 🙂
 *  Plugin Author [thom4](https://wordpress.org/support/users/oncletom/)
 * (@oncletom)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/exception-error/#post-3470532)
 * I’ve upgraded the [master version](https://github.com/oncletom/wp-less) of the
   extension. Let me know if it’s solving the problem or breaking something.
 * It was definitely [an issue planned to be fixed](https://github.com/oncletom/wp-less/issues/42);
   hence some BC changes so people should update carefully.
 *  Thread Starter [cwulff](https://wordpress.org/support/users/cwulff/)
 * (@cwulff)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/exception-error/#post-3470533)
 * I manually updated the lessc.inc.php and it worked fine.

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

The topic ‘Exception 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
 * 3 participants
 * Last reply from: [cwulff](https://wordpress.org/support/users/cwulff/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/exception-error/#post-3470533)
 * Status: not resolved