I ran the emonPi update on May 15. And today I just created a new virtual feed. But I am getting LOTS of these errors (below). This happens when creating a new virtual feed and with existing virtual feeds.
Request error
Notice: Undefined variable: dbinputs in /var/www/emoncms/Modules/feed/engine/VirtualFeed.php on line 144
Notice: Undefined variable: nodeid in /var/www/emoncms/Modules/feed/engine/VirtualFeed.php on line 144
Notice: Undefined variable: name in /var/www/emoncms/Modules/feed/engine/VirtualFeed.php on line 144
Notice: Undefined variable: dbinputs in /var/www/emoncms/Modules/feed/engine/VirtualFeed.php on line 144
Notice: Undefined variable: nodeid in /var/www/emoncms/Modules/feed/engine/VirtualFeed.php on line 144
I tried with FireFox, Safari and Chrome and get the same error. This is with low-write 9.8.6 | 2017.05.10
EDIT: It looks like line 144 of VirtualFeed.php was updated ~10 weeks ago. I changed it back to the original line and all works as expected. I don’t understand the code update so I don’t want to make a change.
@Jon I can confirm looking at the code that there is no definition of $dbinputs there. I did not develop or use virtual feeds so Im not 100% sure about the fix but it looks like it needs to load the dbinputs with the following line:
If this is added as so on line 135 of VirtualFeed.php it might fix it:
// Lets instantiate a new class of process so we can run many proceses recursively without interference
global $session,$user;
require_once "Modules/process/process_model.php";
$process = new Process($this->mysqli,$this->input,$this->feed,$user->get_timezone($session['userid']));
$dbinputs = $this->input->get_inputs($session['userid']);
Hi guys, I have the same problem as described by John. I’m using virtual feeds for graphs. Before updating it was O.K. Now, no virtual feeds work… (Before update version 9.8.6., now 9.8.7)
@TrystanLea & @glyn.hudson - The fix for virtual feeds (and 9.8.8) doesn’t look like it made it to from master branch to stable branch. Was there an issue with 9.8.8?? Something I can help test?