Not working with PHP 7.1-3

Permalink
I was upgrading from 5.6 PHP to PHP 7.1 (tried .2 and .3 too). When I did this a couple of the pages worked fine but most gave me the error

Use of undefined constant CACHE_LIFETIME - assumed 'CACHE_LIFETIME'

I searched and found a few reports of this, but nothing I could seem to find with an answer/solution. I am on a VPS server so I can "control" the settings on the server. All teh pages that had this error get the same output info as you can see in the screen shot.

HELP!

1 Attachment

plschneide
View Replies:
hutman replied on at Permalink Reply
hutman
Check any custom blocks on your site, there is likely a line that looks like this one or more controller.php files, just delete that line and it should fix the error.

protected $btCacheBlockOutputLifetime = CACHE_LIFETIME;
plschneide replied on at Permalink Reply 2 Attachments
plschneide
Thanks for the suggestion!

I downloaded the site and did a full search and didn't find anything like that. I did find a bunch of statements with Full cache in it for two core concrete files (I think they are core)

These look to be custom variables I think.

I did find a statement like that in the hutman ad in the trash under files. I deleted all trash files to be safe and also cleared cache. I couldn't find it anywhere else based on that string.

Other ideas?