modx-pro / pdoTools

Library for creating fast snippets for MODX Revolution.
95 stars 87 forks source link

When using Fenom "Unexpected token" in Error log #142

Closed adamwintle closed 9 years ago

adamwintle commented 9 years ago

Since using Fenom templates the MODX Error Log now has many occurrences of this:

[2015-08-31 17:06:56] (ERROR @ /index.php) Unexpected token ',' in 3b510f939b78b6681b55cde64b345228 line 76, near '{3,' <- there

I have debug the script, and on the front-end they are find, but this error keep occurring many times.

What is this? 3b510f939b78b6681b55cde64b345228?

bezumkin commented 9 years ago

The answer is here.

3b510f939b78b6681b55cde64b345228 is tmp name made from content of template.

adamwintle commented 9 years ago

I use HTML5 pattern on a form for minimum character input:

<input pattern=".{3,}">

Which causes the above MODX Error, I think this is conflicting with pdoTools Fenom. Should this with spaces fix it, or something better?

pattern=".{ 3, }"

bezumkin commented 9 years ago

Yes, i think that must be enough.