I can’t seem to use WP compiler anymore after updating to WordPress 6.1.1. When I change a .scss file and update it, it gives this error:
Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in?/home/public/sites/https://www.dutchrosemedia.com/wp-content/plugins/wp-compiler/vendor/leafo/scssphp/src/Parser.php?on line?926
and nothing works anymore. When I change the code back though, it works again. But I am sure my code is correct. Even a simple thing like adding background color gives this error.
Please help
]]>In “production mode“, when I press the ‘Compile’ button the sass files are compiled and compressed correctly, but JS (using js.manifest) generates an empty file. The empty file has only a comment: “THIS JS WAS COMPILED AND OPTIMIZED, USING THE WP COMPILER PLUGIN …”
Interestingly, if I don’t use the file js.manifest, the resulting file contains compressed sources, but unfortunately the order of the scripts is incorrect.
I will note that in the “development mode” everything works great in any configuration!
I will be grateful for correcting this bug.
Thank you very much!
I added an scss file to the compiler, it has the path as “{{theme}}/style.scss”.
When I click “Done Editing” it displays the path correctly:
Source: D:\Hosting\2833344\<some_more_pathing>\style.scss
Target: D:\Hosting\2833344\<some_more_pathing>\style.css
When I click “Save Changes” and try to compile it thinks the paths are:
Source: D:\Hosting833344\<some_more_pathing>\style.scss
Target: D:\Hosting833344\<some_more_pathing>\style.css
It appears to be reading the “\2” as an escaped character instead of a path separator.
Thanks!
]]>Hello, I love this plugin! Very handy, however this morning I received my first error:
WP Compiler Error:
less error: ParseError: Unexpected input in vpf.less on line 376, column 2 374| cursor:pointer; 375| position: relative; 376| &: { 377| after { 378| background: url(\”../images/icons-sprite.png\”) no-repeat scroll -278px 0; 379| content: \”\”;
Pastebin links for the less file is as follows:
https://pastebin.com/AUXpnrdU
Let me know what you think, if this may be error on my part or if this is a bug
]]>