Author Topic: Saratoga Website -err0r  (Read 1004 times)

0 Members and 1 Guest are viewing this topic.

Offline rlmarcum22

  • Senior Member
  • **
  • Posts: 85
    • East-Central Kentucky Weather
Saratoga Website -err0r
« on: March 01, 2021, 01:59:38 AM »
I was trying to edit my website earlier and accidentally entered something wrong into the Settings.php code but soon removed it and have even went as far as uploading a new Settings.php file to my website and configuring it correctly but I'm still getting this same display on my homepage.  Its like my code/HTML isn't updating to my website.  You can see what Im talking about here: www.ekyrrgweather.com ](*,) ](*,) :arrow:
« Last Edit: March 01, 2021, 02:08:15 AM by rlmarcum22 »

Offline ConligWX

  • Forecaster
  • *****
  • Posts: 781
  • #conligwx
    • conligwx.org
Re: Saratoga Website -err0r
« Reply #1 on: March 01, 2021, 04:46:01 AM »
well its suggesting the settings.php line 181 is wrong.

Code: [Select]
Parse error: syntax error, unexpected '"KYZ108|Campton|https://foreca' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /home/customer/www/ekyrrgweather.com/public_html/Settings.php on line 181


can you post what is on Line 181?


also looks like you need some updates scripts applied.

http://www.ekyrrgweather.com/check-fetch-times.php?show=versions
« Last Edit: March 01, 2021, 04:48:11 AM by ConligWX »
Regards Simon
Davis Vantage Pro2 Plus (6162UK) Daytime FARS WeatherLink Live AirLink PurpleAir PA-II-SD CumulusMX


Offline rlmarcum22

  • Senior Member
  • **
  • Posts: 85
    • East-Central Kentucky Weather
Re: Saratoga Website -err0r
« Reply #2 on: March 01, 2021, 04:49:06 AM »
Ive taken that code out and even uploaded a new settings.php and configured it to match what I wanted and its till giving me that same message like the code isn't updating or something.  Also I haven't checked my files in a while so Im not surprised some are outdated.


Offline ConligWX

  • Forecaster
  • *****
  • Posts: 781
  • #conligwx
    • conligwx.org
Re: Saratoga Website -err0r
« Reply #3 on: March 01, 2021, 04:51:26 AM »
what version of settings do you have running at present?

mine is the World-base version:

// Version 1.05 - 11-Apr-2020
« Last Edit: March 01, 2021, 05:19:59 AM by ConligWX »
Regards Simon
Davis Vantage Pro2 Plus (6162UK) Daytime FARS WeatherLink Live AirLink PurpleAir PA-II-SD CumulusMX


Offline rlmarcum22

  • Senior Member
  • **
  • Posts: 85
    • East-Central Kentucky Weather
Re: Saratoga Website -err0r
« Reply #4 on: March 01, 2021, 04:54:17 AM »
The USA-Base version.

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1921
    • My PWS at Leuven Belgium Europe
Re: Saratoga Website -err0r
« Reply #5 on: March 01, 2021, 05:02:24 AM »
Ive taken that code out and even uploaded a new settings.php and configured it to match what I wanted and its till giving me that same message like the code isn't updating or something.  Also I haven't checked my files in a while so Im not surprised some are outdated.

Could you post the lines 175-185 of your settings?
The error is before line 181, probably a missing , between array elements.

But we can not look into the settings file, so you need to post at least those lines.

Wim

Offline rlmarcum22

  • Senior Member
  • **
  • Posts: 85
    • East-Central Kentucky Weather
Re: Saratoga Website -err0r
« Reply #6 on: March 01, 2021, 05:05:52 AM »
$SITE['fcstscript']      = 'advforecast2.php';  // USA-only NWS Forecast script
$SITE['fcstorg']      = 'NWS';    // set to 'NWS' for NOAA NWS

