contao / core-bundle

[READ-ONLY] Contao Core Bundle
GNU Lesser General Public License v3.0
122 stars 57 forks source link

Error with insert tag flags (refresh) #1537

Closed Clonk-HTML5 closed 6 years ago

Clonk-HTML5 commented 6 years ago

I got following Error in Contao Version: 4.4.18 and Symfony Version 3.3.16:

Unknown insert tag flag "refresh" in {{insert_module::1|refresh}}

Context:

[▼ "contao" => ContaoContext {#31720 ▼ -func: "Contao\InsertTags::doReplace" -action: "ERROR" -username: "anon." -ip: "xxx.xxx.xxx.xxx" -browser: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36" -source: "FE" } ]

Thanks in Regard

m-vo commented 6 years ago

(Disclaimer: I haven't used that before)

But there is no insert tag refresh handled, so the output is to be expected: https://github.com/contao/core-bundle/blob/a51b214899de63f6ed3a105b7f5724641f142fad/src/Resources/contao/library/Contao/InsertTags.php#L970-L1054

Clonk-HTML5 commented 6 years ago

I used the Flag in the old Contao 3.5 Version it was for reload the content of the insert tag everytime the Page is refreshed. In the new Documentation it is also included: https://docs.contao.org/books/manual/4.4/en/04-managing-content/insert-tags.html#insert-tag-flags

But it seems that this Flag makes with the Symfony Caching System no sense anymore. I'll test it in a few Days.

Thank you

fritzmg commented 6 years ago

Related: https://github.com/contao/core/issues/5523