Author Topic: Problem Installing Quake-json Script  (Read 525 times)

0 Members and 1 Guest are viewing this topic.

Offline W Thomas

  • Welcome to my area!
  • Forecaster
  • *****
  • Posts: 1643
  • In Loving Memory Of Hooker The Weather Dog !
    • Smyth-Grayson Weather
Problem Installing Quake-json Script
« on: November 28, 2018, 03:10:02 AM »
I have been working on setting this script for quite a while today and just can't seem to get around some 500 Internal Server Error returns

I think the problem is that I need this to function as standalone and apparently I have some syntax errors or such I just can't seem to find.

Here is my example  http://www.smythweather.net/wxquake.php
I'm sure it's probably an easy fix for someone who is thinking a little more clearly than me currently ](*,)

Thanks for any suggestions


     Best Regards
     Wayne

CWOP CW8217
KVAWHITE22 Wunderground   Davis VUE &  Davis Vantage Pro 2  /   Dedicated Server
GR Level 3 ,Level 2 AE Radars  Weather Display 10.37P  Mid Atlantic Weather Network Member
SkyWarn & Spotter Network 6092

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Problem Installing Quake-json Script
« Reply #1 on: November 28, 2018, 03:25:47 AM »
I have been working on setting this script for quite a while today and just can't seem to get around some 500 Internal Server Error returns

I think the problem is that I need this to function as standalone and apparently I have some syntax errors or such I just can't seem to find.

Here is my example  http://www.smythweather.net/wxquake.php
I'm sure it's probably an easy fix for someone who is thinking a little more clearly than me currently ](*,)

Thanks for any suggestions
Nobody here on the forum can look into a 500 error  directly.
I attached a smal test program.
Unzip it and place it in the same location as  wxquake.php.
Run it with http://www.smythweather.net/testquake.php  and it will probably display the line with the error.

Wim

Offline W Thomas

  • Welcome to my area!
  • Forecaster
  • *****
  • Posts: 1643
  • In Loving Memory Of Hooker The Weather Dog !
    • Smyth-Grayson Weather
Re: Problem Installing Quake-json Script
« Reply #2 on: November 28, 2018, 03:49:18 AM »
Thanks! I am thinking along the lines of a syntax error sort of problem.  It takes a congressional act to get access to the server error log to see exactly which line is causing the trouble.

Thanks again!


     Best Regards
     Wayne

CWOP CW8217
KVAWHITE22 Wunderground   Davis VUE &  Davis Vantage Pro 2  /   Dedicated Server
GR Level 3 ,Level 2 AE Radars  Weather Display 10.37P  Mid Atlantic Weather Network Member
SkyWarn & Spotter Network 6092

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Problem Installing Quake-json Script
« Reply #3 on: November 28, 2018, 03:59:18 AM »
Thanks! I am thinking along the lines of a syntax error sort of problem.  It takes a congressional act to get access to the server error log to see exactly which line is causing the trouble.

Thanks again!
The testscript returns a notice => not important
and a fatal error  in line 39:
Quote
Fatal error:
 Call to undefined function langtransstr() in /hermes/bosnacweb01/bosnacweb01am/b879/ipg.smythweathernet/wxquake.php on line 39
The script seems to need the Saratoga language translations functions.
Most scripts that start with wx are designed to run in the Saratoga template.
So check if there is another starting script available. One for stand-alone use.
Wim

Offline W Thomas

  • Welcome to my area!
  • Forecaster
  • *****
  • Posts: 1643
  • In Loving Memory Of Hooker The Weather Dog !
    • Smyth-Grayson Weather
Re: Problem Installing Quake-json Script
« Reply #4 on: November 28, 2018, 04:50:09 AM »
Yes, I believe you are correct.   I was unable to find a"true" standalone version. I worked with picking out the code that was invoking errors and finally managed to get it working sort of..
I am going to have to dig deep again and get the alignment correct and correct the background color. Hopefully that won't be too bad #-o

http://www.smythweather.net/wxquakemap.php


     Best Regards
     Wayne

CWOP CW8217
KVAWHITE22 Wunderground   Davis VUE &  Davis Vantage Pro 2  /   Dedicated Server
GR Level 3 ,Level 2 AE Radars  Weather Display 10.37P  Mid Atlantic Weather Network Member
SkyWarn & Spotter Network 6092

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Problem Installing Quake-json Script
« Reply #5 on: November 28, 2018, 05:00:35 AM »
Yes, I believe you are correct.   I was unable to find a"true" standalone version. I worked with picking out the code that was invoking errors and finally managed to get it working sort of..
I am going to have to dig deep again and get the alignment correct and correct the background color. Hopefully that won't be too bad #-o

http://www.smythweather.net/wxquakemap.php
To test the script you should set the distance from 200 to a rather large value, 10000 miles or so.
http://www.smythweather.net/wxquakemap.php?distance=5000
That way you know for sure that the important part of the script is working OK.

Wim

Offline W Thomas

  • Welcome to my area!
  • Forecaster
  • *****
  • Posts: 1643
  • In Loving Memory Of Hooker The Weather Dog !
    • Smyth-Grayson Weather
Re: Problem Installing Quake-json Script
« Reply #6 on: November 28, 2018, 10:19:50 AM »
I adjusted the distance and it appears the script itself is working great  \:D/

But I can't seem to get my template page centered when including quakes.php for some dang reason

http://www.smythweather.net/wxquakemap.php


     Best Regards
     Wayne

CWOP CW8217
KVAWHITE22 Wunderground   Davis VUE &  Davis Vantage Pro 2  /   Dedicated Server
GR Level 3 ,Level 2 AE Radars  Weather Display 10.37P  Mid Atlantic Weather Network Member
SkyWarn & Spotter Network 6092