Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I get this notice of undefined variable comment_count on line 740 in authcache.module
I've comments disabled on the site, so indeed comment_count is not defined.
Wrapping it in isset() like so:
if ($user->uid && isset($node->comment_count))
seems to fix it.
Comments
Comment #1
simg CreditAttribution: simg commentedapplied to dev version, thanks :)
Comment #2
simg CreditAttribution: simg commented