Any Ideas here

Post Reply
spd2612
Forecaster
Forecaster
Posts: 192
Joined: Thu Jan 23, 2020 4:00 pm
Location: Jonesboro Ar
Station model: Davis Pro 2
Software: Meteobridge Pro 2
Contact:

Any Ideas here

Post by spd2612 » Wed Jan 29, 2020 7:39 pm

Initially I had issues getting Meteotemplate to update from WU, stayed offline. I am on a virtual server 2016 windows os system, 12 cores 16gb ram IIS 10(Servers are in house) I have three versions of PHP on that server all with the same extensions, 7.1.19, 7.0.30 64 bit and 5.3.28 32 bit
I changed that site to 7.1.19 and Meteotemplate runs fine. I decided to install StickersWU and the sticker would come up but with no data see my signature. I changed back to 7.0.30 and the sticker works as designed but Meteotemplate wont update again. I tried 5.3.28 32 bit but Meteotemplate wont even load.

Any Ideas

Ok I also registered PHP 7.2.7 and stickers dont have any data
Image

Davis Pro 2
Meteobridge Pro2

GW 2000
WH57 Lightning Detector

andyk1
Professional
Professional
Posts: 433
Joined: Tue Feb 27, 2018 10:56 pm
Location: OKLAHOMA, USA
Station model: Ecowitt WS90
Software: Meteobridge/GW2000B
Contact:

Re: Any Ideas here

Post by andyk1 » Fri Jan 31, 2020 12:59 am

Looks like the paths or parts of sticker setup is missing.

Mine looks like:

Code: Select all

