Author Topic: Updating HamWeather Tropical Plugin  (Read 2170 times)

0 Members and 1 Guest are viewing this topic.

Offline Tesla

  • Member
  • *
  • Posts: 36
Updating HamWeather Tropical Plugin
« on: June 21, 2017, 04:04:18 PM »
Hello all,

I've been working on fixing the PHP version of the HamWeather Tropical Plugin.  I have fixed many bugs, but haven't figured out how to fix all of them.  One that I'm currently trying to fix is that on my website the the forecast cone isn't working.  I'm running the plugin on PHP 5.2, I've heard that PHP 5.5 and higher breaks HamWeather.  I'm working on the last version of the plugin.. 3.1 and using the last version of HW PHP.. 3.993.  If you have a install of the Tropical Plugin that has working forecast cone or interested in helping fix bugs, please let me know.  In return of any help, I'll give you a copy of the fixed plugin.

Here is a link to the plugin with the fixes that I've done so far.
http://www.tropicalwxcenter.com/tropical/ts.php?forecast=tropsystems

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Updating HamWeather Tropical Plugin
« Reply #1 on: June 21, 2017, 05:58:15 PM »
Can you post the errors you are getting when using the newer PHP version?

Offline Tesla

  • Member
  • *
  • Posts: 36
Re: Updating HamWeather Tropical Plugin
« Reply #2 on: June 21, 2017, 06:18:39 PM »
I just tested various versions.. I get errors below version 5.2 and above 5.2.

This one in PHP 5.3
Code: [Select]
Deprecated: Function split() is deprecated in /home/tropica2/public_html/tropical/hamlib/HW3Plugins/ImagePluginAPI.php on line 554

Many more as I increase PHP version

Would you like a copy to play with?

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Updating HamWeather Tropical Plugin
« Reply #3 on: June 21, 2017, 06:41:18 PM »
Yes, post the entire code here, this should not be so difficult to fix

Offline Tesla

  • Member
  • *
  • Posts: 36
Re: Updating HamWeather Tropical Plugin
« Reply #4 on: June 21, 2017, 06:55:45 PM »
Okay,

I'll get everything together and make a zip.

EDIT:
I found installs with working forecast cone/wedge on the home page.

http://www.storm2k.org/weather/hw3.php?forecast=tropsystems
http://weatherlive.net/basic/hw3.php?forecast=tropsystems
« Last Edit: June 22, 2017, 05:54:47 PM by Tesla »

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Updating HamWeather Tropical Plugin
« Reply #5 on: June 21, 2017, 07:18:45 PM »
I dont think it is possible to post ZIP files here, just save the PHP file as TXT and add it as attachment to your post, I will look at it tomorrow

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Updating HamWeather Tropical Plugin
« Reply #6 on: June 22, 2017, 08:24:56 AM »
OK can you please just post the page which you are trying to fix? The ZIP file you posted is over 60MBs!

Offline Tesla

  • Member
  • *
  • Posts: 36
Re: Updating HamWeather Tropical Plugin
« Reply #7 on: June 22, 2017, 12:33:11 PM »
I can't.. it is many files.. the problem is trying to figure out which files needs to be fixed.
« Last Edit: June 22, 2017, 12:36:02 PM by Tesla »

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Updating HamWeather Tropical Plugin
« Reply #8 on: June 22, 2017, 01:11:26 PM »
Does it run stand-alone or is it part of some template?

Offline Tesla

  • Member
  • *
  • Posts: 36
Re: Updating HamWeather Tropical Plugin
« Reply #9 on: June 22, 2017, 03:21:59 PM »
It is dependent on four different packages, but I've installed them all into one folder.  All you have to do is upload that folder in the zip to your server and then open the index.php in your browser to run.  There is a setup readme text file also in the zip.  Thanks for taking a look.  It is quite complex.

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Updating HamWeather Tropical Plugin
« Reply #10 on: June 22, 2017, 05:19:13 PM »
Hi,
ok Im afraid I wont be able to help you with this. I can help you with specific errors, but the problem is that when I download it, there are like four folders, each with hundreds of files including some mySQL files etc, all having over 80MBs. This seems like a quite complicated script consisting of a database and many interconnected scripts and I have no clue how this is supposed to work or what it is supposed to do and it would take hours to find it out because it also gives me lot of incorrect paths so most likely the directory structure is not ok.
Either you need to ask someone who knows this script or post specific errors you have

Offline Tesla

  • Member
  • *
  • Posts: 36
Re: Updating HamWeather Tropical Plugin
« Reply #11 on: June 22, 2017, 05:50:35 PM »
Thank you for taking a look.

I'm hoping there are some members here with experience with HW that can help.  I believe I can fix the system text products. The main error that I have no idea how to fix at the moment is the missing forecast cone/wedge.  I have found someone that has this working on his site, and he said he is willing to help me troubleshoot.  If anyone else wants to try and install and see if the forecast cone/wedge works on your server, that would be great.  All files needed are in the zip.  I also included a text file with what works and what doesn't work and setup instructions, plus I included the original pdf documentation files, but just found out the API pdf file is corrupt.

Thanks!
« Last Edit: June 22, 2017, 05:56:47 PM by Tesla »

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Updating HamWeather Tropical Plugin
« Reply #12 on: June 22, 2017, 06:44:45 PM »
Hi,
if you could send me a link to the page where the error can be seen that would help a lot, I could at least check if the problem is in the PHP file or Javascript by looking at the browser console.

Offline Tesla

  • Member
  • *
  • Posts: 36
Re: Updating HamWeather Tropical Plugin
« Reply #13 on: June 22, 2017, 08:13:20 PM »
Thanks.  If I come across an error I'll post.  Right now there are no PHP errors, yet some of the functions of the tropical plugin aren't working.

 

anything