Why there is no updates…not compatible with wordpress 5.5…if i install it shows lots of errors..
]]>I’m trying to learn how to use this Plugin but I cannot locate any documentation.
Specifically, I have a Theme and I would like to create a LESS file and ensure it’s compiled and included into my Theme properly.
]]>Hi,
I have recently purchased a theme called The Core by ThemeFuse. This theme installs the Less PHP Compiler plugin for required functionality. However, this plugin results in an error similar to the below, on installation.
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 82 bytes) in …/wp-content/plugins/lessphp/less-php/less.php on line 2772
Some of the related system info:
WordPress version 4.5.2
Less plugin version 2.0.1
—-
Memory limit: 128M
PHP version: 5.3.29
MySQL version: 5.6.30
Curl version: 7.38.0 / SSL: OpenSSL/1.0.1e / libz: 1.2.3
OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013
MCrypt: Yes
Please advise if there are any known issues that could result in the error that I am experiencing, or if you need more information to determine any possible causes.
Kind regards, wh
]]>I can’t install the Less PHP Compiler Plugin.
When I try… happen the error’s bellow:
Warning: require_once(__DIR__/less-php/less.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/html/MYSITE/web/wordpress/wp-content/plugins/lessphp/less-plugin.php on line 12
Fatal error: require_once() [function.require]: Failed opening required ‘__DIR__/less-php/less.php’ (include_path=’.:/usr/share/pear’) in /var/www/html/MYSITE.com.br/web/wordpress/wp-content/plugins/lessphp/less-plugin.php on line 12
How I can Fix that?
]]>Hello,
We use this plugin in one of our themes and we have a lot of .less
files so very often php throws error because memory limit was reached.
We can’t call in theme ini_set(...)
because it will not pass Theme Check.
Can you please add in plugin the following line?
@ini_set( 'memory_limit', apply_filters( 'admin_memory_limit', WP_MAX_MEMORY_LIMIT ) );
]]>
this is how to compile the bootstrap 3 less files, including caching, so the file is only recompiled when a less file has changed:
function my_enqueue_scripts(){
$less_files = array( get_stylesheet_directory() . '/less/bootstrap.less' => '/mysite/' );
$options = array( 'cache_dir' => get_stylesheet_directory() . '/lesscache' );
$css_file_name = Less_Cache::Get( $less_files, $options );
wp_enqueue_style( 'bootstrap', get_stylesheet_directory_uri() . '/lesscache/'.$css_file_name);
}
// Uncomment this to add a additional scripts
add_action( 'wp_enqueue_scripts', 'my_enqueue_scripts' );
if you want to use bootstrap variables in your own less file (which you probably do), simply stick this on top
@import “/less/bootstrap.less”;
and process your own less file instead of bootstrap.less.
you dont need anything else, just install the plugin and above code.
and check here to see detailled explanation:
https://github.com/oyejorge/less.php
greets and thanks for this great plugin! less just became much more… useful. (after the trusty wp-less plugin failed compiling bootstrap 3)
]]>I think you should use dirname(__FILE__)
instead of __DIR__
to support users that still use PHP 5.2. Maybe that’s old, but WordPress itself supports PHP 5.2.4 or greater.
Where is GitHub Repository?
]]>