Author Topic: Warning: Cannot modify header info  (Read 577 times)

0 Members and 1 Guest are viewing this topic.

Offline ed2kayak

  • Ed
  • Forecaster
  • *****
  • Posts: 613
  • Davis Vantage Pro2 w/12 hr FARS, solar/uv
    • Cumberland Valley Weather
Warning: Cannot modify header info
« on: March 28, 2018, 09:10:00 PM »
http://cvweather.org/?sce=view

Yields errors on my Burnsville modified Saratoga template.

Discovered this while trying to determine why my mobile site shows expired alerts http://cvweather.org/mobile-dashboard.php

Don't know if these are related issues.

Any suggestions appreciated.

Thanks

Ed
Ed
CoCoRaHS PA-CD-6,  Weather Underground KPAMECHA7, CWOP DW5425

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 923
    • North Bend Weather
Re: Warning: Cannot modify header info
« Reply #1 on: March 28, 2018, 10:03:53 PM »
Im sure Ken will be able to help more with the details but this line is showing your testtags file is 2 levels up compared to your other files.

/home/cvweather/www/www/testtags.php
"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + VP2 UV + Lightning Detector + Logitech Webcam + Soil temp + Soil Moisture

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9288
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Warning: Cannot modify header info
« Reply #2 on: March 29, 2018, 05:38:25 PM »
The ?sce=view is a small snippet of code added to many of my scripts to allow the PHP source code to be remotely viewed (useful for debugging purposes and remote support).

When you try it on the index.php page with just /?sce=view, then the first script loaded that has that capability will display it's own source, and exit.  In template pages, the first script with that capability loaded is likely the weather tags file (testtags.php for Weather-Display). The wx...php (and by extension the index.php page) do not have that ?sce=view capability installed, so it's no wonder you get unexpected results .. it's not a bug.. it's just the way it works.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline ed2kayak

  • Ed
  • Forecaster
  • *****
  • Posts: 613
  • Davis Vantage Pro2 w/12 hr FARS, solar/uv
    • Cumberland Valley Weather
Re: Warning: Cannot modify header info
« Reply #3 on: April 03, 2018, 06:35:43 PM »
Thanks Ken.
Ed
CoCoRaHS PA-CD-6,  Weather Underground KPAMECHA7, CWOP DW5425

 

anything