Author Topic: whos online script error  (Read 920 times)

0 Members and 1 Guest are viewing this topic.

Offline i_fiorentino

  • Forecaster
  • *****
  • Posts: 562
  • Davis Vantage Vue, Boltek Stormtr., Mobotix M22-IT
    • Meteopistoia.it
whos online script error
« on: March 03, 2018, 06:03:14 AM »
Hi guys,
i've installed whos online on my site here:http://www.meteopistoia.it/whos-online.php without any problem.
Recently,i've switched from php 5.4 to php 7 and, after that, i've this redundant error:

Code: [Select]
[03-Mar-2018 11:51:40 Europe/Rome] PHP Warning:  preg_match(): Unknown modifier 'h' in /home/dvjfcnae/public_html/whos-online/include-whos-online-header.php on line 87
This is line 57:
Code: [Select]
                  if (preg_match("/$k/i", $last_page_url)) {
I don't know where is that problem.
Any idea?

Thanks in advance.
Regards,


Alessandro

Offline Forever

  • Senior Contributor
  • ****
  • Posts: 209
Re: whos online script error
« Reply #1 on: March 03, 2018, 11:42:31 AM »
The script does not play well with the newer versions of PHP, I made some changes to the scrip that should help that can be found here. http://www.wxforum.net/index.php?topic=27367.msg265092#msg265092

Offline i_fiorentino

  • Forecaster
  • *****
  • Posts: 562
  • Davis Vantage Vue, Boltek Stormtr., Mobotix M22-IT
    • Meteopistoia.it
Re: whos online script error
« Reply #2 on: March 04, 2018, 05:22:51 AM »
The script does not play well with the newer versions of PHP, I made some changes to the scrip that should help that can be found here. http://www.wxforum.net/index.php?topic=27367.msg265092#msg265092

Thanks for reply  :grin:

Yes, i've already red this topic.... i've also written that whos online worked fine with php 7.
I've only this error but the script works as it should.
Regards,


Alessandro

 

anything