ericr23
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Super Cache] Problems in trying to view the debug logPoking around, I see a
wp-cache-config.php
file in/wp-content
, and a line in it:wp_cache_home_path = '/news/';
. If I comment out that line, Super Cache adds it back. I change it to'/'
, Super Cache changes it back. This may not be relevant, of course. Again, it is only the link to the view script for the debug log that has the extra /news in the path; the view script and the debug log are exactly where they’re supposed to be:/home/xxx/public_html/news/wp-content/cache/
.Forum: Plugins
In reply to: [WP Super Cache] Problems in trying to view the debug logAlso, in wp-config:
define('WPCACHEHOME', '/home/xxx/public_html/news/wp-content/plugins/wp-super-cache/');
Forum: Plugins
In reply to: [WP Super Cache] Problems in trying to view the debug logThe cache location is set as
/home/xxx/public_html/news/wp-content/cache/
. That is the default (which I confirmed by deleting it and having it reset). And that’s where the debug log and the view file are; it’s just the link in the debug tab to the view file that has the extra/news
in the path. There is no custom directory directive in the wp-config or htaccess file. There is no/news/news
subdirectory. The WordPress address and site address are both set ashttps://www.xxx.org/news
.- This reply was modified 1 year, 12 months ago by ericr23.
Forum: Plugins
In reply to: [WP Super Cache] “Cannot modify header information”Thanks for your patience and support!
Forum: Plugins
In reply to: [WP Super Cache] Problems in trying to view the debug logAnd then after a while, Super Cache (sensibly!) deletes the altered view file. So how can I log in to it?
Forum: Plugins
In reply to: [WP Super Cache] “Cannot modify header information”I wrapped those
inc
files inob_start()
andob_flush()
, and that appears to have solved the problem! (Still no idea why it was a problem in only 1 WP instance and not in the other 2.)Forum: Plugins
In reply to: [WP Super Cache] “Cannot modify header information”A couple years ago in the Phast Press forum, the addition of
add_action('template_redirect', function () { ob_start(); });
to the theme’s function.php file was reported to work. It didn’t make a difference in our case, however.
It may or may not be relevant, and again it’s in all 3 of my WP modules and only 1 is creating the warning, but my function.php also includes this fix from some time ago:
remove_action( 'shutdown', 'wp_ob_end_flush_all', 1 ); add_action( 'shutdown', function() { while ( @ob_end_flush() ); } );
I tried removing that, but no difference there.
Forum: Plugins
In reply to: [WP Super Cache] “Cannot modify header information”*All 3 WP modules use the same files from the root directory: nwwdoctype, nwwmeta2, and header.inc.
Forum: Plugins
In reply to: [WP Super Cache] “Cannot modify header information”How can I make
nwwheader.inc
not write headers out before Super Cache runs? As far as I know, I’m not setting any response header myself (and it’s mystifying that the warning appears only with 1 of my 3 WordPress modules). My index and single pages write<!DOCTYPE html>
and then a bunch of<head>
info, including annwwmeta2.inc
file and not until the<body>
starts to be written do they callheader.inc
. The first PHP code is run after<head>
.- This reply was modified 2 years ago by ericr23.
Forum: Plugins
In reply to: [WP Super Cache] Zlib Output Compression Enabled, but …Many thanks!
Forum: Plugins
In reply to: [WP Super Cache] “Cannot modify header information”Neither of those is fully getting rid of the warnings, however. And I’m still mystified as to why it occurs in with one module (“news”) and not the other (“documents”).
- This reply was modified 2 years ago by ericr23.
Forum: Plugins
In reply to: [WP Super Cache] Zlib Output Compression Enabled, but …Thank you. The thing is, the WordPress module is just one part of my web site. So I want the zlib output compression for the rest of it (and the WP admin pages). I wonder if I could turn off the zlib compression for specific directories.
Thank you.
Forum: Plugins
In reply to: [WP Super Cache] “Cannot modify header information”I also found that nwwmeta2.inc was writing “<html>” twice, which may have been a problem.
Forum: Plugins
In reply to: [WP Super Cache] “Cannot modify header information”Fixed to some extent, perhaps: The warning has become rarer. Turns out the Microsoft Clarity script in nwwmeta2.inc was missing the closing script tag. (And apparently I never went to the Clarity site to discover that it wasn’t working.)
- This reply was modified 2 years ago by ericr23.