yii2-assets-auto-compress icon indicating copy to clipboard operation
yii2-assets-auto-compress copied to clipboard

RuntimeException : Unclosed regex pattern at position: 266184

Open Er-Kalpesh opened this issue 7 years ago • 7 comments

Getting error like :

RuntimeException Unclosed regex pattern at position: 266184

  1. in C:\xampp\htdocs\freemelroseheights_protected\vendor\tedivm\jshrink\src\JShrink\Minifier.php at line 525

  2. in C:\xampp\htdocs\freemelroseheights_protected\vendor\tedivm\jshrink\src\JShrink\Minifier.php at line 240 – JShrink\Minifier::saveRegex()

  3. in C:\xampp\htdocs\freemelroseheights_protected\vendor\tedivm\jshrink\src\JShrink\Minifier.php at line 144 – JShrink\Minifier::loop() . . .

Er-Kalpesh avatar Mar 03 '17 16:03 Er-Kalpesh

i get the same error, when i add a module to my project, before that it works properly.

masihfathi avatar Mar 10 '17 11:03 masihfathi

I get the same error too.

yongshengli avatar Apr 28 '17 02:04 yongshengli

I solved this problem by turning on the jsfileremoutecompile option. I don't know which place, but it helped.

6elkir avatar Oct 02 '18 18:10 6elkir

Same issue. Appeared after update some libs and Yii to v2.0.16.1. After disable jsFileCompile option - it working fine, but if I need jsFileCompile have this error.

pa-konovalov avatar Mar 21 '19 15:03 pa-konovalov

@pa-konovalov Honestly difficult to catch this error ... If your project is online, could you link to it?

skeeks-semenov avatar Mar 21 '19 16:03 skeeks-semenov

I get the same error, when i use a CKEditor 4. I connected him without an asset bundle for correct working. Maybe there is a better solution?

laker-ls avatar Sep 04 '19 07:09 laker-ls

I have same problem with Tinymce 5. I disabled jsFileCompile option, but is not a solution to the problem. Maybe there are already other solutions?

agrechuha avatar Feb 09 '21 11:02 agrechuha