OpenSprinkler Forums OpenSprinkler Mobile and Web App Mobile Web App with Screenshots (Updated) Re: Re: Mobile Web App with Screenshots (Updated)

#24311

revnull
Participant

@salbahra wrote:

These errors are more significant and possibly related to variable scope. I will be pushing a fix very soon.


[Sat Nov 02 12:29:11 2013] [error] [client 10.10.100.239] PHP Notice: Undefined index: data in /srv/http/sprinklers/sprinklers.php on line 115, referer: https://10.10.100.3/sprinklers/
[Sat Nov 02 12:29:11 2013] [error] [client 10.10.100.239] PHP Notice: Undefined index: data in /srv/http/sprinklers/sprinklers.php on line 254, referer: https://10.10.100.3/sprinklers/
[Sat Nov 02 12:29:11 2013] [error] [client 10.10.100.239] PHP Notice: Undefined index: data in /srv/http/sprinklers/sprinklers.php on line 261, referer: https://10.10.100.3/sprinklers/
[Sat Nov 02 12:29:11 2013] [error] [client 10.10.100.239] PHP Notice: Undefined index: data in /srv/http/sprinklers/sprinklers.php on line 388, referer: https://10.10.100.3/sprinklers/

I pulled the new commit, but I’m still seeing the errors. I should note that I only see the errors when I refresh the page. Once it’s loaded and I navigate around, I see no new errors.

In my limited experience, it sounds like maybe the ‘data’ array is being queried before it’s populated? Should there be error reporting the in the interface when it fails a fetch from the controller?