EDITED:
Turns out my host was lying to me, the server was actually running PHP 5.x. Their cPanel was showing that I was running 7.4. Iāve upgraded the server to run 7.4 and verified it. I got past the error I listed below.
END EDIT
Iām on a hosted server, running PHP 7.4, trying to upgrade NextCloud and Iām getting an error. There isnāt much information but here is what I have:
Current version is 21.0.7.
Update to Nextcloud 22.2.3 available. (channel: āstableā)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-22.2.3.zip
Open changelog
<br />
<b>Parse error</b>: syntax error, unexpected '?' in <b>/home2/bunyip/my.ibunyip.com/updater/index.php</b> on line <b>180</b><br />```
here's the relevant PHP code in index.php, lines 176-184:
/** @var array $CONFIG */
require_once $configFileName;
$this->configValues = $CONFIG;
if (php_sapi_name() !== 'cli' && ($this->configValues['upgrade.disable-web'] ?? false)) {
// updater disabled
$this->disabled = true;
return;
}
I have looked at the Installation manual, the server requirements state that I can run PHP 7.3, 7.4 or 8.0. I'm running 7.4 I just checked with my host, they don't (yet) support PHP 8.0, so I can't upgrade to 8.
Anyone have any suggestions?