Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation and Configuration Problems with Bundle #3

Open
powernic opened this issue Oct 12, 2024 · 5 comments
Open

Installation and Configuration Problems with Bundle #3

powernic opened this issue Oct 12, 2024 · 5 comments

Comments

@powernic
Copy link

Hello!

First, thank you for the great project and the additional features you've provided for Sonata Admin through the partITech/sonata-extra bundle. I tried to integrate it into a test project, but encountered some issues during installation and configuration.

Steps to Reproduce:

  1. I created a new project using:
    • PHP >= 8.2
    • Symfony 7.x
    • Latest Sonata Admin Bundle
  2. The admin panel works correctly and is accessible at http://127.0.0.1/admin when using sonata-project/admin-bundle.
  3. After that, I replaced the sonata-project/admin-bundle line in the composer.json file with the following command:
    composer require partitech/sonata-extra

Problems:

  1. After running the composer require partitech/sonata-extra command, I encountered the following dependency issue:

    Problem 1
    - Root composer.json requires partitech/sonata-extra * -> satisfiable by partitech/sonata-extra[dev-main, 1.0.1, ..., 1.0.11].
    - partitech/sonata-extra[dev-main, 1.0.1, ..., 1.0.11] require sonata-project/page-bundle 5.x-dev -> satisfiable by sonata-project/page-bundle[5.x-dev].
    - sonata-project/page-bundle 5.x-dev requires symfony/config ^5.4 || ^6.2 -> found symfony/config[v5.4.0-BETA1, ..., 5.4.x-dev, v6.2.0-BETA1, ..., 6.4.x-dev] but the package is fixed to v7.1.1 (lock file version).
  2. After replacing sonata-project/admin-bundle with partitech/sonata-extra in the composer.json file, I encountered a configuration error when running:

    docker compose up -d --build

    The error message was:

    The child config "default_formatter" under "sonata_formatter" must be configured.

Request:

Could you please provide a working demo project using your bundle so that I can better understand how to integrate it correctly? I also created a minimal demo project that works without errors when using the standard sonata-project/admin-bundle: Sonata Extra Demo. It could be used as a base for showcasing how to set up partitech/sonata-extra.

Any help or guidance on how to properly install and configure your bundle would be greatly appreciated. Thank you for your hard work!

@powernic powernic changed the title Installation and Configuration Problems with partITech/sonata-extra Bundle Installation and Configuration Problems with Bundle Oct 12, 2024
@thomasBourdin
Copy link
Collaborator

Hello @powernic

Thanks for your interest on this project.
Last time I test with Symfony 7.x it failled too. You will need to restrict to 6.4.

I was thinking to release a full demo. Give me a day or two fot this.

@powernic
Copy link
Author

@thomasBourdin I just realized that the repository Sonata Extra Demo was private when I initially shared it with you. I’ve now made it public, so you can access it here: Sonata Extra Demo. Apologies for the confusion.

@GeraudBourdin
Copy link
Collaborator

hi @powernic, @thomasBourdin is working on a sample demo app.
We will msg you as soon as it will be available.

Thanks.

@thomasBourdin
Copy link
Collaborator

Hello @powernic

We have released a first version of the demo site of Sonata-Extra bundle with Symfony 7.2 here : https://github.com/partITech/sonata-extra-demo

Hope you will enjoy using our tool.

Let us know if you have trouble managing items.

Thanks.

@thomasBourdin
Copy link
Collaborator

@powernic You can also use this file to install all automatically :

https://raw.githubusercontent.com/partITech/sonata-extra-demo/refs/heads/main/install-sonata-extra-demo.sh

partITech pushed a commit that referenced this issue Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants