Visitar URL original
Fixed access to kernel object by aschempp · Pull Request #29 · contao/core-bundle · GitHub
Skip to content

Fixed access to kernel object - #29

Merged
leofeyer merged 1 commit into
contao:developfrom
aschempp:hotfix/system-getKernel
Jan 6, 2015
Merged

leofeyer merged 1 commit into
contao:developfrom
aschempp:hotfix/system-getKernel

Conversation

@aschempp

Copy link
Copy Markdown
Member

No description provided.

@leofeyer leofeyer added the bug label Dec 26, 2014
@leofeyer leofeyer added this to the 4.0.0 milestone Dec 26, 2014
@aschempp

aschempp commented Jan 5, 2015

Copy link
Copy Markdown
Member Author

Can this be merged?

@leofeyer

leofeyer commented Jan 5, 2015

Copy link
Copy Markdown
Member

Sure, the ticket has already been assigned to the 4.0.0 milestone.

@aschempp

aschempp commented Jan 6, 2015

Copy link
Copy Markdown
Member Author

I know. I meant "soon" cause it's stopping my local installation. I guess it's only a click on the merge button? :-P

@leofeyer
leofeyer merged commit 1e5896d into contao:develop Jan 6, 2015
@leofeyer

leofeyer commented Jan 6, 2015

Copy link
Copy Markdown
Member

Done :)

@aschempp

aschempp commented Jan 7, 2015

Copy link
Copy Markdown
Member Author

Thanks!

@aschempp
aschempp deleted the hotfix/system-getKernel branch January 7, 2015 13:21
@ghost ghost mentioned this pull request Mar 23, 2015
@saress

saress commented Aug 28, 2018

Copy link
Copy Markdown

Hi Leo,

we have updated 2 different installations from 4.4.20 to 4.4.22 today and the changes in MergeHttpHeadersListener.php cause a "Bad gateway 502" error in the frontend. After replacing the file with the old one, everything works fine again.

Kind regards,
Saress

@ghost

ghost commented Aug 28, 2018

Copy link
Copy Markdown

A new issue thereto has been created at contao/contao#35.

leofeyer pushed a commit that referenced this pull request Apr 17, 2024
Description
-----------

We encountered an `ErrorException` when the page of external redirect type has an insert tag that returns an empty string.

The problem in fact happens in the `UrlHelper` component of Symfony, but I think we should fix it on our side nevertheless.

Stack trace:

```
ErrorException: Warning: Uninitialized string offset 0
#36 /vendor/symfony/http-foundation/UrlHelper.php(42): Symfony\Component\HttpFoundation\UrlHelper::getAbsoluteUrl
#35 /vendor/contao/core-bundle/src/Routing/Content/StringResolver.php(40): Contao\CoreBundle\Routing\Content\StringResolver::resolve
#34 /vendor/contao/core-bundle/src/Routing/ContentUrlGenerator.php(150): Contao\CoreBundle\Routing\ContentUrlGenerator::resolveContent
#33 /vendor/contao/core-bundle/src/Routing/ContentUrlGenerator.php(161): Contao\CoreBundle\Routing\ContentUrlGenerator::resolveContent
#32 /vendor/contao/core-bundle/src/Routing/ContentUrlGenerator.php(70): Contao\CoreBundle\Routing\ContentUrlGenerator::generate
#31 /vendor/contao/core-bundle/contao/modules/Module.php(349): Contao\Module::renderNavigation
#30 /vendor/contao/core-bundle/contao/modules/Module.php(326): Contao\Module::renderNavigation
#29 /vendor/contao/core-bundle/contao/modules/Module.php(326): Contao\Module::renderNavigation
#28 /vendor/contao/core-bundle/contao/modules/ModuleNavigation.php(82): Contao\ModuleNavigation::compile
#27 /vendor/contao/core-bundle/contao/modules/Module.php(213): Contao\Module::generate
#26 /vendor/contao/core-bundle/contao/modules/ModuleNavigation.php(45): Contao\ModuleNavigation::generate
#25 /vendor/contao/core-bundle/contao/library/Contao/Controller.php(410): Contao\Controller::getFrontendModule
…
#1 /vendor/friendsofsymfony/http-cache/src/SymfonyCache/EventDispatchingHttpCache.php(96): Contao\ManagerBundle\HttpKernel\ContaoCache::handle
#0 /public/index.php(42): null
```

Commits
-------

756336e7 Fix a potential issue if the insert tags return an empty string in th…
0a9330c2 Throw an exception if the insert tag returns an empty value
46de08ef CS + Unit test
89521539 Rename the test method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants