Author Topic: Help with Saratoga template and standalone page  (Read 685 times)

0 Members and 1 Guest are viewing this topic.

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1526
    • Texas Weather
Help with Saratoga template and standalone page
« on: June 30, 2019, 11:54:30 PM »
I have this page https://www.txweather.org/wxrecordsalltime.php I am using standalone mode and I have gave it the file path to testtags which is located under WDL/testtatgs.php
The issue is that the pages does not seem to find the file. Any ideas what I have done wrong?

Thanks!

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1526
    • Texas Weather
Re: Help with Saratoga template and standalone page
« Reply #1 on: July 01, 2019, 10:37:06 AM »
BumP! :)

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1526
    • My PWS at Leuven Belgium Europe
Re: Help with Saratoga template and standalone page
« Reply #2 on: July 01, 2019, 12:02:54 PM »
I have this page https://www.txweather.org/wxrecordsalltime.php I am using standalone mode and I have gave it the file path to testtags which is located under WDL/testtatgs.php
The issue is that the pages does not seem to find the file. Any ideas what I have done wrong?

Thanks!
Without the source of thescript it is difficult to check.
Normally adding sce=view displays the script, but not in this case https://www.txweather.org/wxrecordsalltime.php?sce=view
The output is  File: MBtags.php
Are you sure that testtags.php is the one used?

Wim
Support for Leuven-Template & Scripts  at this forum
Support for the PWS_Dashboard (HWS-template) for WD a.o.  https://pwsdashboard.com/
Script sponsors https://support.leuven-template.eu/userlistScripts.php
Template sponsors https://support.leuven-template.eu/userlist.php

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 632
    • LexMAWeather
Re: Help with Saratoga template and standalone page
« Reply #3 on: July 01, 2019, 12:27:24 PM »
Quote
Without the source of thescript it is difficult to check.
Normally adding sce=view displays the script, but not in this case https://www.txweather.org/wxrecordsalltime.php?sce=view
The output is  File: MBtags.php
Are you sure that testtags.php is the one used?

Wim

This will happen if the MBtags.php include is in the file before the download code. The same parameter is examined in MBtags, so it executes there and then exits - and the download code for the page isn't reached.

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1526
    • Texas Weather
Re: Help with Saratoga template and standalone page
« Reply #4 on: July 01, 2019, 01:00:58 PM »
I created a pastebin with the code and my edits.
I removed all calls to settings.php but it still somehow pulling MBtags.php which is very confusing.
I cant find where is calling it from... Maybe from the top/headers/common.php?
Is also confusing because I am declaring my wxtags on the file so why is still pulling it from the site it self... :?
https://pastebin.com/Pf7N0XVr

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1526
    • My PWS at Leuven Belgium Europe
Re: Help with Saratoga template and standalone page
« Reply #5 on: July 01, 2019, 01:21:59 PM »
I have this page https://www.txweather.org/wxrecordsalltime.php I am using standalone mode and I have gave it the file path to testtags which is located under WDL/testtatgs.php
The issue is that the pages does not seem to find the file. Any ideas what I have done wrong?

Thanks!
Your are running a saratoga page.
The $SITE['WXtags'] are included in top.php, based on your settins.php and settingsweather.php => MBtags.php

You defined in your script
$WXtags  =  './WDL/testtags.php';

But the $WXtags is not used anymore in the script
There should be an include $WXtags;  also.

Wim

Support for Leuven-Template & Scripts  at this forum
Support for the PWS_Dashboard (HWS-template) for WD a.o.  https://pwsdashboard.com/
Script sponsors https://support.leuven-template.eu/userlistScripts.php
Template sponsors https://support.leuven-template.eu/userlist.php

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1526
    • Texas Weather
Re: Help with Saratoga template and standalone page
« Reply #6 on: July 01, 2019, 01:27:44 PM »
I have this page https://www.txweather.org/wxrecordsalltime.php I am using standalone mode and I have gave it the file path to testtags which is located under WDL/testtatgs.php
The issue is that the pages does not seem to find the file. Any ideas what I have done wrong?

Thanks!
Your are running a saratoga page.
The $SITE['WXtags'] are included in top.php, based on your settins.php and settingsweather.php => MBtags.php

You defined in your script
$WXtags  =  './WDL/testtags.php';

But the $WXtags is not used anymore in the script
There should be an include $WXtags;  also.

Wim



BAM!
That was it. https://www.txweather.org/wxrecordsalltime.php Now I have some data. I still have to fix what is shwoing wrong. Not sure what is causing that one.
Precipitation Records

Highest Daily Precipitation    0.00 in    12/31/2015
Highest Monthly Precipitation    in    /
Highest Precipitation Rate    0 in/hr    12/31/1969
Consecutive Days With Precipitation    0 Days    Ending: 12/31/2015
Consecutive Days Without Precipitation    Days    Ending: 12/31/1969

I think is because my 2015 import is not done.
Man this is awesome!
Thanks so much Wim!

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1526
    • Texas Weather
Re: Help with Saratoga template and standalone page
« Reply #7 on: July 01, 2019, 08:59:34 PM »
ok my precipitations is screwed up. I cant make it show up correctly. Any ideas why?

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

 

anything