I have been trying to upgrade from 7.13.x to 7.14.0 using the download on the upgrades page. When I do though the upgrade screen goes blank half way through the upgrade process, and I canāt work out why. I am on PHP 8.0 which the notes say is supported.
I posted a more detailed question a week back with no responses, so I thought Iād just check if anybody has managed to do this update at all?
All the upgrade paths are tested on e by one, and there are thousands of people using this software, so I guess itās safe to say that yes, somebody was able to upgrade.
In order to discover what can be wrong with your particular upgrade attempts, youāll need to provide more detailed information. This post might help:
Even though itās generic (not specific for upgrades) youāll find some applicable suggestions.
Sorry if that last post came across the wrong way, I meant to imply maybe others were just moving straight to v8 somehow without bothering to go to 7.14 first.
I am running this on PHP 8.0, MariaDB 10.6.15, and Apache 2.4.57 on Linux (not sure of exact version). The current SuiteCRM version is 7.13.4.
Iām guessing the problem here is that 7.13.x supports upto and including PHP 8.0, whereas 7.14.x only supports PHP 8.1 and above.
At some point the code will flip from requiring PHP 8.0 to 8.1 and then the upgrade barfs, I wonder if that was a late change to the release done after the upgrade testing for other changes.
I visited the forums today to find out exactly what was supported re upgrade paths, looks like this one certainly doesnāt work!
I am 99% sure that the upgrader code can handle PHP 7.4 even in the versions that say they require a higher PHP, precisely to facilitate navigating those conundrums.
Meaning that you can probably interpret the compatibility matrix with some leniency in what regards the upgrade process - though definitely you should be strict when talking about running the entire CRM. It simply will not work outside the matrix.
Since upgrades need to be tested in test deployments, or inside VMs or containers that you can snapshot (and go back if they break), this is a simple test to make: just run the upgrade with a lower PHP version, keep your eye on php_errors.log to see if anything is cause for concern, and after the SuiteCRM upgrade finishes, upgrade your PHP.
I was intrigued by this so decided to take a snapshot of my box and go for the upgrade, running PHP 8.0. Upgrade worked fine, then removed PHP8.0 and replaced with 8.1 (running in php-fpm mode), everything seems to be working fine.
Iāve since upgraded PHP to 8.2 and MariaDB to 10.11 and still everything is good.
I did wonder if the jump from 8 to 8.1 as a requirement might be it, Iāll maybe have a try at doing it that way too. Thanks @pgr and @markdissington for the suggestions.
Looking at the log file I seem to be getting the following error:
Call to undefined function exec() in /mypath/include/utils.php:597
when I look in there I believe its this line thatās triggering this:
$runningUser = exec(āwhoamiā);
Sorry if itās a silly question but what might cause this? My hosting company recently moved me onto a new faster server, and I have already checked and exec isnāt disabled.
I just wanted to post back on here as I managed to upgrade from 7.13.x to 7.14.1 finally. I saw another forum thread (sorry canāt remember which one) suggesting running the update with PHP 7.4, as the problem I encountered is only an issue with PHP 8+. I rolled back to PHP 7.4 and the update ran perfectly first time using the 7.14.1 Upgrade from 7.13.x dated 3rd October. I then moved back to PHP 8.0 once it was done.
Iām going to hold off on going to v8 for now, but at least 7.14.1 is a step forward.
To be honest I have only just run the upgrade and having logged in everything seems to be working fine at first glance. I must confess I had thought 8.0 was the minimum and will update to 8.1 now, so thanks for flagging that up. Iād guess they have put 8.1 as a minimum for a reason, so no point pushing my luck and finding a problem later.