Author Topic: Validation Errors in wxforecast.php  (Read 469 times)

0 Members and 1 Guest are viewing this topic.

Offline jachen

  • Member
  • *
  • Posts: 39
    • Neue Wetterstation Widen
Validation Errors in wxforecast.php
« on: April 12, 2019, 11:06:57 AM »
Hello all
 I probably screwed up something when updating from Wunderground (WU) fo WC.forecasts and get the lines below into source code causing the page not to validate.

Question: What causes these lines to be parsed?

Code: [Select]
<div id="main-copy">
         <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

https://meteo.widen-online.ch

Thanks a lot for any ideas.
jachen

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9288
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Validation Errors in wxforecast.php
« Reply #1 on: April 12, 2019, 11:49:08 AM »
If you're using the WC-forecast.php to replace the WU-forecast.php script, the calling page has to be a bit different:

Code: [Select]
<?php
$doIncludeWC 
true;
include(
"WC-forecast.php"); ?>
instead of the old WU-forecast script which used
Code: [Select]
<?php
$doIncludeWU 
true;
include(
"WU-forecast.php"); ?>
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 jachen

  • Member
  • *
  • Posts: 39
    • Neue Wetterstation Widen
Re: Validation Errors in wxforecast.php
« Reply #2 on: April 12, 2019, 01:51:47 PM »
Thank you Ken

I read that on your description under "Usage Samples" but my brain didn't follow exactly where to put the code. "The calling page" was the key. I am very old. Better in gardening.

Have a good weekend.