Project

General

Profile

Actions

Bug #91086

open

PageRenderer doesn't include resources included by USER_INT objects on cache miss

Added by Deividas Simas over 4 years ago. Updated over 4 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2020-04-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
pagerenderer, INTincScript, addJsFooterFile
Complexity:
Is Regression:
Sprint Focus:

Description

Hello friends :)

I've came across a strange misconduct after reloading a page without cache (logged in on backend and ctrl+f5) on a page with USER objects and exactly one USER_INT that includes a script using PageRenderer->addJsFooterFile. Also happens with CSS.

The file will not be included as long as the cache misses and there is at least one USER object.
After a normal reload (F5) everything works fine.

I was checking out in the core and it seems that a different PageRenderer is being used by ObjectManager than restored in TypoScriptFrontendController:3767 (v.9.5.14).

That solved my problem

Didn't work:
$this->objectManager->get(PageRenderer::class)->addJsFooterFile

Worked:
$GLOBALS['TSFE']->pageRenderer->addJsFooterFile

I also didn't try to reproduce that on a fresh installation yet.

Actions

Also available in: Atom PDF