Apps menu on emonPi broken, shows 'Notice: Undefined offset: 0'

All 4 menu items under 'Apps' on my emonPi are showing 'Notice: Undefined offset: 0 in /var/www/emoncms/Theme/menu_view.php on line 42' and linking to this url:

http://emonpi.local/emoncms/feed/%3Cbr%20/%3E%3Cb%3ENotice%3C/b%3E:%20%2...

 

I've got feeds for PV generation and power consumption working, and can use entries under 'Vis', but I believe the most attractive displays are under 'Apps', and I'd like to see them!

 

I've performed the emon software update at http://emonpi.local/emoncms/admin/view, so I should have the latest version. I notice these ominious lines in http://emonpi.local/emoncms/admin/getemonpiupdatelog :


git pull /var/www/emoncms/Modules/graph
* master
Already up-to-date.

git clone https://github.com/emoncms/graph
fatal: destination path 'graph' already exists and is not an empty directory.

Copy new default.emonpi.settings.php to settings.php & make backup old.emonpi.settings.php

 

I've attempted to rectify this problem by running 'sudo emonpi/factoryreset', but without any luck - (and had to set the wifi & feeds up again).

 

 

'emonPi - Solar PV' purchased 29th February 2016 from http://shop.openenergymonitor.com/

emoncms: vlow-write-v8.5

pi@emonpi ~ $ uname -a
Linux emonpi 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/Linux

 

braind's picture

Re: Apps menu on emonPi broken, shows 'Notice: Undefined offset: 0'

Following the summer time change I've had problems with no bargraph in the myelectric app on the emoncms site. I also updated my local emonpi exactly as the above poster has (with the same message about graph) and now have the apps menu showing undefined error exactly as the poster above describes. I'm using emoncms v8.5 lo write.

NeilW's picture

Re: Apps menu on emonPi broken, shows 'Notice: Undefined offset: 0'

The update script is broken. I've sent an email to Glyn pointing out the problem. Hopefully he'll be able to get it sorted. 

Not sure what is going on, but that bit is trying to create a postprocess directory and failing. 

NeilW's picture

Re: Apps menu on emonPi broken, shows 'Notice: Undefined offset: 0'

The Menu is broken because the Theme in use isn't designed to work with the new menu array structure. The low-write branch of emoncms has the wrong Theme.

glyn.hudson's picture

Re: Apps menu on emonPi broken, shows 'Notice: Undefined offset: 0'

Update script has been fixed, thanks for letting me know. I've notified Trystan about the Apps URL issue. 

https://github.com/openenergymonitor/emonpi/commit/903d9bb7a41f0a41f14c7...

AndyMc's picture

Re: Apps menu on emonPi broken, shows 'Notice: Undefined offset: 0'

I am experiencing the same issue and have updated the emoncmsupdate file with the new lines of code (74 thru 77). I then re-ran the Update emonpi from the Admin page of Emoncms. This did not restore the Apps.

The nodes and feeds appear to work correctly.

I am using low-write-V8.5.

Because of the time it takes to set up the nodes and feeds as well as the calibration of the CT's i am loath to start over with a fresh image.

rjsears's picture

Re: Apps menu on emonPi broken, shows 'Notice: Undefined offset: 0'

I am having the exact same problem. BRAND NEW emonpi and 5 x emonTX3, 4 x emonTH.

Followed update instructions, watched logs, got this error in logs:

git pull /home/pi/postprocess error: unknown option `set-upstream-to=origin/emonpi'

 

Now apps menu is broken (Notice:Undefined offset: 0) like the others. Don't want to spend hours setting this up just to have to redo it, how do I fix the errors?

 

Many Thanks

Westerner's picture

Re: Apps menu on emonPi broken, shows 'Notice: Undefined offset: 0'

Has anyone arrived at a solution for the lost Apps (undefined offset) problem?

TrystanLea's picture

Re: Apps menu on emonPi broken, shows 'Notice: Undefined offset: 0'

This bug is now fixed sorry for the delay. The fix is in the low-write branch of emoncms rather than the app module and can be updated by running the emonpi update.

Westerner's picture

Re: Apps menu on emonPi broken, shows 'Notice: Undefined offset: 0'

Many thanks, Trystan. Apps are back. In the update log file there is the following error message:

git pull /home/pi/postprocess

error: unknown option `set-upstream-to=origin/emonpi'

Is that of any concern?
 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.