oddhill / context

Context module for Drupal 8.
MIT License
7 stars 6 forks source link

Site branding block won't place #30

Open gstout opened 8 years ago

gstout commented 8 years ago

Not sure why, but Context has trouble placing the "Site Branding" block.

gstout commented 8 years ago

Here is the error I get

[Sat Mar 19 21:56:58.434670 2016] [fcgid:warn] [pid 8180:tid 1120] [client 127.0.0.1:59340] mod_fcgid: stderr: Uncaught PHP Exception Symfony\Component\Routing\Exception\InvalidParameterException: "Parameter "theme" for route "system.theme_settings_theme" must match "[^/]++" ("" given) to generate a corresponding URL." at C:\~sites\CJ\cjapts\core\lib\Drupal\Core\Routing\UrlGenerator.php line 199, referer: http://cjapts.dd:8083/admin/structure/context/front

gstout commented 8 years ago

ok, related or cuasual error in core, I hope this info is helpful.

https://www.drupal.org/node/2684213

gstout commented 8 years ago

by removing this $url_system_theme_settings_theme = new Url('system.theme_settings_theme', array('theme' => $theme)); and references to " $url_system_theme_settings_theme" in the SystemBrandingBlock.php I was able to get the block to place in context. I think the core of the issue lies in "system.theme_settings_theme" not being set by context when it's needed, but I'm far out of my depth here.

Hope this all helps

NormySan commented 8 years ago

I'll have a look at this when I've got some spare time to work on the module!