terminal42 / contao-node

Manage content centrally as nodes and reuse them everywhere.
MIT License
29 stars 8 forks source link

Non-existent service #23

Closed bytehead closed 4 years ago

bytehead commented 4 years ago

I've updated terminal42/contao-node to version 1.3.0 and got this error:

In CheckExceptionOnInvalidReferenceBehaviorPass.php line 86:

  The service "terminal42_node.listener.data_container" has a dependency on a  
   non-existent service "codefog_tags.manager.terminal42_node". 

The codefog/tags-bundle is installed at version 3.1.1.

bytehead commented 4 years ago

A downgrade solves the issue (temporarily):

codefog/tags-bundle (3.1.1 => 2.1.5)
terminal42/contao-node (1.3.0 => 1.1.3)
qzminski commented 4 years ago

I am not able to reproduce the issue 🤔 I assume you get that error in the backend, but where exactly? For me all views seem to work properly.

bytehead commented 4 years ago

I do get this on composer update during cache warmup.

bytehead commented 4 years ago

I don't use a managed edition - just the core-bundle in a plain Symfony project.

fritzmg commented 4 years ago

The change was introduced in https://github.com/terminal42/contao-node/commit/7f9ecbdf72f0575da26fab02fd877f3eabfd0331 - the missing service is now defined via the Contao Manager Plugin, which will only work in the Managed Edition.

qzminski commented 4 years ago

If you don't use a managed edition then you likely have to add the following configuration on the app level:

codefog_tags:
    managers:
        terminal42_node:
            source: 'tl_node.tags'

Please let me know if it worked, then I will add a necessary description to the README.

bytehead commented 4 years ago

Works perfectly 👌

bytehead commented 4 years ago

Thank you!