madeyourday / contao-rocksolid-custom-elements

RockSolid Custom Elements Contao Extension
http://rocksolidthemes.com/de/contao/plugins/custom-content-elements
MIT License
48 stars 12 forks source link

Not working with Contao 4.2? #70

Closed christianromeni closed 8 years ago

christianromeni commented 8 years ago

I could not get the custom elements to work with contao 4.2.

I tried around a bit, and I think I could narrow it down to this line in the composer.json:

"symfony/symfony": "~2.8|~3.0",

I guess when using symphony 3.0, its not working. because when I delete 3.0, I can see elements in the frontend. but I get an error in the cache management:

[Symfony\Component\Debug\Exception\ClassNotFoundException]
  Attempted to load class "Psr6CacheClearer" from namespace "Symfony\Component\HttpKernel\CacheClearer".
  Did you forget a "use" statement for another namespace?

So I guess that 3.0 is needed by some new cacheing function that was implemented with 4.2

When running symphony 3.0, I get the following message in the profiler: image

I'm not sure how I could fix that.. Since there is no more error then that...

ausi commented 8 years ago

This should be fixed now, please update the extension to the latest version 1.3.11.

christianromeni commented 8 years ago

Yep.. That seems to fix it! Thx for the fast fix! ;)

christianromeni commented 8 years ago

I would just re-open this, since I think its related.. Could it be that custom content elements are not working with symfony/symfony v3.1.2?

ausi commented 8 years ago

They should run fine with Symfony 3.1.2 and Contao 4.2.0.

What do you mean by “not working”?

christianromeni commented 8 years ago

There is no error at all, nothing.. just not working... And I have another installation where all works well... I'm not sure how we could find a good way to debug it..

ausi commented 8 years ago

It could eventually be related to symlinks, please take a look at the this ticket: http://help.rocksolidthemes.com/discussions/contao/15723

christianromeni commented 8 years ago

It actually is exactly that problem :-) Thx