$SITE['NWSforecasts']   = array( // for the advforecast2.php V3.xx version script
// use "Zone|Location|Point-printableURL",  as entries .. first one will be the default forecast.
  "KYZ059|Clay City|https://forecast.weather.gov/MapClick.php?lat=37.8633&lon=-83.9254#.YDx5HC2ZNQI",
"KYZ108|Campton|https://forecast.weather.gov/MapClick.php?lat=37.7342&lon=-83.5491#.YDx5ZC2ZNQI",
"KYZ050|Mt. Sterling|https://forecast.weather.gov/MapClick.php?lat=38.0573&lon=-83.9424#.YDx5hy2ZNQI",
"KYZ059|Stanton|https://forecast.weather.gov/MapClick.php?lat=37.8462&lon=-83.8584#.YDx5NC2ZNQI",
"KYZ059|Slade|https://forecast.weather.gov/MapClick.php?lat=37.7956&lon=-83.704#.YDx5Ty2ZNQI",
"KYZ049|Winchester|https://forecast.weather.gov/MapClick.php?lat=37.9931&lon=-84.1791#.YDx5nC2ZNQI",
"KYZ058|Irvine|https://forecast.weather.gov/MapClick.php?lat=37.6999&lon=-83.9748#.YDx5xC2ZNQI",
"KYZ041|Lexington|https://forecast.weather.gov/MapClick.php?lat=38.0486&lon=-84.5003#.YDx55S2ZNQI",
"KYZ057|Richmond|https://forecast.weather.gov/MapClick.php?lat=37.7488&lon=-84.2976#.YDx5-i2ZNQI",
);

Like I said Ive changed the code its like its not updating.

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1921
    • My PWS at Leuven Belgium Europe
Re: Saratoga Website -err0r
« Reply #7 on: March 01, 2021, 05:21:42 AM »
. . .
Like I said Ive changed the code its like its not updating.
Yes, you, did.
But there seems to be TWO different parts accessed at your webserver

One part accessed by these links
http://www.ekyrrgweather.com/index.php  is working correctly.
http://www.ekyrrgweather.com/check-fetch-times.php  and this one works OK also
It uses this document root: /home/u1750-aua9ewsywunv/www/ekyrrgweather.com/public_html

Your link
http://www.ekyrrgweather.com/   => points to a different
and uses a different document root:  /home/customer/www/ekyrrgweather.com/public_html/

Wim
« Last Edit: March 01, 2021, 05:23:44 AM by wvdkuil »

Offline rlmarcum22

  • Senior Member
  • **
  • Posts: 85
    • East-Central Kentucky Weather
Re: Saratoga Website -err0r
« Reply #8 on: March 01, 2021, 05:24:48 AM »
So, in simpler terms, how do I fix this?

Offline ConligWX

  • Forecaster
  • *****
  • Posts: 781
  • #conligwx
    • conligwx.org
Re: Saratoga Website -err0r
« Reply #9 on: March 01, 2021, 05:27:50 AM »
looks like some weird issue with redirect perhaps?

http://www.ekyrrgweather.com/index.php  (http works)
https://www.ekyrrgweather.com/index.php (https doesnt)


have you added a redirect  from http to https recently in .htaccess perhaps?


Regards Simon
Davis Vantage Pro2 Plus (6162UK) Daytime FARS WeatherLink Live AirLink PurpleAir PA-II-SD CumulusMX


Offline rlmarcum22

  • Senior Member
  • **
  • Posts: 85
    • East-Central Kentucky Weather
Re: Saratoga Website -err0r
« Reply #10 on: March 01, 2021, 05:29:26 AM »
Will it ever get fixed/update?

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1921
    • My PWS at Leuven Belgium Europe
Re: Saratoga Website -err0r
« Reply #11 on: March 01, 2021, 05:29:39 AM »
So, in simpler terms, how do I fix this?
Will it ever get fixed/update?

Well you should ask your provider.

Probably there is a kind of redirect in your htaccess.
Maybe you (your provider) switched you from hosting contract?
You have two "contract-nr" folders  u1750-aua9ewsywunv  and customer

Or you (your provider)  pointed visitors without an start-script to the wrong (old) website. 
We can not access your public-html/ folder. 
Your support at your provider can check.

Wim
« Last Edit: March 01, 2021, 05:31:39 AM by wvdkuil »

