By hepabolu

2019-02-10 20:46:22 8 Comments

Situation: Drupal 8.6.9 running DrupalVM with Ubuntu 16.04, Apache 2.4.18, Php 7.1.26 with default settings except for the location of the drupal site.

I am trying to do a migration of a Drupal 7 multilingual site to Drupal 8.

Plan is to setup the Drupal 8 site with as much settings and modules as possible so I can alter the content during the migration such as migrating a D7-field to a different D8-field.

I wiped the default DrupalVM drupal site so I can start from scratch. So far I have done a drush site-install with standard profile, enabled some contrib modules that are also in the D7 site (pathauto, search404, etc.) and manually set the necessary settings. One of them is adding the 'field_image' to the 'Basic Page' content type. I've exported the settings (Config Synchronization) to the config sync directory.

To start from scratch I run a script that does:

drush si standard
drush en <various modules installed with composer>
drush cset "" uuid <uuid set in>

When I stop here and manually create several page nodes through the UI I can successfully add images and the thumbnails are created accordingly.

When I go on and import the config settings with:

drush cim sync --partial

Everything is imported succesfully and everything looks fine.

However, when I add the same page nodes through the UI the images are uploaded successfully but the image styles are not created. The 'styles' directory stays empty and the Apache logs show:

[Sun Feb 10 20:03:18.426565 2019] [proxy_fcgi:error] 
[pid 9432:tid 140423712450304] 
(32)Broken pipe: [client] 
AH01075: Error dispatching request to : 
(passing brigade to output filters), referer: http://www.drupalvm.test/node/add/page

(error broken in several lines to avoid scrolling)

No errors in php-fpm logs.

The error seems to point to a bug in Apache 2.4/mod_fcgi, but that has been fixed in 2016.

Also, because the problem occurs after reading in the config settings, not before, I suspect the problem is either related to the config settings or to Drupal itself.

Does anyone have any idea what to check to solve this problem? I'm on this for days now with no success.


@hepabolu 2019-02-10 23:36:54

I went through adding all the files one by one and finally found the problem:

image.settings.yml contained:

suppress_itok_output: true

Once it was changed to false the problem disappeared.

@Dan Mantyla 2019-02-20 19:50:50

hmm, that's already set to false in my d8 install (8.6.9) but I'm still having this problem

@hepabolu 2019-02-22 01:34:02

Maybe you have a migration that sets it to true again? Or you only read in configuration?

@Dan Mantyla 2019-02-22 14:31:06

thanks for the response. I think the problem is just in how my Drupal site is setup. Copying everything in d7/sites/default/files/styles to d8/sites/default/files/styles solved it

Related Questions

Sponsored Content

2 Answered Questions

[SOLVED] Page cache works on local dev but not on production

  • 2019-02-13 16:34:06
  • MuckerMarc
  • 72 View
  • 0 Score
  • 2 Answer
  • Tags:   8 caching

1 Answered Questions

[SOLVED] How do I recreate the configuration element?

6 Answered Questions

[SOLVED] How can I import the configuration on a different site?

2 Answered Questions

[SOLVED] Site UUID in source storage does not match the target storage

1 Answered Questions

[SOLVED] Issues migrating site config at various points in project lifecycle

1 Answered Questions

1 Answered Questions

2 Answered Questions

[SOLVED] Access Denied on Drupal 8 image styles despite correct permissions

  • 2016-11-04 14:09:33
  • almcnicoll
  • 920 View
  • 3 Score
  • 2 Answer
  • Tags:   8 media

3 Answered Questions

Sponsored Content