Forum Replies Created
-
AuthorPosts
-
revnullParticipant@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?
revnullParticipantOk, this is odd… upgraded apache from 2.2.24-3 to 2.2.25-1, rebooted, everything still worked. I’m thinking, I solved it, it must be PHP that breaks compatibility. Just to confirm the theory, I upgrade PHP from 5.4.17-1 to 5.5.5-1, rebooted, it still works. WTH!?
Oh well, next time I have an issue, I’ll just nuke and start over, that seems to have “fixed” my problems.
Even though the web frontend works now, I’m still getting these errors in the apache error_log.
[Fri Nov 01 17:57:35 2013] [error] [client 10.10.100.239] PHP Notice: Undefined variable: data in /srv/http/sprinklers/sprinklers.php on line 115, referer: https://10.10.100.3/sprinklers/
[Fri Nov 01 17:57:35 2013] [error] [client 10.10.100.239] PHP Notice: Undefined variable: data in /srv/http/sprinklers/sprinklers.php on line 254, referer: https://10.10.100.3/sprinklers/
[Fri Nov 01 17:57:35 2013] [error] [client 10.10.100.239] PHP Notice: Undefined variable: data in /srv/http/sprinklers/sprinklers.php on line 261, referer: https://10.10.100.3/sprinklers/
[Fri Nov 01 17:57:35 2013] [error] [client 10.10.100.239] PHP Notice: Undefined variable: data in /srv/http/sprinklers/sprinklers.php on line 388, referer: https://10.10.100.3/sprinklers/
Mods: please feel free to delete my posts if you don’t believe they add to the thread.
revnullParticipantRolled ‘Broken Setup’ back to:
apache 2.2.24-3
php 5.4.17-1
php-apache 5.4.17-1I will upgrade one component at a time to see what breaks compatibility.
Results to follow.
revnullParticipantErrors from the apache error_log:
[Fri Nov 01 15:24:44 2013] [error] [client 10.10.100.239] PHP Notice: Undefined variable: data in /srv/http/sprinklers/sprinklers.php on line 115, referer: https://10.10.100.3/sprinklers/
[Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined variable: data in /srv/http/sprinklers/sprinklers.php on line 254, referer: https://10.10.100.3/sprinklers/
[Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined variable: data in /srv/http/sprinklers/sprinklers.php on line 261, referer: https://10.10.100.3/sprinklers/
[Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined variable: data in /srv/http/sprinklers/sprinklers.php on line 388, referer: https://10.10.100.3/sprinklers/
[Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined offset: 1 in /srv/http/sprinklers/main.php on line 98, referer: https://10.10.100.3/sprinklers/
[Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined offset: 3 in /srv/http/sprinklers/main.php on line 102, referer: https://10.10.100.3/sprinklers/
[Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined offset: 1 in /srv/http/sprinklers/main.php on line 104, referer: https://10.10.100.3/sprinklers/
[Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined offset: 2 in /srv/http/sprinklers/main.php on line 104, referer: https://10.10.100.3/sprinklers/
[Fri Nov 01 15:24:45 2013] [error] [client 10.10.100.239] PHP Notice: Undefined offset: 4 in /srv/http/sprinklers/main.php on line 104, referer: https://10.10.100.3/sprinklers/
revnullParticipantOk, I ran an experiment. I installed my dusty RaspberryPi with a fresh version of Raspbian. Then installed apache2, libapache2-mod-php5, and php5. Cloned the latest version of your web frontend, and bingo… it works!
Now I’m trying to figure out the differences as to why one works and the other does not.
Working Setup:
Hardware: RaspberryPi Model B (With Ethernet)
OS: Raspbian (2013-09-25) with all current updates and kernel/firmware
Software:
os-frontend commit 2c8c7e2e3ef21e8b78b7c2f678b719eabd725a61
apache2 2.2.22-13
libapache2-mod-php5 5.4.4-14+deb7u5
php5 5.4.4-14+deb7u5
git 1.7.10.4-1+wheezy1+rpi2Broken Setup:
Hardware: Pogoplug v2
OS: Archlinux 3.1.10-28-ARCH
Software:
os-frontend commit 2c8c7e2e3ef21e8b78b7c2f678b719eabd725a61
apache2 2.2.25-1
libapache2-mod-php5 5.5.5-1
php5 5.5.5-1
git 1.8.4.2-1The only obvious outliers are the newer version of apache and PHP. When I first installed Archlinux, the versions were:
apache2 2.2.24-3
libapache2-mod-php5 5.4.16-1
php5 5.4.16-1The jump in apache versions is minor and shouldn’t impact functionality. The upgrade to PHP and the Apache PHP library from 5.4 to 5.5 may be an issue.
Is it possible to look into PHP 5.5 compatibility? Are there any logs from apache that may point to a possible compatibility issue?
In the mean time, I will try downgrading PHP and the Apache lib to 5.4 to see if that “fixes” things.
revnullParticipantThanks for looking into it!
/:
/vs:
/vo:
/vp:
/gp?d=0:
revnullParticipantHardware: 1.2U DIY
Firmware: 1.8.3
Network: OS Controller and Web server on the same LAN/SubnetIn the past few weeks, I’ve encountered a “new” (for me) problem. I’ve been running OS for a while now, first hosting Ray’s scripts/images on my own internal web server (ArchLinux). When you released your great frontend, I quickly installed all required components and got it up and running. In fact it ran great for months. To keep up with your frequent releases I had scheduled a ‘git pull’ via cron twice a day. It would seem that this level of automation has bitten me. I’m not sure when, but a some point, an upgrade seems to have broken compatibility with my opensprinkler. The frontend can still access the device settings and station names, but everything else just generates a spinning circle and hangs. The weather “widget” is also missing. It seems to me to be a communication issue between the fronted and the controller.
Things I have tried:
– Clearing browser cache/trying different browser & mobile devices
– Re-installing the OS firmware and re-configuring from scratch (via native web frontend)
– Deleting and re-cloning the git repo
– Using the frontend version hosted on Ray’s site (WORKS!)I may just work my way back through you commits until I find a version that works again.
In any case, thanks for your contribution to this great opensource project.
-
AuthorPosts