When "Rebuild Theme Registry on every page" is enabled, no pages will load. You will instead get an error that the url() function is undefined.
I don't have time to submit a patch at the moment, but the relevant line to replace is line 27 of zen-internals/theme-registry.inc.
This will get things to load:
drupal_set_message(t('For easier theme development, the theme registry is being rebuilt on every page request. It is extremely important to turn off this feature on production websites.', array('!link' => \Drupal\Core\Url::fromUri('base://admin/appearance/settings/' . $active_theme))), 'warning', FALSE);
Note that the !link placeholder still needs to be replaced. I'll do something about that if I find time to come back and create the patch before someone else gets there.
Comment | File | Size | Author |
---|---|---|---|
#7 | zen-undefined_url_function-2843011-7.patch | 2.28 KB | pakmanlh |
#7 | interdiff_3-7.txt | 1.19 KB | pakmanlh |
Comments
Comment #2
rhuffstedtler CreditAttribution: rhuffstedtler as a volunteer and at ICF commentedRegarding the !link placeholder, apparently the format string for that kind of placeholder changed, and it should now be :link rather than !link. Similar change needs to be made in theme-settings.php
Comment #3
rhuffstedtler CreditAttribution: rhuffstedtler as a volunteer and at ICF commentedThis patch should get it.
Comment #4
rhuffstedtler CreditAttribution: rhuffstedtler as a volunteer and at ICF commentedComment #5
caschbre CreditAttribution: caschbre commented@rob... I think you want to use Url::fromRoute instead of Url::fromUri to generate the link from a Drupal route.
I haven't tested that code yet though.
Comment #6
JohnAlbinComment #7
pakmanlhI updated the patch applying the
fromRoute
idea from #5 and replacing the deprecateddrupal_set_message
function by theaddMessage
one.Comment #8
hitfactory CreditAttribution: hitfactory commentedConfirming the patch in #7 resolves the issue. Thanks, @pakmanlh.