PostProcess Issue after 11.7.4 update

Hi everyone, I came from 11.6.9 tag, now after 11.7.4 there is an issues as Postprocess’ link is not working anymore, it gives me this message:

Parse error: syntax error, unexpected ':', expecting ')' in /opt/emoncms/modules/postprocess/common.php on line 170

I’m running emonSD-21Jul21

Yeah, this has been happening for a little while, ref my post from earlier in the year: PHP error when opening Post Process in emoncms

I added an issue on the GitHub page as well: PHP error when opening Post Process module · Issue #36 · emoncms/postprocess · GitHub

I use postprocess everyday and this is the first time for me that I see that message. I’ve always kept the system up to date so it’s something related to latest built (at least for me). I hope they fix it soon as I need to access to that tab.

@TrystanLea ?

Thanks, this is unfortunately a php version issue, the new code is using syntax that is not compatible with pre v8 versions of php. While I was aware of this from inspecting the code a few months back I totally forgot about it with this merge to stable.

The fastest way to get back to a working version is probably to roll back to the previous version of the post process module, this can be done via SSH with the following:

cd /opt/emoncms/modules/postprocess
git checkout 2.4.7

Looks like I need to either add a PHP upgrade (and all associated PHP modules) to the update process or modify the code to provide backwards compatibility. I will work out what is best to do.

1 Like

I feel a major refactoring task is looming.

In which direction? php7.4 compatibility or php upgrade path? :sweat_smile:

1 Like

I’d suggest it needs to go for full compatibility with the latest stable versions. We’ve a fair few workarounds in the installation currently (IIRC). Moving to 64bit may throw up more.