Git Product home page Git Product logo

Comments (9)

matteocng avatar matteocng commented on July 29, 2024 32

@Mangetsu being unable to update to 1.3.4 and using Symfony >= 2.6, one could try applying the AvanzuAdminThemeExtension.php patch in: 174fd34.

@Saint-Cyr use this in config.yml for Symfony >= 2.6

twig: 
  form_themes: 
    - something.html.twig

instead of this:

twig: 
  form: 
    resources: 
      - something.html.twig

Docs for the current TwigBundle configuration structure (old structure).

from adminthemebundle.

ripnet avatar ripnet commented on July 29, 2024

Same issue for me with Symfony3

from adminthemebundle.

avanzu avatar avanzu commented on July 29, 2024

That's due to some changes in the twig bundle. An Update to 1.3.4 should resolve this issue.

from adminthemebundle.

ripnet avatar ripnet commented on July 29, 2024

Confirmed, 1.3.4 fixed this for me. Thanks @avanzu

from adminthemebundle.

jibundeyare avatar jibundeyare commented on July 29, 2024

Hi,

I'm getting the following error because using Symfony 2.3 :

  [Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]  
  Unrecognized options "form_theme" under "twig"                                 

Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception

  [RuntimeException]                                                         
  An error occurred when executing the "'cache:clear --no-warmup'" command.  

How am I supposed to manage this ? I forced avanzu/admin-theme-bundle:1.3.3 but this won't do for long...

Im' planning to upgrade to Symfony 2.8 soon but in the meantime, I still need to make my back office work ;)

from adminthemebundle.

Mangetsu avatar Mangetsu commented on July 29, 2024

@avanzu I'm enable to update to the specified version due to a conflict with nelmio doc bundle, here is my composer command output :

php composer.phar require twig/twig:1.3.*@dev
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- twig/twig 1.3.0 conflicts with nelmio/api-doc-bundle[2.11.2].
- nelmio/api-doc-bundle 2.11.2 conflicts with twig/twig[1.3.0].
- twig/twig 1.3.0 conflicts with nelmio/api-doc-bundle[2.11.2].
- Installation request for twig/twig 1.3.*@dev -> satisfiable by twig/twig[1.3.0].
- Installation request for nelmio/api-doc-bundle == 2.11.2.0 -> satisfiable by nelmio/api-doc-bundle[2.11.2].

Installation failed, reverting ./composer.json to its original content.

any help to avoid the error "Unrecognized option "form" under "twig" " ?

thank you.

NB: this is my composer info details:

