Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
cache system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Oct 2013 at 14:30 UTC
Updated:
10 Jun 2022 at 09:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mfbIgnore this patch - I don't think there is any reason to use strlen() because the corresponding code in drupal_page_set_cache() just checks if the body evaluates to TRUE.
Comment #2
mfbThis bug is triggered by lines in common.inc which don't compress the body or set the cache if it evaluates to empty:
Comment #3
mfbComment #4
lazysoundsystem commentedI also ran into this - thanks for the patch.
This variation tidies it up a bit by defining
$page_compressionin one place, at the top of the function.Comment #5
james.williamsThis fixed the issue for me, thanks!
Comment #6
sokru commentedHad the same issue and patch in #4 fixed the issue. RTBC in my opinion.
Comment #7
mfbHere's a failing test without the patch.
Comment #9
mfbAnd here's lazysoundsystem's patch from #4 plus the test from #7
Comment #10
bobburns commentedHow long before this gets committed to core ?? I have put on this patch four times - every times a new version of Drupal 7 is released
Comment #11
mfb@bobburns if it's working for you, can you set it to "reviewed & tested by the community"?
Comment #12
sokru commentedComment #13
poniesWorks for me!
@bobburns Check out Drush patch files. https://chromatichq.com/blog/how-manage-your-drupal-patches-drush-patch-...
Comment #14
bobburns commented" ponies: ponies commented 12 days ago
Works for me!
@bobburns Check out Drush patch files. https://chromatichq.com/blog/how-manage-your-drupal-patches-drush-patch-..."
That's great - but I cannot count how many parts of me is scared of that.
In CORE modules - code gets changed sometimes and the patch will not find where it needs to go
In CONTRIB modules - I simply " ; " out the " project " in the info file so it won't check and update.
The problem is GETTING someone to commit a working patch to CORE - and often the owner of the modules's solution changes code that the patch cannot work in and then I will NEVER find the piece of spaghetti that took down the whole site.
I will stick with copying the file to a file_save - changing the original file and if it does not work - I have copies to immediately go back to and I can know immediately if the site goes down and that I am the one who did it - and what I did.
Comment #15
bobburns commentedCan someone get this committed to core . . . I patched 7.67 and it still works fine after the patch . . . I have a directory of persistently neglected patches I have to apply each time core is updated
Comment #16
anrikun commented+1
Comment #17
wylbur commentedWow, another very old resolved issue that is still not added back to Drupal 7.
How do we get this patch applied to the next version of Drupal 7?
Comment #18
anrikun commentedWho knows, @Wylbur.
It's been a mystery to me too.
drush patch file is my friend now.
Comment #20
mfbUpdate line number for the warning
Comment #21
mcdruid commentedLGTM, thanks!
Comment #22
fabianx commentedRTBC + 1, let's get this in.
Comment #23
fabianx commentedComment #25
mcdruid commentedThank you!