Task #79050

ContextSource::getContext (SkinTemplate): called and $context is null

Added by Chris topher almost 3 years ago. Updated about 1 month ago.

Status:
New
Priority:
Should have
Assignee:
-
Start date:
2016-12-20
Due date:
% Done:

0%


Description

Each page request is currently giving this message:

ContextSource::getContext (SkinTemplate): called and $context is null. Using RequestContext::getMain() for sanity

Fix it!

History

#1 Updated by Chris topher almost 3 years ago

SkinTemplate is used in modifyPersonalTools.php in TYPO3Vector:

$skinTemplate = new SkinTemplate;
$collectionURLs = CollectionHooks::getPortlet($skinTemplate->getSkin());

SkinTYPO3Vector.php has class SkinTYPO3Vector extends SkinTemplate {; these two are the only hits in that skin.

I now tried letting the modifyPersonalTools class extend our skins class. Then $this->getSkin() can be called - creating a new SkinTemplate then no longer is needed. The message however stays:

ContextSource::getContext (modifyPersonalTools): called and $context is null. Using RequestContext::getMain() for sanity

Not really a solution would be to manually do a $this->setContext( RequestContext::getMain() );.

#2 Updated by Chris topher about 1 month ago

Does no longer happen after the move to Mustache, which is part of MW 1.33.

Also available in: Atom PDF