?
Referenced as Pull Request for: # 28990
avatar joeforjoomla
joeforjoomla
26 Nov 2019

Steps to reproduce the issue

Activate Progressive caching or Conservative caching in Global Configuration

Publish a whatever module that uses a Document addScript/addScriptDeclaration etc such as:

$doc->addScriptDeclaration('var myvar= 1;');

Expected result

The module is cached without errors and everything works the same as when the cache is disabled

Actual result

There are multiple places in the framework where data retrieved from the cache are array instead of expected strings, such as the ones in the screenshot and in the function 'mergeHeadData' line 321in /libraries/src/Document/HtmlDocument.php

System information (as much as possible)

Joomla 4.0 Beta 1
testerror

Additional comments

Additionally in the page HTML an array is included:

<script nonce="YzQ5NzBjNzI0MzVhMDRmZWZkZTExNjE2NzQ3MTY5Mjg1MmVlZjczOWFhZGY4YmY2M2I1N2M5MGM0M2E4NTEwMjg5ODFlMGUzZTNjZmMzMmZmZDQ1N2ZiZGU0OGZmNzQ0NWI2YWQ3NDc1NDdiOGFmODY4NTU0NTc5NDdjYWQ5NWI=">Array</script>

instead of the real string:

<script nonce="YzQ5NzBjNzI0MzVhMDRmZWZkZTExNjE2NzQ3MTY5Mjg1MmVlZjczOWFhZGY4YmY2M2I1N2M5MGM0M2E4NTEwMjg5ODFlMGUzZTNjZmMzMmZmZDQ1N2ZiZGU0OGZmNzQ0NWI2YWQ3NDc1NDdiOGFmODY4NTU0NTc5NDdjYWQ5NWI=">var myvar= 1;</script>
avatar joeforjoomla joeforjoomla - open - 26 Nov 2019
avatar joomla-cms-bot joomla-cms-bot - change - 26 Nov 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 26 Nov 2019
avatar joeforjoomla joeforjoomla - change - 26 Nov 2019
The description was changed
avatar joeforjoomla joeforjoomla - edited - 26 Nov 2019
avatar joeforjoomla joeforjoomla - change - 26 Nov 2019
The description was changed
avatar joeforjoomla joeforjoomla - edited - 26 Nov 2019
avatar joeforjoomla joeforjoomla - change - 26 Nov 2019
The description was changed
avatar joeforjoomla joeforjoomla - edited - 26 Nov 2019
avatar joeforjoomla joeforjoomla - change - 26 Nov 2019
The description was changed
avatar joeforjoomla joeforjoomla - edited - 26 Nov 2019
avatar SharkyKZ SharkyKZ - change - 7 May 2020
Status New Confirmed
avatar SharkyKZ SharkyKZ - change - 7 May 2020
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2020-05-07 21:09:15
Closed_By SharkyKZ
avatar joomla-cms-bot joomla-cms-bot - change - 7 May 2020
Closed_Date 2020-05-07 21:09:15 2020-05-07 21:09:16
Closed_By SharkyKZ joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 7 May 2020
avatar joomla-cms-bot
joomla-cms-bot - comment - 7 May 2020

Set to "closed" on behalf of @SharkyKZ by The JTracker Application at issues.joomla.org/joomla-cms/27163

avatar SharkyKZ
SharkyKZ - comment - 7 May 2020

Please test PR #28990.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27163.

Add a Comment

Login with GitHub to post a comment