Task #79050

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

Added by Chris topher about 2 years ago. Updated about 2 years 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 about 2 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() );.

Also available in: Atom PDF