php composer.phar info
cocur/slugify v1.4.1 Converts a string into a slug.
doctrine/annotations v1.2.7 Docblock Annotations Parser
doctrine/cache v1.6.0 Caching library offering an object-oriented API for many cache backends
doctrine/collections v1.3.0 Collections Abstraction library
doctrine/common v2.6.1 Common Library for Doctrine projects
doctrine/dbal v2.5.4 Database Abstraction Layer
doctrine/doctrine-bundle 1.6.2 Symfony DoctrineBundle
doctrine/doctrine-cache-bundle 1.3.0 Symfony Bundle for Doctrine Cache
doctrine/inflector v1.1.0 Common String Manipulations with regard to casing and singular/plural rules.
doctrine/instantiator 1.0.5 A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer v1.0.1 Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.
doctrine/orm v2.5.4 Object-Relational-Mapper for PHP
friendsofsymfony/rest-bundle 1.7.7 This Bundle provides various tools to rapidly develop RESTful API's with Symfony
friendsofsymfony/user-bundle dev-master 88f84f6 Symfony FOSUserBundle
incenteev/composer-parameter-handler v2.1.2 Composer script handling your ignored parameter file
jdorn/sql-formatter v1.2.17 a PHP SQL highlighting library
jms/metadata 1.5.1 Class/method/property metadata management in PHP
jms/parser-lib 1.0.0 A library for easily creating recursive-descent parsers.
jms/serializer 1.1.0 Library for (de-)serializing data of any complexity; supports XML, JSON, and YAML.
jms/serializer-bundle 1.1.0 Allows you to easily serialize, and deserialize data of any complexity
knplabs/knp-menu v2.1.1 An object oriented menu library
knplabs/knp-menu-bundle v2.1.1 This bundle provides an integration of the KnpMenu library
michelf/php-markdown 1.6.0 PHP Markdown
monolog/monolog 1.18.0 Sends your logs to files, sockets, inboxes, databases and various web services
nelmio/api-doc-bundle 2.11.2 Generates documentation for your REST API from annotations
paragonie/random_compat v1.2.1 PHP 5.x polyfill for random_bytes() and random_int() from PHP 7
phpcollection/phpcollection 0.4.0 General-Purpose Collection Library for PHP
phpoption/phpoption 1.5.0 Option Type for PHP
psr/log 1.0.0 Common interface for logging libraries
sensio/distribution-bundle v5.0.4 Base bundle for Symfony Distributions
sensio/framework-extra-bundle v3.0.14 This bundle provides a way to configure your controllers with annotations
sensio/generator-bundle v3.0.6 This bundle generates code for you
sensiolabs/security-checker v3.0.2 A security checker for your composer.lock
sonata-project/admin-bundle dev-master 04c1e81 Symfony SonataAdminBundle
sonata-project/block-bundle 2.3.9 Symfony SonataBlockBundle
sonata-project/cache 1.0.7 Cache library
sonata-project/core-bundle 2.3.10 Symfony SonataCoreBundle
sonata-project/datagrid-bundle 2.2 Symfony SonataDatagridBundle
sonata-project/doctrine-extensions 1.0.2 Doctrine2 behavioral extensions
sonata-project/doctrine-orm-admin-bundle dev-master e8eb83f Symfony Sonata / Integrate Doctrine ORM into the SonataAdminBundle
sonata-project/easy-extends-bundle 2.1.10 Symfony SonataEasyExtendsBundle
sonata-project/exporter 1.4.1 Lightweight Exporter library
sonata-project/google-authenticator 1.0.2 Library to integrate Google Authenticator into a PHP project
sonata-project/user-bundle dev-add_support_for_fos_user2 e119e8e Symfony SonataUserBundle
swiftmailer/swiftmailer v5.4.1 Swiftmailer, free feature-rich PHP mailer
symfony/monolog-bundle v2.9.0 Symfony MonologBundle
symfony/phpunit-bridge v3.0.3 Symfony PHPUnit Bridge
symfony/polyfill-intl-icu v1.1.0 Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-mbstring v1.1.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php56 v1.1.0 Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
symfony/polyfill-php70 v1.1.0 Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions
symfony/polyfill-util v1.1.0 Symfony utilities for portability of PHP codes
symfony/security-acl v3.0.0 Symfony Security Component - ACL (Access Control List)
symfony/swiftmailer-bundle v2.3.11 Symfony SwiftmailerBundle
symfony/symfony v3.0.3 The Symfony PHP framework
twig/extensions v1.3.0 Common additional features for Twig that do not directly belong in core
twig/twig v1.24.0 Twig, the flexible, fast, and secure template language for PHP
willdurand/jsonp-callback-validator v1.1.0 JSONP callback validator.
willdurand/negotiation 1.5.0 Content Negotiation tools for PHP provided as a standalone library.

from adminthemebundle.

Saint-Cyr avatar Saint-Cyr commented on July 29, 2024

I'm using sonata-project/admin-bundle 3.1.0 and I update to 3.3.0 but it does not solve the issue any help please

from adminthemebundle.

OskarStark avatar OskarStark commented on July 29, 2024

Did you Target the right Project?

Am Dienstag, 14. Juni 2016 schrieb MAPOUKA :

I'm using sonata-project/admin-bundle 3.1.0 and I update to 3.3.0 but it
does not solve the issue any help please


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#85 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AA8xexnhy2PknZ9D1P-HG9_bvDvUs1Qcks5qLtbVgaJpZM4G6DVn
.

from adminthemebundle.

Saint-Cyr avatar Saint-Cyr commented on July 29, 2024

Sorry I was confuse a bit it suppose to be Sonata - project sorry. But it works as well ! Thank you @matteocng

from adminthemebundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.