cloudy cloudy

Author Topic: Nordic Weather 3 in 1 script error since yesterday  (Read 449 times)

0 Members and 1 Guest are viewing this topic.

Offline ardsar

  • Posts: 127
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
    • Plymouth, Devon Weather, including Lightning
Nordic Weather 3 in 1 script error since yesterday
« on: June 10, 2017, 10:14:30 AM »
I assume that the PHP version has been updated on my host, as 2 of the weather scripts I use have stopped working.

The first one is the 3 in 1 produced by Nordic Weather.

The page can be found here http://bearsbythesea.co.uk/wxsimforecast2.php

I noticed that the description and notes column had stopped being populated, and a large error log is on the server.

The initial error was [10-Jun-2017 11:07:28 Europe/London] PHP Warning:  preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/bears498/public_html/wxsim_wxall/wxall.plaintext.php on line 481

I changed preg_replace to preg_replace_callback which appeared to resolve the missing column field, however I now have the following error

[10-Jun-2017 11:05:33 Europe/London] PHP Warning:  preg_replace_callback(): Requires argument 2, ''.  ' . strtoupper('\1')', to be a valid callback in /home/bears498/public_html/wxsim_wxall/wxall.plaintext.php on line 481

Any ideas guys?

Thanks.

Andy.
Plymouth Weather UK, including Lightning data

www.bearsbythesea.co.uk

 

cumulus