Author Topic: New Parse Error  (Read 437 times)

0 Members and 1 Guest are viewing this topic.

Offline mstan

  • Senior Member
  • **
  • Posts: 54
New Parse Error
« on: June 17, 2021, 07:33:29 AM »
Parse error: syntax error, unexpected end of file in /home/customer/www/newmiddletownweather.com/public_html/testtags.php on line 803

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1932
    • My PWS at Leuven Belgium Europe
Re: New Parse Error
« Reply #1 on: June 17, 2021, 07:43:39 AM »
Parse error: syntax error, unexpected end of file in /home/customer/www/newmiddletownweather.com/public_html/testtags.php on line 803
This occurs when the testtags.php is incompletely uploaded. Your testtags.php normally has 1020 lines.

It works Ok now https://newmiddletownweather.com/

Wim
« Last Edit: June 17, 2021, 07:45:49 AM by wvdkuil »

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 893
    • LexMAWeather
Re: New Parse Error
« Reply #2 on: June 17, 2021, 11:59:09 AM »
I finally got tired of this one a while ago and implemented a change (with my Meteobridge setup) that is essentially:

1) Change the upload file name to {tagfilename}-new.php.

2) Implemented code (in top.php and my METAR cron job) that looks for a '-new' file newer than the current tags file and of reasonable size. If so, copy the new version to the tags file.

I haven't seen the issue since.

 

anything