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;');
The module is cached without errors and everything works the same as when the cache is disabled
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
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>
Labels |
Added:
?
|
Status | New | ⇒ | Confirmed |
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-05-07 21:09:15 |
Closed_By | ⇒ | SharkyKZ |
Closed_Date | 2020-05-07 21:09:15 | ⇒ | 2020-05-07 21:09:16 |
Closed_By | SharkyKZ | ⇒ | joomla-cms-bot |
Please test PR #28990.
Set to "closed" on behalf of @SharkyKZ by The JTracker Application at issues.joomla.org/joomla-cms/27163