Bug? "Allow Positive" breaks feed on v8.4.0, bufferedwrite:0.0.2

If I add "Allow Positive" to the pi version of EmonCMS it stops all feeds from updating, however the very same thing does work on EmonCMS.org.

Once "Allow Positive" has been added to the pi version the only thing that works is to delete the whole input and start from scratch. Clicking on the edit button doesn't do anything,

I'll happily workaround this by not using it but thought I'd better report it

northwarks's picture

Re: Bug? "Allow Positive" breaks feed on v8.4.0, bufferedwrite:0.0.2

Hey  - Same here, only way to recover is to remove the feed as the 'spanner' icon stops working and my logs are filled with :

 

[Tue May 19 19:05:35 2015] [error] [client 127.0.0.1] PHP Notice:  Undefined offset: 0 in /var/www/emoncms/Modules/input/process_model.php on line 98

[Tue May 19 19:05:35 2015] [error] [client 127.0.0.1] PHP Fatal error:  Method name must be a string in /var/www/emoncms/Modules/input/process_model.php on line 100

 

rbreuss's picture

Re: Bug? "Allow Positive" breaks feed on v8.4.0, bufferedwrite:0.0.2

And solution? I have EXACTLY the same problem with MAX and MIN value with v8.5 running on VPS with Debian,. Something is wrong. Looking for solution, asking here for help, but no reaction.

GregGarner's picture

Re: Bug? "Allow Positive" breaks feed on v8.4.0, bufferedwrite:0.0.2

I see the same problem when trying to select "allow positive". The Input list shows "NaN" (Not a Number) instead of the expected ">0" when selecting "alllow positive".  It works on EmonCMS.org, but not on the local copy. 

On a related note, once the bug that is causing this problem is fixed, how do I update the code on the PI that is causing this problem?

GregGarner 

pb66's picture

Re: Bug? "Allow Positive" breaks feed on v8.4.0, bufferedwrite:0.0.2

Hi Greg - the how will depend very much on the what and where once the why is figured out :-) 

The absence of the "> 0" may narrow the search. The section of code that defined that "button" on the inputs page seems to have been removed in v8.5 and extended.

It is still in master(v8.4) and low-write-v8.5 but I cannot find a release tag or branch to check v8.4.0, bufferedwrite:0.0.2.

Do you have these lines

https://github.com/emoncms/emoncms/blob/master/Modules/input/Views/processlist.js#L401-L404

​in /var/www/emoncms/Modules/input/Views/processlist.js ?

Paul

EDIT - I noticed several other omittions in that list so delved a little deeper and found another list elsewhere in the code so now I'm not sure which is used and whether both lists are used/needed so it may or may not be relevant. this second list seems more complete and more consistent across the branches so I'm inclined to think both are being used and the recent removal has only broken one or two processes maybe??? 

Comment viewing options

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