emoncms3 error_log

after updating emoncsm3 on my server on 7/08 its creating each 6 seconds 7 entries to the error_log file:

[19-Aug-2012 20:36:06] PHP Warning:  Wrong parameter count for round() in /home/linuxste/public_html/datalog/Models/process_model.php on line 452
[19-Aug-2012 20:36:06] PHP Warning:  Wrong parameter count for round() in /home/linuxste/public_html/datalog/Models/process_model.php on line 452
[19-Aug-2012 20:36:06] PHP Warning:  Wrong parameter count for round() in /home/linuxste/public_html/datalog/Models/process_model.php on line 452
[19-Aug-2012 20:36:06] PHP Warning:  Wrong parameter count for round() in /home/linuxste/public_html/datalog/Models/process_model.php on line 452
[19-Aug-2012 20:36:06] PHP Warning:  Wrong parameter count for round() in /home/linuxste/public_html/datalog/Models/process_model.php on line 452
[19-Aug-2012 20:36:06] PHP Warning:  Wrong parameter count for round() in /home/linuxste/public_html/datalog/Models/process_model.php on line 452
[19-Aug-2012 20:36:06] PHP Warning:  Wrong parameter count for round() in /home/linuxste/public_html/datalog/Models/process_model.php on line 452
[19-Aug-2012 20:36:12] PHP Warning:  Wrong parameter count for round() in /home/linuxste/public_html/datalog/Models/process_model.php on line 452
[19-Aug-2012 20:36:12] PHP Warning:  Wrong parameter count for round() in /home/linuxste/public_html/datalog/Models/process_model.php on line 452
[19-Aug-2012 20:36:12] PHP Warning:  Wrong parameter count for round() in /home/linuxste/public_html/datalog/Models/process_model.php on line 452
[19-Aug-2012 20:36:12] PHP Warning:  Wrong parameter count for round() in /home/linuxste/public_html/datalog/Models/process_model.php on line 452
[19-Aug-2012 20:36:12] PHP Warning:  Wrong parameter count for round() in /home/linuxste/public_html/datalog/Models/process_model.php on line 452
[19-Aug-2012 20:36:12] PHP Warning:  Wrong parameter count for round() in /home/linuxste/public_html/datalog/Models/process_model.php on line 452
[19-Aug-2012 20:36:12] PHP Warning:  Wrong parameter count for round() in /home/linuxste/public_html/datalog/Models/process_model.php on line 452

now the log file was 178mb already, is there a option to set a max file size to the file error_log? i have shared webhosting and was running out of space.

 

TrystanLea's picture

Re: emoncms3 error_log

 Hmm, thats not good, I will look into it

mattwire's picture

Re: emoncms3 error_log

Hi Trystan,

Please take a look at https://github.com/openenergymonitor/emoncms3/pull/72 which resolves most of the PHP warnings present in the current code.

 

Matthew

TrystanLea's picture

Re: emoncms3 error_log

 Wow Matt, sorry Im not sure how I missed all your pull requests! will look at them now

Comment viewing options

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