Warning: Cannot modify header information

Permalink
I added define('PERMISSIONS_MODEL', 'advanced'); to site/config.php and now I am getting PHP error messages on all my pages. I removed the line of code but that didn't fix the problem. Any help would be greatly appreciated. Thanks.

http://www.westhartfordfence.com/...

kreative
 
mkly replied on at Permalink Reply
mkly
in config/site.php

Make sure there are not any extra lines at the end or beginning.

There also appears to be a ;; in there. Maybe that is in your config/site.php.
kreative replied on at Permalink Reply
kreative
Ah yes.

My last line of code looked like (It was all on one line):

define('CACHE_FRONTEND_OPTIONS', serialize(array('automatic_cleaning_factor' => 0)));?><?php define('DIRNAME_APP_UPDATED', 'concrete5.4.2.2');?>

At first glance I thought it was missing the ; so I added it:

define('CACHE_FRONTEND_OPTIONS', serialize(array('automatic_cleaning_factor' => 0)));?><?php define('DIRNAME_APP_UPDATED', 'concrete5.4.2.2');?>;

Thus the error.

Thanks for the help.
mkly replied on at Permalink Reply 1 Attachment
mkly
I'm not sure if you are doing this already but you need to make sure you are manually clearing the cache when you disable automatic cleaning. I'm attaching a job file that you can install and run once an hour/day/week depending on you site load.
kreative replied on at Permalink Reply
kreative
Thanks. Do you have any documentation on how to install a job?

I placed the file in /concrete/jobs/
Logged out, cleared my cache, logged back in.

I don't see the job in System & Maintenance/Jobs