salbahra / Sprinklers-PHP

A mobile interface for the OpenSprinkler irrigation device written in PHP. This program is no longer developed and is superseded by the Javascript app: https://github.com/salbahra/Sprinklers.
http://albahra.com/
30 stars 13 forks source link

Program preview fails to load for current day #8

Closed momanz closed 11 years ago

momanz commented 11 years ago

The program preview for the current day will not load or takes a long time to load. This one seems to be intermittent. The loading indicator is visible and spinning. If I move forward to the next day or back to the previous day the program preview chart loads as expected. This behavior has been observed in both iOS, Firefox and IE10.

salbahra commented 11 years ago

I have never experienced this issue personally. Are there any factors which seam to make this happen such as slow/poor Internet connection? Or a specific browser? Or a combination of page changes that cause this?

I cant replicate this been trying all afternoon.

salbahra commented 11 years ago

Dug deep and pretty sure I found the issue. Super thanks for this because I had a huge bug where the AJAX was run twice per page. Which is probably the cause of all the graphical glitches I experienced earlier. With this fixed I might test transitions again! Closed by 32922dcddb8d7076ec91e07b30b9304f74cd54c2

momanz commented 11 years ago

Glad you found a bug, but I'm still having the same problem. I don't think it's a network connectivity issue because I can navigate to all other pages in the webapp. My ping between a pc and web server is <1ms. I see the same behavior on the following platforms.

IE10 and Firefox on Win8. Safari in iOS Chrome on Android

I think a big clue here is that I can view previous and future date program previews by either entering different dates or using the arrows, but what doesn't work is the program preview for the current day. This has been confirmed over at least 3 days now. In iOS I notice that the spinning circle icon in the iOS status bar (top of the screen, not the web app) spins for the same period of time if I query previous, current, or future date program previews. For future and past day program previews when the spinning circle icon in the iOS status bar stops spinning the preview graph is immediately displayed. For the current day the iOS status bar spinning icon stops but nothing is displayed (the spinning icon in the webapp just keeps on spinning).

Could it be that the code displaying the current time on the current day preview is somehow preventing the page from being displayed. As far as I can tell this is the only difference between the current day and previous day previews. Note that I am using the Lighttpd web server and perhaps there is something about the code that this server does not like. Also note that the preview did work well in one of the previous versions (not sure which one) The web server log does display the following error (not sure if it's related).

2013-07-11 19:07:56: (mod_fastcgi.c.2676) FastCGI-stderr: PHP Notice: Undefined offset: 3 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 4 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 5 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 6 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 7 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 3 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 4 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 5 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 6 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 7 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 3 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 4 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 5 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 6 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 7 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 3 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 4 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 5 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 6 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 7 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 3 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 4 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 5 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 6 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 7 in /opt/share/www/sprinklers/main.php on line 669

Let me know if there are any other specific trouble shooting items I could perform.

salbahra commented 11 years ago

Can you check for javascript errors in F12 Developer tools for IE or Firebug for Firefox? Anything could help but I will test those browsers specifically again and see what I can find.

Sent from my iPhone

On Jul 11, 2013, at 11:12 PM, momanz notifications@github.com wrote:

Glad you found a bug, but I'm still having the same problem. I don't think it's a network connectivity issue because I can navigate to all other pages in the webapp. My ping between a pc and web server is <1ms. I see the same behavior on the following platforms.

IE10 and Firefox on Win8. Safari in iOS Chrome on Android

I think a big clue here is that I can view previous and future date program previews by either entering different dates or using the arrows, but what doesn't work is the program preview for the current day. This has been confirmed over at least 3 days now. In iOS I notice that the spinning circle icon in the iOS status bar (top of the screen, not the web app) spins for the same period of time if I query previous, current, or future date program previews. For future and past day program previews when the spinning circle icon in the iOS status bar stops spinning the preview graph is immediately displayed. For the current day the iOS status bar spinning icon stops but nothing is displayed (the spinning icon in the webapp just keeps on spinning).

Could it be that the code displaying the current time on the current day preview is somehow preventing the page from being displayed. As far as I can tell this is the only difference between the current day and previous day previews. Note that I am using the Lighttpd web server and perhaps there is something about the code that this server does not like. Also note that the preview did work well in one of the previous versions (not sure which one) The web server log does display the following error (not sure if it's related).

2013-07-11 19:07:56: (mod_fastcgi.c.2676) FastCGI-stderr: PHP Notice: Undefined offset: 3 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 4 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 5 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 6 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 7 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 3 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 4 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 5 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 6 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 7 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 3 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 4 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 5 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 6 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 7 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 3 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 4 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 5 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 6 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 7 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 3 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 4 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 5 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 6 in /opt/share/www/sprinklers/main.php on line 669 PHP Notice: Undefined offset: 7 in /opt/share/www/sprinklers/main.php on line 669

Let me know if there are any other specific trouble shooting items I could perform.

— Reply to this email directly or view it on GitHubhttps://github.com/salbahra/OpenSprinkler-Controller/issues/8#issuecomment-20857539 .

momanz commented 11 years ago

Ok, Last night I spent quite a bit of time with the playing with browser logs and found nothing, granted I'm a bit new at this so I may have overlooked something. This morning I tried the preview and it worked, and it's been working every time I've checked today. I'm not sure what to make of this. Anyhow I'll keep an eye on it and let you know if it happens again. Thanks for the support.

salbahra commented 11 years ago

Okay, based on that just going to close this issue and if something brings it back up we can reopen and evaluate from there.