• Resolved ericr23

    (@ericr23)


    I get a PHP Warning: Cannot modify header information - headers already sent by (output started at /home/…/public_html/news/iffeed-scotland.php:1) in /home/…/public_html/news/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 1539

    But I’ve included “iffeed” in the list of rejected URL strings. Should I add an asterisk to it?

    (I know it’s just a warning, but I’d prefer not to see the error file.)

    • This topic was modified 1 year, 7 months ago by ericr23.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You should probably look at iffeed-scotland.php and make sure that it’s not printing anything to the browser before headers are sent. It should probably wait until after “init” has fired before doing that.

    You could also define the constant “DONOTCACHEPAGE” in it so the plugin definitely won’t cache it.

    define( 'DONOTCACHEPAGE', 1 );
    Thread Starter ericr23

    (@ericr23)

    I have wrapped the iffeed-scotland.php file in ob_start() and ob_flush(). We’ll see if that helps.

    Thread Starter ericr23

    (@ericr23)

    That appears to have taken care of it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Rejected URL strings question’ is closed to new replies.