Drupal 8 - Problem with composer dependencies - drupal
I'm having trouble updating my Drupal 8 core version.
Composer says I shouldn't install drupal/core-renderer 8.2.0 and remove the Drupal core.
I tried removing the composer.lock file, the vendor folder and replacing the core version to v8.2.0 as requested by composer but when I run "composer require drupal/core" it always installs version ^8.7 (latest).
Clearing the composer cache didn't help either.
I also don't understand the problem with the psr-http-message-bridge. It doesn't appear on my composer.json file, it's something internal to the Drupal core.
This is the composer command output:
Problem 1
- don't install drupal/core-render 8.2.0|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.2.0-beta1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.2.0-beta2|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.2.0-beta3|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.2.0-rc1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.2.0-rc2|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.2.1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.2.2|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.2.3|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.2.4|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.2.5|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.2.6|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.2.7|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.2.8|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.2.x-dev|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.3.0|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.3.0-alpha1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.3.0-beta1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.3.0-rc1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.3.0-rc2|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.3.1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.3.2|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.3.3|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.3.4|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.3.5|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.3.6|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.3.7|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.3.8|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.3.9|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.3.x-dev|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.4.0|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.4.0-alpha1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.4.0-beta1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.4.0-rc1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.4.0-rc2|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.4.1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.4.2|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.4.3|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.4.4|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.4.5|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.4.6|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.4.7|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.4.8|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.4.x-dev|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.5.0|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.5.0-alpha1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.5.0-beta1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.5.0-rc1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.5.1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.5.10|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.5.11|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.5.12|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.5.13|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.5.14|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.5.15|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.5.2|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.5.3|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.5.4|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.5.5|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.5.6|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.5.7|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.5.8|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.5.9|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.5.x-dev|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.6.0|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.6.0-alpha1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.6.0-beta1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.6.0-beta2|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.6.0-rc1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.6.1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.6.10|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.6.11|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.6.12|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.6.13|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.6.14|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.6.15|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.6.16|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.6.17|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.6.2|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.6.3|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.6.4|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.6.5|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.6.6|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.6.7|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.6.8|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.6.9|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.6.x-dev|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.7.0|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.7.0-alpha1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.7.0-alpha2|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.7.0-beta1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.7.0-beta2|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.7.0-rc1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.7.1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.7.2|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.7.3|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.7.4|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.7.5|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.7.6|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.7.7|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.7.8|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.7.x-dev|remove drupal/drupal dev-prueba_composer
- don't install drupal/core-render 8.8.x-dev|remove drupal/drupal dev-prueba_composer
- remove drupal/drupal dev-prueba_composer|remove drupal/core 8.7.8
- don't install drupal/core 8.7.0|remove drupal/drupal dev-prueba_composer
- don't install drupal/core 8.7.0-alpha1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core 8.7.0-alpha2|remove drupal/drupal dev-prueba_composer
- don't install drupal/core 8.7.0-beta1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core 8.7.0-beta2|remove drupal/drupal dev-prueba_composer
- don't install drupal/core 8.7.0-rc1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core 8.7.1|remove drupal/drupal dev-prueba_composer
- don't install drupal/core 8.7.2|remove drupal/drupal dev-prueba_composer
- don't install drupal/core 8.7.3|remove drupal/drupal dev-prueba_composer
- don't install drupal/core 8.7.4|remove drupal/drupal dev-prueba_composer
- don't install drupal/core 8.7.5|remove drupal/drupal dev-prueba_composer
- don't install drupal/core 8.7.6|remove drupal/drupal dev-prueba_composer
- don't install drupal/core 8.7.7|remove drupal/drupal dev-prueba_composer
- don't install drupal/core 8.7.8|remove drupal/drupal dev-prueba_composer
- don't install drupal/core 8.7.x-dev|remove drupal/drupal dev-prueba_composer
- don't install drupal/core 8.8.x-dev|remove drupal/drupal dev-prueba_composer
- don't install drupal/core 8.3.x-dev|remove drupal/drupal dev-prueba_composer
- don't install drupal/core 8.4.x-dev|remove drupal/drupal dev-prueba_composer
- don't install drupal/core 8.5.x-dev|remove drupal/drupal dev-prueba_composer
- don't install drupal/core 8.6.x-dev|remove drupal/drupal dev-prueba_composer
- drupal/core 8.2.x-dev requires symfony/psr-http-message-bridge v0.2 -> satisfiable by symfony/psr-http-message-bridge[v0.2] but these conflict with your requirements or minimum-stability.
- Installation request for drupal/drupal dev-prueba_composer -> satisfiable by drupal/drupal[dev-prueba_composer].
- Installation request for drupal/core-render ^8.2 -> satisfiable by drupal/core[8.2.x-dev, 8.3.x-dev, 8.4.x-dev, 8.5.x-dev, 8.6.x-dev, 8.7.0, 8.7.0-alpha1, 8.7.0-alpha2, 8.7.0-beta1, 8.7.0-beta2, 8.7.0-rc1, 8.7.1, 8.7.2, 8.7.3, 8.7.4, 8.7.5, 8.7.6, 8.7.7, 8.7.8, 8.7.x-dev, 8.8.x-dev], drupal/core-render[8.2.0, 8.2.0-beta1, 8.2.0-beta2, 8.2.0-beta3, 8.2.0-rc1, 8.2.0-rc2, 8.2.1, 8.2.2, 8.2.3, 8.2.4, 8.2.5, 8.2.6, 8.2.7, 8.2.8, 8.2.x-dev, 8.3.0, 8.3.0-alpha1, 8.3.0-beta1, 8.3.0-rc1, 8.3.0-rc2, 8.3.1, 8.3.2, 8.3.3, 8.3.4, 8.3.5, 8.3.6, 8.3.7, 8.3.8, 8.3.9, 8.3.x-dev, 8.4.0, 8.4.0-alpha1, 8.4.0-beta1, 8.4.0-rc1, 8.4.0-rc2, 8.4.1, 8.4.2, 8.4.3, 8.4.4, 8.4.5, 8.4.6, 8.4.7, 8.4.8, 8.4.x-dev, 8.5.0, 8.5.0-alpha1, 8.5.0-beta1, 8.5.0-rc1, 8.5.1, 8.5.10, 8.5.11, 8.5.12, 8.5.13, 8.5.14, 8.5.15, 8.5.2, 8.5.3, 8.5.4, 8.5.5, 8.5.6, 8.5.7, 8.5.8, 8.5.9, 8.5.x-dev, 8.6.0, 8.6.0-alpha1, 8.6.0-beta1, 8.6.0-beta2, 8.6.0-rc1, 8.6.1, 8.6.10, 8.6.11, 8.6.12, 8.6.13, 8.6.14, 8.6.15, 8.6.16, 8.6.17, 8.6.2, 8.6.3, 8.6.4, 8.6.5, 8.6.6, 8.6.7, 8.6.8, 8.6.9, 8.6.x-dev, 8.7.0, 8.7.0-alpha1, 8.7.0-alpha2, 8.7.0-beta1, 8.7.0-beta2, 8.7.0-rc1, 8.7.1, 8.7.2, 8.7.3, 8.7.4, 8.7.5, 8.7.6, 8.7.7, 8.7.8, 8.7.x-dev, 8.8.x-dev].
And this is my composer.json file:
{
"name": "drupal/drupal",
"description": "Drupal is an open source content management platform powering millions of websites and applications.",
"type": "project",
"license": "GPL-2.0-or-later",
"require": {
"drupal/core": "^8.7",
"composer/installers": "^1.0.24",
"wikimedia/composer-merge-plugin": "^1.4",
"drush/drush": "^9.0",
"symfony/property-access": "^3.2.",
"gufy/pdftohtml-php":"~2",
"mikehaertl/phpwkhtmltopdf": "~2.0",
"tecnickcom/tcpdf": "6.0.*",
"dompdf/dompdf" : "0.6.*",
"mpdf/mpdf" : "5.7.*",
"wa72/htmlpagedom": "1.3.*",
"smalot/pdfparser": "*",
"squizlabs/php_codesniffer": "3.4.*"
},
"replace": {
"drupal/metatag": "8.*",
"drupal/slick": "8.*",
"drupal/superfish": "8.*",
"drupal/swiftmailer": "8.*"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"preferred-install": "dist",
"autoloader-suffix": "Drupal8"
},
"extra": {
"_readme": [
"By default Drupal loads the autoloader from ./vendor/autoload.php.",
"To change the autoloader you can edit ./autoload.php.",
"This file specifies the packages.drupal.org repository.",
"You can read more about this composer repository at:",
"https://www.drupal.org/node/2718229"
],
"merge-plugin": {
"include": [
"core/composer.json",
"modules/contrib/metatag/composer.json",
"modules/contrib/slick/composer.json",
"modules/contrib/superfish/composer.json",
"modules/contrib/swiftmailer/composer.json"
],
"recurse": true,
"replace": false,
"merge-extra": false
},
"installer-paths": {
"core": [
"type:drupal-core"
],
"modules/contrib/{$name}": [
"type:drupal-module"
],
"profiles/contrib/{$name}": [
"type:drupal-profile"
],
"themes/contrib/{$name}": [
"type:drupal-theme"
],
"drush/contrib/{$name}": [
"type:drupal-drush"
],
"modules/custom/{$name}": [
"type:drupal-custom-module"
],
"themes/custom/{$name}": [
"type:drupal-custom-theme"
]
}
},
"autoload": {
"psr-4": {
"Drupal\\Core\\Composer\\": "core/lib/Drupal/Core/Composer",
"Drupal\\composer_manager\\Composer\\": "modules/contrib/composer_manager/src/Composer"
}
},
"scripts": {
"pre-autoload-dump": "Drupal\\Core\\Composer\\Composer::preAutoloadDump",
"post-autoload-dump": "Drupal\\Core\\Composer\\Composer::ensureHtaccess",
"post-package-install": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup",
"post-package-update": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup",
"drupal-phpunit-upgrade-check": "Drupal\\Core\\Composer\\Composer::upgradePHPUnit",
"drupal-phpunit-upgrade": "#composer update phpunit/phpunit --with-dependencies --no-progress",
"phpcs": "phpcs --standard=core/phpcs.xml.dist --runtime-set installed_paths $($COMPOSER_BINARY config vendor-dir)/drupal/coder/coder_sniffer --",
"phpcbf": "phpcbf --standard=core/phpcs.xml.dist --runtime-set installed_paths $($COMPOSER_BINARY config vendor-dir)/drupal/coder/coder_sniffer --"
},
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
}
]
}
Thanks in advance.
UPDATE
Reading endless posts I came across a supposed problem with the wikimedia merge plugin. I tried to repeat the composer update drupal/core --with-dependencies removing the merge plugin include in the root composer.json and at least it finished without problems, but I don't know if all dependencies are correctly installed or if I will need to include this again for future core updates.
The use of wikimedia merge plugin is deprecated in favor of a path repository on composer.json.
The solution to this problem was to remove the composer include of the Drupal core from the merge plugin section:
"merge-plugin": {
"include": [
"core/composer.json", <-- Remove
"modules/contrib/metatag/composer.json",
"modules/contrib/slick/composer.json",
"modules/contrib/superfish/composer.json",
"modules/contrib/swiftmailer/composer.json"
],
"recurse": true,
"replace": false,
"merge-extra": false
}
Related
Nuxt/Apollo/Wordpress/GraphQL/Docker - Apollo Fetch to GraphQL Endpoint Failing
I'm trying to set up a Headless Wordpress project with Nuxt 3 and Apollo. For some reason, apollo's fetch is failing when trying to hit the Wordpress GraphQL endpoint. My file structure is as follows: frontend -.nuxt -assets -node_modules -.gitignore -.npmrc -app.vue -nuxt.config.ts -package-lock.json -package.json -README.md -tsconfig.json wp-content -plugins -themes -upgrade -uploads -index.php docker-compose.yml My docker-compose: version: '3.1' services: wordpress: image: wordpress:latest ports: - "80:80" volumes: - ./wp-content:/var/www/html/wp-content:delegated environment: WORDPRESS_DB_HOST: db WORDPRESS_DB_USER: wordpress WORDPRESS_DB_PASSWORD: wordpress WORDPRESS_DB_NAME: wordpress WORDPRESS_DEBUG: 1 depends_on: - db db: image: mysql:5.7 restart: always environment: MYSQL_ROOT_PASSWORD: wordpress MYSQL_DATABASE: wordpress MYSQL_USER: wordpress MYSQL_PASSWORD: wordpress volumes: - db-data:/var/lib/mysql:delegated frontend: container_name: frontend command: -c "npm run dev" image: node:latest working_dir: /var/www/html/app entrypoint: /bin/bash ports: - "3000:3000" volumes: - ./frontend:/var/www/html/app:delegated tty: true volumes: db-data: Nuxt config: // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ css: ['#/assets/styles/style.scss'], modules: ['#nuxtjs/apollo'], apollo: { clients: { default: { httpEndpoint: 'http://localhost/graphql', } } } }) And finally, app.vue <template> <div class="app"> <p>{{ data?.posts }}</p> </div> </template> <script setup> const query = gql` query NewQuery { posts { edges { node { title(format: RENDERED) id content } } } } ` const { data, error} = await useAsyncQuery(query) console.log(error) </script> The only error message I'm getting from apollo is "Fetch failed", no more info than that. I have WPGraphQL installed on the Wordpress instance and I can hit the graphql endpoint at localhost/graphql in the browser. I have an inkling that I'm messing up something with the networking or how the two ports are relating to one another, but I'm not sure. Any thoughts would be much appreciated. Thanks!
How to install firebase properly?
I am working on a login system in vue, this is my code for now: <template> <div> <input type="email" placeholder="Email" v-model="email" /> <input type="password" placeholder="Password" v-model="password" /> <button>Login</button> <p>Need an account?<router-link to="/signup">Sign Up</router-link></p> </div> </template> <script> import firebase from 'firebase' export default { name: "Login", data() { return { email: "", password: "", }; }, methods: { Login() { // Log the user in firebase .auth() .signInWithEmailAndPassword(this.email, this.password) .then( (user) => { console.log(user.data); }, (err) => { alert(err); } ); }, }, }; </script> <style> </style> The problem is that I get an error when I try to run it, this is the error: This dependency was not found: * firebase in ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/views/Login.vue?vue&type=script&lang=js To install it, you can run: npm install --save firebase I tried installing firebase a couple of times, but I keep getting the same error. If anyone knows a solution, thank you very much!
To install firebase properly, you have to change the version: npm remove firebase npm add firebase#^8.10.0
Welcome, what command are you running to install Firebase? The error says to use npm install --save firebase, are you using that command? Try the commandnpm install Firebase to try install Firebase. Are you using "Cloud Shell" to deploy your code? I used the following documentation to learn about the basics of Firebase [1} [1} https://firebase.google.com/docs/web/setup and this lab is also very useful [2] [1] https://firebase.google.com/codelabs/firebase-web#0
Symfony Unknown raw tag
I encountered the following error when I tried to generate a new bundle with Symfony: Unknown "raw" tag Symfony details: "require": { "php": ">=5.3.9", "doctrine/doctrine-bundle": "~1.4", "doctrine/orm": "^2.4.8", "gregwar/image-bundle": "^2.1", "incenteev/composer-parameter-handler": "~2.0", "sensio/distribution-bundle": "~4.0", "sensio/framework-extra-bundle": "^3.0.2", "symfony/assetic-bundle": "~2.3", "symfony/monolog-bundle": "^3.0.2", "symfony/swiftmailer-bundle": "~2.3,>=2.3.10", "symfony/symfony": "2.7.*", "twig/twig": "^1.0||^2.0", "whiteoctober/breadcrumbs-bundle": "*", "friendsofsymfony/user-bundle": "~2.0.1" }, "require-dev": { "sensio/generator-bundle": "~2.3", "symfony/phpunit-bridge": "~2.7" }
In the new version of Twig tag raw had been removed. You should use verbatim tag instead. Proof - https://github.com/twigphp/Twig/blob/1.x/lib/Twig/Lexer.php#L302. So, just search for {% raw %} tag in your twig files and replace it with {% verbatim %}. Then search for {% endraw %} and replace it with {% endverbatim %}.
If you use the sensio/generator-bundle: Just remove it from composer.json and run composer require sensio/generator-bundle to get the correct version. Why? This bundle uses the {% raw %} tag.
Symfony3 web debug toolbar shows up empty after upgrading from 2.8.16
I've just updated my Symfony application to version 3.2 from 2.8.16 and now the web profiler toolbar not showing up as expected. config_dev.yml imports: - { resource: config.yml } framework: router: resource: "%kernel.root_dir%/config/routing_dev.yml" strict_requirements: true profiler: { only_exceptions: false } web_profiler: toolbar: true intercept_redirects: false position: top Going to an automated error page (page not found error - 404) I can see the web debug toolbar completely empty: The relative HTML code is the following: <div id="sfwdt9c958d" class="sf-toolbar sf-display-none" data-sfurl="/app_dev.php/_wdt/9c958d" style="display: block;"><!-- START of Symfony Web Debug Toolbar --> <div id="sfMiniToolbar-9c958d" class="sf-minitoolbar" data-no-turbolink="" style="display: none;"> <a href="#" title="Show Symfony toolbar" tabindex="-1" id="sfToolbarMiniToggler-9c958d" accesskey="D"> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="24" height="24" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve"> <path fill="#AAAAAA" d=""></path> </svg> </a> </div> <style nonce="75799098050c6a6271f998e32cbdc849"> /* Omitted */ </style> <div id="sfToolbarClearer-9c958d" class="sf-toolbar-clearer" style="display: block;"></div> <div id="sfToolbarMainContent-9c958d" class="sf-toolbarreset clear-fix" data-no-turbolink="" style="display: block;"> <a class="hide-button" id="sfToolbarHideButton-9c958d" title="Close Toolbar" tabindex="-1" accesskey="D"> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="24" height="24" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve"> </svg> </a> </div> <!-- END of Symfony Web Debug Toolbar --> </div> I've never seen this bug before. Maybe it is connected with a non-core package/bundle? composer.json "require": { "php": ">=7.0.0", "symfony/symfony": "3.2.*", "doctrine/orm": "^2.4.8", "doctrine/doctrine-bundle": "~1.4", "twig/twig": "1.28", "twig/extensions": "^1.3", "symfony/swiftmailer-bundle": "~2.3", "symfony/monolog-bundle": "~2.4", "sensio/distribution-bundle": "~5.0", "sensio/framework-extra-bundle": "^3.0.2", "incenteev/composer-parameter-handler": "~2.0", "twbs/bootstrap": "~3.3", "jms/translation-bundle": "dev-master", "sensio/generator-bundle": "~3.0", "egeloen/ckeditor-bundle": "^4.0", "helios-ag/fm-elfinder-bundle": "~6", "helios-ag/fm-elfinder-php-connector": ">=2.5", "components/elfinder": ">=2.0", "leaseweb/doctrine-pdo-dblib": "^1.0", "symfony/finder": "^2.8", "knplabs/knp-menu": "^2.1", "knplabs/knp-menu-bundle": "^2.0", "knplabs/knp-snappy-bundle": "dev-master", "endroid/qrcode-bundle": "^1.6", "endroid/qrcode": "^1.6", "liuggio/excelbundle": "^2.0", "stof/doctrine-extensions-bundle": "^1.2" }, "require-dev": { "sensio/generator-bundle": "~3.0", "symfony/phpunit-bridge": "^3.2" },
Starting from this well written upgrading guide I've reviewed all the configuration steps. Then I've analyzed the default composer.json of Symfony v3.2.2 and in particular the required twig version. I tried changing my Twig requirements with: "twig/twig": "~1.28|~2.0", but sadly I'm using JMS translation bundle, which is not compatible with the latest Twig v2.1+ as reported in this PR. I found the solution removing the 2.0 requirement. So, to fix the issue I changed the Twig version requirement with "twig/twig": "~1.28" and the profiler bundle now seems to work as before.
LiipImagineBundle thumbnails doesn't work
I am just trying to get working LiipImagineBundle. Ok, all I got so far: Installed using composer $ php composer.phar require "liip/imagine-bundle:dev-master" Enabled bundle in AppKernel.php new Liip\ImagineBundle\LiipImagineBundle(), Added to routing.yml _imagine path Added liip_imagine filter in config.yml Checked using php app/console router:debug and path _imagine_my_thumb exist. But after using: <img src="{{ '/relative/path/to/image.jpg' | imagine_filter('my_thumb') }}" /> image is not rendered, path is simply not found error. prod.log says that Route _imagine_my_thumb does not exist, although it exist, because it's displayed using router:debug for both environments.
You know that you should replace '/relative/path/to/image.jpg' with your image path? Make sure your file exists. A working example config: liip_imagine: driver: gd web_root: %kernel.root_dir%/../web data_root: %kernel.root_dir%/../app cache_mkdir_mode: 0777 cache_prefix: /media/cache cache: web_path cache_clearer: true data_loader: filesystem controller_action: liip_imagine.controller:filterAction formats: [] filter_sets: avatar: filters: thumbnail: { size: [40, 40], mode: outbound } profile: filters: relative_resize: { widen: 500 } html: <img src="{{ 'uploads/images/filename.jpg' | imagine_filter('avatar') }}" alt="image"> enter code here routing.yml: _imagine: resource: . type: imagine Remark: My source folder is in the app folder (see: data_root)
I had similar problem and after enable of php_fileinfo extension in php.ini render start to work.