Page 1 of 1
Any Ideas here
Posted: Wed Jan 29, 2020 7:39 pm
by spd2612
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
Re: Any Ideas here
Posted: Fri Jan 31, 2020 12:59 am
by andyk1
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.
Re: Any Ideas here
Posted: Mon Feb 03, 2020 7:58 pm
by spd2612
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
Re: Any Ideas here
Posted: Mon Feb 03, 2020 8:16 pm
by andyk1
If you do a search here for the sticker plugin you should be able to find a tread talking about the setup process.
Andy
Re: Any Ideas here
Posted: Tue Feb 04, 2020 10:51 pm
by spd2612
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
Re: Any Ideas here
Posted: Wed Feb 05, 2020 10:54 pm
by spd2612
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.
Re: Any Ideas here
Posted: Fri Feb 07, 2020 1:50 am
by andyk1
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.
Re: Any Ideas here
Posted: Fri Sep 10, 2021 8:40 pm
by spd2612
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
Re: Any Ideas here
Posted: Fri Sep 10, 2021 11:39 pm
by Daali
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
Re: Any Ideas here
Posted: Sat Sep 11, 2021 5:37 pm
by spd2612
I dont understand this issue as everything else works fine on the site
Re: Any Ideas here
Posted: Sun Sep 12, 2021 2:28 am
by Daali
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.
Re: Any Ideas here
Posted: Sun Sep 12, 2021 6:59 am
by Jolumarali
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
Re: Any Ideas here
Posted: Sun Sep 12, 2021 1:43 pm
by spd2612
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.
Re: Any Ideas here
Posted: Sun Sep 12, 2021 3:39 pm
by davidefa
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 (103.82 KiB) Viewed 15872 times
Re: Any Ideas here
Posted: Sun Sep 12, 2021 4:52 pm
by spd2612
well GD all looks good

- gd.jpg (135.82 KiB) Viewed 15870 times
that does not look like a issue
Is ImageMagick required for it ?
Re: Any Ideas here
Posted: Sun Sep 12, 2021 6:32 pm
by spd2612
I also got ImageMagick running and set my php version to 7.4.2 But as you can see still dont work
Re: Any Ideas here
Posted: Mon Sep 13, 2021 1:14 pm
by davidefa
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 )
Re: Any Ideas here
Posted: Mon Sep 13, 2021 2:36 pm
by spd2612
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