Author Topic: Plaintext-parser  (Read 301 times)

0 Members and 1 Guest are viewing this topic.

Offline andy135

  • Member
  • *
  • Posts: 12
    • Chelmsford Weather Station
Plaintext-parser
« on: December 30, 2022, 03:25:03 PM »
Hi
I have just changed to a new PC (W11) running PHP7.4

My WXSIM forecasts via plaintext-parser are now showing the following errors - could someone suggest a workaround please?

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/14/d445262833/htdocs/public_html/plaintext-parser.php on line 866
WXSIM Forecast for:
Issued by: Chelmsford Weather Station
Updated:
 
Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/14/d445262833/htdocs/public_html/plaintext-parser.php on line 944

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/14/d445262833/htdocs/public_html/plaintext-parser.php on line 951

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/14/d445262833/htdocs/public_html/plaintext-parser.php on line 960

Warning: implode(): Invalid arguments passed in /homepages/14/d445262833/htdocs/public_html/plaintext-parser.php on line 981

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/14/d445262833/htdocs/public_html/plaintext-parser.php on line 997

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/14/d445262833/htdocs/public_html/plaintext-parser.php on line 1009
 


Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/14/d445262833/htdocs/public_html/plaintext-parser.php on line 1035
WXSIM forecast formatting script by Saratoga-Weather.org.


Thanks
Andy

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Plaintext-parser
« Reply #1 on: December 30, 2022, 04:29:33 PM »
I'd suggest updating the script from https://saratoga-weather.org/plaintext-parser.php?sce=view to the 'real' 1.31 version (which runs fine on PHP 7x and 8x).

Also, your plaintext.txt is really latest.csv, not plaintext.txt .. the plaintext-parser.php ONLY uses plaintext.txt (sample) for its data.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline andy135

  • Member
  • *
  • Posts: 12
    • Chelmsford Weather Station
Re: Plaintext-parser
« Reply #2 on: December 30, 2022, 05:02:20 PM »
Thank you. [tup]

My plaintext.txt somehow got corrupted when I changed over to the new PC!


Andy

 

anything