Page 1 of 1
Downgrade on Centos7
Posted: Wed Nov 09, 2022 10:20 am
by 50cc
Hi All, I made a stupid mistake upgrading to latest 1.36.31 from 1.36.28 (I believe, not sure of exact version). I'm still running it on a CentOS 7 machine which needs a replacement soon.
I still have PHP 5.4 (I know now..) and are getting errors like:
PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in /usr/share/zoneminder/www/includes/session.php on line 129
Quick work around for now till I have the new server up, can I downgrade Zoneminder on CentOS? Have been searching but without effect.
Or can I uninstall without loosing the DB, and reinstall a specific version of Zoneminder?
Re: Downgrade on Centos7
Posted: Wed Nov 09, 2022 4:04 pm
by jogo
Why not start with a fresh Fedora 36/37 box? Could be a lot easier than a manual downgrade.
Re: Downgrade on Centos7
Posted: Wed Nov 09, 2022 4:29 pm
by 50cc
Hi Jogo, That indeed is the plan, problem is no time the coming weeks, so a hot fix for now would be great
Re: Downgrade on Centos7
Posted: Wed Nov 09, 2022 8:04 pm
by jogo
That is the hotfix. Everything is straightforward. You may know the past, but in this case it is actually uncharted territory: hic sunt dracones.

, please try it. I'd be interested, if there are any problems.
Re: Downgrade on Centos7
Posted: Thu Nov 10, 2022 1:26 pm
by knight-of-ni
Hotfix is described here under "hacky workaround":
https://github.com/ZoneMinder/zoneminder/issues/3622
Be advised, zm 1.36.x is the last major release that will support centos 7.
When zm 1.38 is released (not eta yet), only centos 8 & 9 will be supported.
Just giving everyone plenty of time to plan accordingly.
Re: Downgrade on Centos7
Posted: Fri Nov 11, 2022 1:10 pm
by 50cc
Hi knight-of-ni, many thanks, I did indeed find the post on GitHub, but for some reason didn't read the text clearly (nor fully thought it through). I only edited the first occurrence in session.php, now did them all, and zoneminder is back up and running!
Many thanks for all help, although a bit hacky, but server is up and running! Hope to get some time soon to build a new one.
I will divert from CentOS, any suggestions?
Re: Downgrade on Centos7
Posted: Fri Nov 11, 2022 4:17 pm
by knight-of-ni
I use Rocky Linux 9 for production systems, including zoneminder.
Re: Downgrade on Centos7
Posted: Tue Nov 15, 2022 10:26 am
by sergmx
knight-of-ni wrote: ↑Thu Nov 10, 2022 1:26 pm
Hotfix is described here under "hacky workaround":
https://github.com/ZoneMinder/zoneminder/issues/3622
Be advised, zm 1.36.x is the last major release that will support centos 7.
When zm 1.38 is released (not eta yet), only centos 8 & 9 will be supported.
Just giving everyone plenty of time to plan accordingly.
Sorry, I've read the whole thread, but I still don't get it.
Should we wait for the next version 1.36 ?
Or do I need to update the php in CentOS 7x ?
Re: Downgrade on Centos7
Posted: Tue Nov 15, 2022 10:34 am
by 50cc
Sergmx, maybe you can update php, guess it would work. I tried this but broke an old php script also running on this server so had to downgrade back to php 5.4 for that script.
Re: Downgrade on Centos7
Posted: Thu Nov 17, 2022 10:32 pm
by iconnor
I expect to release 1.36.32 tomorrow (Friday). Centos 7 packages should build sometime after that.
Re: Downgrade on Centos7
Posted: Wed Nov 23, 2022 7:16 am
by sergmx
iconnor wrote: ↑Thu Nov 17, 2022 10:32 pm
I expect to release 1.36.32 tomorrow (Friday). Centos 7 packages should build sometime after that.
I just installed : zoneminder-1.36.32-1.el7.x86_64
Everything works fine. Thank you.
Re: Downgrade on Centos7
Posted: Sat Jan 21, 2023 9:30 am
by burtonalex
Downgrading Zoneminder on CentOS is possible, but it can be a bit tricky. The easiest way to do this would be to uninstall the current version of Zoneminder, and then reinstall the specific version you want to use. This process can be risky as you might lose your DB.
If you're concerned about losing your DB, you can try to backup your DB before uninstalling Zoneminder. Then you can restore the backup after installing the specific version you want.
If you don't feel comfortable doing this process on your own, I recommend reaching out to a professional to help you.
tuxcare.com is one such professional who can help you with this.