Offline rlmarcum22

  • Senior Member
  • **
  • Posts: 85
    • East-Central Kentucky Weather
Re: Saratoga Website -err0r
« Reply #12 on: March 01, 2021, 05:30:41 AM »
I plan on changing providers in the next month or so, but I can ask?  Every time I work on the files it goes really slow.

Offline rlmarcum22

  • Senior Member
  • **
  • Posts: 85
    • East-Central Kentucky Weather
Re: Saratoga Website -err0r
« Reply #13 on: March 01, 2021, 05:36:01 AM »
It doesn't work without the index.php and it should as well.

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1921
    • My PWS at Leuven Belgium Europe
Re: Saratoga Website -err0r
« Reply #14 on: March 01, 2021, 05:38:33 AM »
It doesn't work without the index.php and it should as well.

That is probably a setting to the "old" customer-folder.
As said, it can be set  in cPanel or htaccess.
Could be a setting you made in the past.

But to find it one needs access to both cPanel and FTP.

Support at your provider can easily locate that "redirect" script.

Wim

Offline rlmarcum22

  • Senior Member
  • **
  • Posts: 85
    • East-Central Kentucky Weather
Re: Saratoga Website -err0r
« Reply #15 on: March 01, 2021, 05:39:48 AM »
What should I ask/tell my provider?  Im not very experienced with this stuff. ](*,)

Offline ConligWX

  • Forecaster
  • *****
  • Posts: 781
  • #conligwx
    • conligwx.org
Re: Saratoga Website -err0r
« Reply #16 on: March 01, 2021, 05:42:19 AM »
What should I ask/tell my provider?  Im not very experienced with this stuff. ](*,)

thell them what I said.

looks like some weird issue with redirect perhaps?

http://www.ekyrrgweather.com/index.php  (http works)
https://www.ekyrrgweather.com/index.php (https doesnt)


have you added a redirect  from http to https recently in .htaccess perhaps?
Regards Simon
Davis Vantage Pro2 Plus (6162UK) Daytime FARS WeatherLink Live AirLink PurpleAir PA-II-SD CumulusMX


Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1921
    • My PWS at Leuven Belgium Europe
Re: Saratoga Website -err0r
« Reply #17 on: March 01, 2021, 05:42:41 AM »
What should I ask/tell my provider?  Im not very experienced with this stuff. ](*,)
You tell them / open a support ticket:

http://www.ekyrrgweather.com/index.php   works
http://www.ekyrrgweather.com/    does not work

Tell them to read this topic from this post onwards https://www.wxforum.net/index.php?topic=41602.msg426064#msg426064.

They can check the links themselves.

Wim

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1921
    • My PWS at Leuven Belgium Europe
Re: Saratoga Website -err0r
« Reply #18 on: March 01, 2021, 05:44:01 AM »
What should I ask/tell my provider?  Im not very experienced with this stuff. ](*,)

thell them what I said.

looks like some weird issue with redirect perhaps?

http://www.ekyrrgweather.com/index.php  (http works)
https://www.ekyrrgweather.com/index.php (https doesnt)


have you added a redirect  from http to https recently in .htaccess perhaps?

Sorry, but is is not a "https does not work" problem.
The link without index.php does not work, that is the question of the OP.

The https link points to the wrong folder also
Code: [Select]
/home/customer/www/ekyrrgweather.com/public_html/
Wim
« Last Edit: March 01, 2021, 05:47:28 AM by wvdkuil »

Offline ConligWX

  • Forecaster
  • *****
  • Posts: 781
  • #conligwx
    • conligwx.org
Re: Saratoga Website -err0r
« Reply #19 on: March 01, 2021, 01:34:38 PM »
seems to be all working now  [tup]

your realtime though seems to be 5 minute intervals and not 15 seconds as reported in the wxstatus.php page.
« Last Edit: March 01, 2021, 01:36:49 PM by ConligWX »
Regards Simon
Davis Vantage Pro2 Plus (6162UK) Daytime FARS WeatherLink Live AirLink PurpleAir PA-II-SD CumulusMX