thom4parisot / wp-less

WordPress plugin which seemlessly compiles, caches and rebuilds your LESS stylesheets.
https://wordpress.org/plugins/wp-less/
88 stars 40 forks source link

Less_Exception_Compiler #130

Open usizu opened 2 years ago

usizu commented 2 years ago

I getting the following error on page load:

PHP Fatal error:  Uncaught Less_Exception_Compiler: Operation on an invalid type in /home/763995.cloudwaysapps.com/xwxwhbukuz/public_html/wp-content/plugins/wp-less/vendor/wikimedia/less.php/lib/Less/Tree/Operation.php:44
Stack trace:
#0 /home/763995.cloudwaysapps.com/xwxwhbukuz/public_html/wp-content/plugins/wp-less/vendor/wikimedia/less.php/lib/Less/Tree/Expression.php(51): Less_Tree_Operation->compile()
#1 /home/763995.cloudwaysapps.com/xwxwhbukuz/public_html/wp-content/plugins/wp-less/vendor/wikimedia/less.php/lib/Less/Tree/Call.php(44): Less_Tree_Expression->compile()
#2 /home/763995.cloudwaysapps.com/xwxwhbukuz/public_html/wp-content/plugins/wp-less/vendor/wikimedia/less.php/lib/Less/Tree/Expression.php(51): Less_Tree_Call->compile()
#3 /home/763995.cloudwaysapps.com/xwxwhbukuz/public_html/wp-content/plugins/wp-less/vendor/wikimedia/less.php/lib/Less/Tree/Value.php(26): Less_Tree_Expression->compile()
#4 /home/763995.cloudwaysapps.com/xwxwhbukuz/public_html/wp-content/plugins/wp-less/vendor/wikimedia/less.php/lib/Less/Tr in /home/763995.cloudwaysapps.com/xwxwhbukuz/public_html/wp-content/plugins/wp-less/vendor/wikimedia/less.php/lib/Less/Tree/Operation.php on line 44

There doesn't seem to be any reference to any of my .less files or variables etc, so I can't determine the issue. The only thing that seems to influence the error is if my .less file has @import statements in it. If it doesn't i can get it to read some simple rules. But there seems to be no clue as to what exactly inside my imported files is causing the break.

I tried using the other compiler (less.php) but the same issue is there also, except it's more verbose with a few dozen copies of this line preceding the aforementioned Fatal Error:

PHP Notice: Trying to access array offset on value of type null in /home/763995.cloudwaysapps.com/xwxwhbukuz/public_html/wp-content/plugins/wp-less/vendor/oyejorge/less.php/lib/Less/Parser.php on line 1927

Thanks for any help anyone