Error from PostProcess_model.php?

I update my EmonCMS instance from Github last week sometime, it worked fine and everything is up to date.
I just wanted to do something in the Postprocessing module and now get this -

Parse error : syntax error, unexpected ‘=>’ (T_DOUBLE_ARROW), expecting ‘)’ in /opt/emoncms/modules/postprocess/postprocess-module/postprocess_model.php on line 222

Is it just me? Or has a bug crept in?

I’m surprised no one else has seen this error.
I wonder is @glyn.hudson or @TrystanLea could have a look please?

This is a known issue with PHP 7

It will work if you update to PHP 8

I’ve fixed this one now, changed the line for php7 compatibility. Update in the latest master branch

1 Like