[url=https://www.nicomaparkwx.com][img]https://www.nicomaparkwx.com/wx/plugins/stickers/stickerInteractiveAnim.php?text=Nicoma%20Park,%20Oklahoma&bgColor=212121&type=random[/img][/url]
only change the paths, location, and color. It should work for you.
Image

spd2612
Forecaster
Forecaster
Posts: 192
Joined: Thu Jan 23, 2020 4:00 pm
Location: Jonesboro Ar
Station model: Davis Pro 2
Software: Meteobridge Pro 2
Contact:

Re: Any Ideas here

Post by spd2612 » Mon Feb 03, 2020 7:58 pm

andyk1 wrote: Fri Jan 31, 2020 12:59 am Looks like the paths or parts of sticker setup is missing.

Mine looks like:

Code: Select all

[url=https://www.nicomaparkwx.com][img]https://www.nicomaparkwx.com/wx/plugins/stickers/stickerInteractiveAnim.php?text=Nicoma%20Park,%20Oklahoma&bgColor=212121&type=random[/img][/url]
only change the paths, location, and color. It should work for you.
Well I tried every thing else and thank you for the reply but still don't work
Image

Davis Pro 2
Meteobridge Pro2

GW 2000
WH57 Lightning Detector

andyk1
Professional
Professional
Posts: 433
Joined: Tue Feb 27, 2018 10:56 pm
Location: OKLAHOMA, USA
Station model: Ecowitt WS90
Software: Meteobridge/GW2000B
Contact:

Re: Any Ideas here

Post by andyk1 » Mon Feb 03, 2020 8:16 pm

If you do a search here for the sticker plugin you should be able to find a tread talking about the setup process.

Andy
Image

spd2612
Forecaster
Forecaster
Posts: 192
Joined: Thu Jan 23, 2020 4:00 pm
Location: Jonesboro Ar
Station model: Davis Pro 2
Software: Meteobridge Pro 2
Contact:

Re: Any Ideas here

Post by spd2612 » Tue Feb 04, 2020 10:51 pm

Well I have worked on this for days I can create a test.php file using
###imagestring($im, 1, 5, 5, 'A Simple Text String', $text_color);###
and it works. its able to print text from the stickers folder to a web page.
You can see in my signature that it does display image and icons, so php/GD is doing its job there.
My only conclusion is it is not getting the data from the DB
I have checked error logs and nothing
also GD has all the necessary ad-dons unless there is one I am not seeing.
PHP Ver. 7.1.19

GD Version | bundled (2.1.0 compatible)
FreeType Support | 1
FreeType Linkage | with freetype
GIF Read Support | 1
GIF Create Support | 1
JPEG Support | 1
PNG Support | 1
WBMP Support | 1
XPM Support | 1
XBM Support | 1
WebP Support | 1
JIS-mapped Japanese Font Support |
array(12) { ["GD Version"]=> string(26) "bundled (2.1.0 compatible)" ["FreeType Support"]=> bool(true) ["FreeType Linkage"]=> string(13) "with freetype" ["GIF Read Support"]=> bool(true) ["GIF Create Support"]=> bool(true) ["JPEG Support"]=> bool(true) ["PNG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XPM Support"]=> bool(true) ["XBM Support"]=> bool(true) ["WebP Support"]=> bool(true) ["JIS-mapped Japanese Font Support"]=> bool(false) }

Actually now that I look at the signature which has text in the link and its not printing that either
Image

Davis Pro 2
Meteobridge Pro2

GW 2000
WH57 Lightning Detector

spd2612
Forecaster
Forecaster
Posts: 192
Joined: Thu Jan 23, 2020 4:00 pm
Location: Jonesboro Ar
Station model: Davis Pro 2
Software: Meteobridge Pro 2
Contact:

Re: Any Ideas here

Post by spd2612 » Wed Feb 05, 2020 10:54 pm

Just wanted to let you know I finally got it working.
I had a manual install PHP 7 on this server and added the other versions with “IIS Web PI “
I tried all versions with no luck. I was running that PHP 7 on 8 different sites on this server and there was no problems, however it would not work with Meteotemplate. It did work with stickers
I got desperate and unregistered that 7.0 and reinstalled it with WEB PI
Cant say what the problem was in any version as I have 4 versions of PHP on this server and all sites work well with them just not Meteotemplate.
Stickers and Meteotemplate are all working now.
Image

Davis Pro 2
Meteobridge Pro2

GW 2000
WH57 Lightning Detector

andyk1
Professional
Professional
Posts: 433
Joined: Tue Feb 27, 2018 10:56 pm
Location: OKLAHOMA, USA
Station model: Ecowitt WS90
Software: Meteobridge/GW2000B
Contact:

Re: Any Ideas here

Post by andyk1 » Fri Feb 07, 2020 1:50 am

I haven't read through all the replies but want to say I have read reports that MT is not fully compatible with the newest PHP version. Haven't heard from Jachym but am sure he is aware.
Image

spd2612
Forecaster
Forecaster
Posts: 192
Joined: Thu Jan 23, 2020 4:00 pm
Location: Jonesboro Ar
Station model: Davis Pro 2
Software: Meteobridge Pro 2
Contact:

Re: Any Ideas here

Post by spd2612 » Fri Sep 10, 2021 8:40 pm

well I upgraded my PHP to 8.0.3 and stickers quit working
Guess I will have to wait for a new version of stickers
Image

Davis Pro 2
Meteobridge Pro2

GW 2000
WH57 Lightning Detector

User avatar
Daali
Advisor
Advisor
Posts: 56
Joined: Mon Jul 26, 2021 8:06 pm
Location: Georgia, US
Station model: Ecowitt GW1002
Software: Meteobridge, FOSHKplugin
Contact:

Re: Any Ideas here

Post by Daali » Fri Sep 10, 2021 11:39 pm

spd2612 wrote: Fri Sep 10, 2021 8:40 pm well I upgraded my PHP to 8.0.3 and stickers quit working
Guess I will have to wait for a new version of stickers
daali wrote:ok. I've looked at stickers in 8.05 and everything functions that I can test. I had to crop out the SQL data pulls, so it is not showing history.
I've edited this post. Above was my original thought, but my dev server was still on php 7.3. It seems the largest issue with stickerInteractiveAnim.php is below:

Code: Select all

Array and string offset access syntax with curly braces is no longer supported
I'm still struggling to get my dev server to even display anything but a whitescreen on the meteotemplate index pages, so it's slow going.

I'd roll back to 7.x
https://www.jeffersonweather.com
GW1000 gateway
WS68 Anemometer
WH40 Rain Gauge
WH32 Temp/Hum
WH57 Lightning
WH41 PM2.5 Air Quality
WH45 PM2.5/10/Co2 Air Quality
WN34S Soil temperature
WH31SM Soil Moisture

spd2612
Forecaster
Forecaster
Posts: 192
Joined: Thu Jan 23, 2020 4:00 pm
Location: Jonesboro Ar
Station model: Davis Pro 2
Software: Meteobridge Pro 2
Contact:

Re: Any Ideas here

Post by spd2612 » Sat Sep 11, 2021 5:37 pm

I dont understand this issue as everything else works fine on the site
Image

Davis Pro 2
Meteobridge Pro2

GW 2000
WH57 Lightning Detector

User avatar
Daali
Advisor
Advisor
Posts: 56
Joined: Mon Jul 26, 2021 8:06 pm
Location: Georgia, US
Station model: Ecowitt GW1002
Software: Meteobridge, FOSHKplugin
Contact:

Re: Any Ideas here

Post by Daali » Sun Sep 12, 2021 2:28 am

spd2612 wrote: Sat Sep 11, 2021 5:37 pm I dont understand this issue as everything else works fine on the site
I gave up on my dev server upgrading to php v8.x. every time I upgraded to phpv8, some crazy crap started happening with apache and/or mysql/phpadmin, where mysqli would not load. I cannot debug anything =(

All the compatibility checkers show various things that may be issues, may not be. Default changes(true/false) in string comparisons and some syntax changes in arrays seem to be the most flagged.
https://www.jeffersonweather.com
GW1000 gateway
WS68 Anemometer
WH40 Rain Gauge
WH32 Temp/Hum
WH57 Lightning
WH41 PM2.5 Air Quality
WH45 PM2.5/10/Co2 Air Quality
WN34S Soil temperature
WH31SM Soil Moisture

User avatar
Jolumarali
Professional
Professional
Posts: 252
Joined: Sun Aug 20, 2017 2:06 pm
Location: Lignerolles
Station model: Vantage Vue
Software: WlIP
Contact:

Re: Any Ideas here

Post by Jolumarali » Sun Sep 12, 2021 6:59 am

Forum
My guess is that I will try to make the newly prepared template compatible with PHP 8.0, but not the current one. Also, there is not that much new in PHP 8.0, it is slightly faster, but really only slightly. The huge speed step is between 5 and 7 (6 does not exist). Latest supported version by MT is PHP 7.4.

viewtopic.php?t=2037
Image
Station météo amateur Lignerolles
OS : Windows 11 Famille
Vantage Vue
Weatherlink 2.0 (WlIP)
Meteotemplate 18.0 Papaya

https://meteo-lignerolles.fr

José Luis

spd2612
Forecaster
Forecaster
Posts: 192
Joined: Thu Jan 23, 2020 4:00 pm
Location: Jonesboro Ar
Station model: Davis Pro 2
Software: Meteobridge Pro 2
Contact:

Re: Any Ideas here

Post by spd2612 » Sun Sep 12, 2021 1:43 pm

Well I went back to PHP 7.1.19
Still the stickers dont work
The entire site seems to be working fine
I verified the version in IIS and in Meteotemplate CP

PHP version
You are using PHP version 7.1.19, which is OK.


CURL extension
CURL extension is enabled on your server.


url_fopen
The url_fopen is enabled on your server.
Image

Davis Pro 2
Meteobridge Pro2

GW 2000
WH57 Lightning Detector

davidefa
Expert
Expert
Posts: 905
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Any Ideas here

Post by davidefa » Sun Sep 12, 2021 3:39 pm

I think you could have problems with true type support in php ( as nothing is written, even static text ).
Check it in php info in the gd section:

font.png
font.png (103.82 KiB) Viewed 15855 times
Image

spd2612
Forecaster
Forecaster
Posts: 192
Joined: Thu Jan 23, 2020 4:00 pm
Location: Jonesboro Ar
Station model: Davis Pro 2
Software: Meteobridge Pro 2
Contact:

Re: Any Ideas here

Post by spd2612 » Sun Sep 12, 2021 4:52 pm

well GD all looks good
gd.jpg
gd.jpg (135.82 KiB) Viewed 15853 times
that does not look like a issue
Is ImageMagick required for it ?
Image

Davis Pro 2
Meteobridge Pro2

GW 2000
WH57 Lightning Detector

spd2612
Forecaster
Forecaster
Posts: 192
Joined: Thu Jan 23, 2020 4:00 pm
Location: Jonesboro Ar
Station model: Davis Pro 2
Software: Meteobridge Pro 2
Contact:

Re: Any Ideas here

Post by spd2612 » Sun Sep 12, 2021 6:32 pm

I also got ImageMagick running and set my php version to 7.4.2 But as you can see still dont work
Image

Davis Pro 2
Meteobridge Pro2

GW 2000
WH57 Lightning Detector

davidefa
Expert
Expert
Posts: 905
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Any Ideas here

Post by davidefa » Mon Sep 13, 2021 1:14 pm

I think there is problem with IIS and the fonts.
This is what I found searching for 'php iis imagettftext':
https://tng.community/index.php?/forums ... -php-7126/
https://github.com/e107inc/e107/issues/ ... -355813801
https://forums.iis.net/t/1200939.aspx?i ... +find+font

The quick workaround solution proposed is to use realpath() around the font file name in imagettftext()

Attached the modified stickerInteractive.php script.
You can also check the php error log or you can also try with different font names ( not sure if it can access system fonts )
Attachments
stickerInteractive.zip
(4.79 KiB) Downloaded 664 times
Image

spd2612
Forecaster
Forecaster
Posts: 192
Joined: Thu Jan 23, 2020 4:00 pm
Location: Jonesboro Ar
Station model: Davis Pro 2
Software: Meteobridge Pro 2
Contact:

Re: Any Ideas here

Post by spd2612 » Mon Sep 13, 2021 2:36 pm

Well I tried there is no errors for Hurricanepub.com in my PHP 7.4.2 error log
And the realpath did not work It used to work not sure whats going on
Image

Davis Pro 2
Meteobridge Pro2

GW 2000
WH57 Lightning Detector

Post Reply