Closed (fixed)
Project:
Advanced CSS/JS Aggregation
Version:
8.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2017 at 22:22 UTC
Updated:
23 May 2017 at 09:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
erik frèrejeanThat particular isssue is caused by the fact that
Drupal\advagg\State\File(and Aggregates as well) overridesDrupal\Core\State\Stateand uses that to write to the cache. However the File/Aggregates do not set the cache the drupal State expects. I've attempted to pass these services through, which resolve this specific issue.However then you'll run into the fact that the
Fileservice use the$cacheproperty ofDrupal\Core\State\Stateas array rather then the cache object it is.Comment #3
Anonymous (not verified) commentedThis issue also occurs during my update to the latest 8.3.0-rc1 version. After disabling all advagg modules the site started to work again. Maybe we must investigate here a little bit deeper why this happen.
I will increase the priority, because it looks like the module is unusable at the moment. Maybe others can confirm this behavior.
Comment #4
erik frèrejeanThe issue itself appears to be introduced in thiscommit. Which changed the state system to extend
Drupal\Core\Cache\CacheCollector, and that changed the behaviour of the internal$cacheproperty.Comment #5
nickdickinsonwildeah an 8.3.x change. I'll make sure to get a fix out by the end of the month.
Comment #6
wim leersNote that 8.3.0 RC1 is already out. So people are already testing their sites with 8.3.
Comment #7
nickdickinsonwildeYeah I know... but I've been busy; last 3 branches I've been testing beta releases or even branch but not this one :(
Comment #8
dom. commentedHi !
I did update my site to 8.3.x-rc1 for testing and ran into this "CacheCollector" issue. Since I did not know what to do with my site (no page working, no drush module uninstalling module working, no update.php working) I had to find a workaround fast to continue my dev.
In case it helps someone, here is a simple two lines to add patch. IT IS NOT INTENDED to be a solution: the issue origin is not fixed, just symptoms are shutdown.
Comment #9
bradjones1Here's a stab at matching the changes in the aforementioned State class changes in 8.3.
Comment #11
bradjones1Let's try this again.
Comment #13
bradjones1Looking for a maintainer's help here... the testbot errors don't seem to be necessarily related to these changes?
Comment #14
nickdickinsonwildeI'll take a look later today or tomorrow. I should have been more clear in comment #5 that I was planning on refactoring this area a bit.
Most likely the errors are that those changes for compatibility are against core 8.3.x whereas the test was running against 8.2.x
Comment #15
bradjones1Copy that. I just queued a custom testbot run against 8.3. I didn't do any refactoring, just tried to match the new API, so hopefully that gets folks up and going in the meantime while you work on broader changes.
Comment #16
catchThe 8.3.x test came back green, this was just reported against the core queue after 8.3.0 release so moving to RTBC.
Comment #17
tancAlso confirmed the patch is working for me after updated to Drupal core 8.3.0
Comment #18
j.b commentedPatch #11 work with latest 8.3.0 Drupal
Comment #19
cn_jakub_novak commentedtried 2850263-drupal-8.3compatibility-11.patch against 1adff58b97cdd402f9ba899300100823d5436308 (dev-2.x).
Drupal version: 8.3.0-rc2
I get:
Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/docroot/core/lib/Drupal/Core/StreamWrapper/LocalStream.php on line 134Comment #20
kmajzlik commentedHere is my backtrace on 8.3.0
Comment #21
matas.k commented8.3.0 is official release and advagg crashed all sites updating core from 8.2.7. Browser wsod error:
The website encountered an unexpected error. Please try again later.nginx error.log:
Disabling module via drush recovers the website.
Comment #22
jaypan#11 Works for me as well on 8.3.0.
Comment #23
beautifulmindThe patch in #11 did not work. So, I uninstalled the advagg module. That worked.
Comment #24
agoradesign commentedI've changed the priority. If this ain't critical, I don't what else could be.
@beautifulmind: it would be interesting for the maintainer as well for the rest of us, what exactly did not work in the patch. Did you get the same or a different error?
Comment #25
mikeytown2 commentedLooking into this. Issue is with src/State/Files.php. Will be working on a patch that works with 8.2 and 8.3.
Comment #26
mikeytown2 commentedIssue is with the getMultiple method. Renamed to getMultiples and the patch works on 8.2. Will see what the testbot thinks.
Comment #28
mikeytown2 commentedComment #29
mikeytown2 commentedGetting somewhere... fails on 8.3 now.
Comment #30
mikeytown2 commentedComment #31
mikeytown2 commentedHere's the change from the patch in #11
Added this to the class.
Comment #32
mikeytown2 commentedIf someone more knowledgeable can step in and say why this is currently needed that would be great.
Comment #33
mikeytown2 commented@vibrasphere
That is a bug that is 1/2 fixed in D7 version of advagg.
#2852487: advagg_split_css_file() can lead to infinite loop; issue with large css files.
and
#2866766: Reordering of css selectors
Once that's fixed in D7 I'll get a patch for D8.
Comment #34
beautifulmind@agoradesign, thank you for checking.
Yes, the issue still persist. I already disabled the module and does not have the error log any more. But it has something to do with some parameters in the patched file(s). I will wait till a working solution is available.
Comment #35
jaypanYour problem appears to be different than what the rest of us are facing, as the patch has solved the problem for the rest of us. As such, you will be more likely to get assistance if you post your specific error, to give people something to work with. At the moment, the amount of information we have on your issues is too minimal to make it likely that anyone will be able to fix the problem.
Comment #36
bradjones1Catch RTBC'd this but the status has since changed... really this should be an 8.3.x patch and then be backported if necessary. I'd change the status back, but it's my patch :-)
Comment #37
catch8.2.x is no-longer supported - everyone should be updating to 8.3.x, so I'm not sure it's necessary to make the patch here backwards compatible with 8.2.x at all - maybe just add an explicit core dependency for > 8.3.0 to ensure people don't update advagg early?
Compatibility with both versions is really useful before a minor release actually comes out, but less so at this point.
Comment #38
dakwamineThe 2850263-drupal-8.3compatibility-32.patch works on 8.3.0. But the script snippet from #31 was unneeded:
composer update=> core goes 8.3.0drush updbpublic function get(...)from the src/State/Files.php file. => The site doesn't crash.Comment #40
mikeytown2 commentedCommitted #32 with extra documentation about the 8.2 vs 8.3 changes. Looks like I forgot to select bradjones1 as the author when committing; sorry about that :/
Comment #41
agoradesign commentedGreat to see this problem solved.. when do you plan to publish a new release?
Comment #42
d.fisher commentedSecond the above. Great to see this issue fixed but any ETA on getting it in to a stable release?
Comment #43
kmajzlik commentedPlease create new stable release ASAP. Drupal 8.3 is now stable and 8.2 is not supported.
Comment #44
scm6079 commentedI'll add to the voices that are very much so looking for a stable release of advagg that is Drupal 8.3.x compatible. Any updates on a release? Is there something that my development team(s) or I can do to help the process?
Comment #45
cparkner01 commentedAlso awaiting a new release
Comment #46
rtackett commentedAnother user awaiting a stable release.
@mikeytown2 , any update?
Comment #47
mikeytown2 commentedNext day or 2. Doing some clean up of the code before releasing. Testing of the latest dev would be good to know.
Comment #48
nanobyt3 commentedSounds good. I am waiting for a stable release too.
Comment #49
sam152 commentedRan into this today. A stable release would be great.
Comment #50
agoradesign commentedhttps://www.drupal.org/project/advagg/releases/8.x-2.4
Comment #51
sam152 commentedThank you @mikeytown2!
Comment #52
d.fisher commentedAmazing. On behalf of everyone thanks for all the hard work on this!!
Comment #53
beautifulmindFinally, it is here!!!
Thank you!