Author Topic: Stale MBtags.php  (Read 651 times)

0 Members and 1 Guest are viewing this topic.

Offline wcrowder

  • Member
  • *
  • Posts: 42
    • Crowderfarm
Stale MBtags.php
« on: October 01, 2016, 01:48:32 PM »
Ocasionally I have been getting:

Code: [Select]
Warning: include_once(/home/content/xx/7xxxx/html/crowderfarm/MBtags.php) [function.include-once]: failed to open stream: Stale file handle in /home/content/80/7511980/html/crowderfarm/menu.php on line 4
What can I do to mitigate this?

http://www.crowderfarm.com
Just playing around, work in progress. :)

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9288
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Stale MBtags.php
« Reply #1 on: October 01, 2016, 03:06:37 PM »
This may be caused by a slow FTP update of the MBtags.php file and a page load by your webserver at the same time.

You can mitigate this (I think) by changing your Meteobridge configration to upload to MBtags-new.php instead of to MBtags.php

The top.php in the template is set to watch for that file (MBtags-new.php) and if an update is found when the page is loaded, the MBtags-new.php will be copied to MBtags.php and the rest of the page load will complete as normal.

Give that a try...
Best regards,
Ken
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 wcrowder

  • Member
  • *
  • Posts: 42
    • Crowderfarm
Re: Stale MBtags.php
« Reply #2 on: October 01, 2016, 04:08:50 PM »
Thank you Mr. True.  I wasn't using top.php, I had to "customize" a lot to get it like I wanted. but I found the code and moved that into my menu.php "as is", changed MB to upload to MBtags-new.php and that seems to have fixed it. I'm just a "hobbyist", but I should have seen that when I was moving things around.

I live in the "Sticks", and my upload speed can be slow.
« Last Edit: October 01, 2016, 04:46:34 PM by wcrowder »
http://www.crowderfarm.com
Just playing around, work in progress. :)

 

anything