ervaude / fs_code_snippet

Extension for TYPO3 CMS to provide a code snippet content element
https://usetypo3.com
8 stars 7 forks source link

Displayed several times #5

Closed e-LUNATIC closed 7 years ago

e-LUNATIC commented 7 years ago

If i add more than 1 code element on a page there only shows the first multiple times.

ervaude commented 7 years ago

What TYPO3 version are you using?

e-LUNATIC commented 7 years ago

7.6.16 with php 7.0 Demo https://ollinet.org/tipps/website-backup-auf-diskstation/ The are 3 different elements but only shows the first one

ervaude commented 7 years ago

Sorry, I cannot confirm that. The extension runs fine in TYPO3 7.6.16 as you can see at https://usetypo3.com ;)

Are you using fluid_styled_content? Please check your TypoScript inclusions, clear your caches and check for other extensions that might interfere with content rendering.

e-LUNATIC commented 7 years ago

yes, using fluid_styled_content. i will check other conflicts.

ervaude commented 7 years ago

Strange. Your example looks like the three code snippet content elements actually contain the same content in the bodytext field. Can you check in your backend and database?

ervaude commented 7 years ago

Cannot tell much more without a backend access.

e-LUNATIC commented 7 years ago

really strange. In the backend everything is normal. https://ollinet.org/fileadmin/unbenannt.jpg

ervaude commented 7 years ago

Hmm now I am curious :) Do you have some kind of caching in place? Like a varnish or nc_stticfilecache that maybe delivers an old version of the page? If you delete the last code snippet, does it disappear from the frontend? And if you create a new one with one line - does it get the wrong content again?

ervaude commented 7 years ago

Also can you flush all caches in the install tool?

e-LUNATIC commented 7 years ago

nc_staticfilecache is deactivated. I have flushed all caches several times also before i open this issue. I have delete the last element and it disappear from frontend. But if i add a new one, regardless which it contains it shows the first.

e-LUNATIC commented 7 years ago

i have the issue!!!!! The problem is the extension min https://typo3.org/extensions/repository/view/min Deactivate and everything is perfect! Please excuse me and thank you for your time and help!

ervaude commented 7 years ago

OK, I'll have a look at that at the weekend maybe there is a bug in the extension that can be fixed.

On a sitenote: I use the extension sourceopt for minifying the HTML output and I use gulp to create a minified frontend build that I include then with TYPO3 without any compression during execution time.

I'm glad you got it working. Closing the issue though.