That’s the best posÂsiÂble upgrade, becauÂse they are basiÂcalÂly comÂpaÂtiÂble. From nextÂcloud 12.x you can upgrade your way towards the newest version.
First I uploaÂded nextÂcloud 12.x and plaÂced the conÂfig file and the data folÂder from ownÂcloud in nextÂcloud as descriÂbed elsewere.
First Problem: PHP 7.2
With theÂse basic chanÂges finisÂhed, trouÂble shooÂting began: I got a mesÂsaÂge that php 7.2 does not work with NextÂcloud 12.x. To make this go away I had to uncomÂment (or deleÂte) code in two files:
“index.php”
// Show warning if PHP 7.2 is used as Nextcloud is not compatible with PHP 7.2 for now
// @see https://github.com/nextcloud/server/pull/5791
if (version_compare(PHP_VERSION, '7.2.0') !== -1) {
echo 'This version of Nextcloud is not compatible with PHP 7.2.<br/>';
echo 'You are currently running ' . PHP_VERSION . '.';
return;
}
and
“lib/versioncheck.php”
// Show warning if > PHP 7.1 is used as Nextcloud 12 is not compatible with > PHP 7.1
if (version_compare(PHP_VERSION, '7.2.0', '>=')) {
http_response_code(500);
echo 'This version of Nextcloud is not compatible with > PHP 7.2.<br/>';
echo 'You are currently running ' . PHP_VERSION . '.';
exit(-1);
}
This let me start the actuÂal upgrade process.
2. Problem: Missing Apps
The upgrade stalÂles due to missÂing apps, e.g. “calenÂder” and “contÂacts”. I copied them from the old ownÂcloud folÂder “apps” into the new nextÂcloud folÂder “apps” and the proÂcess continued.
The last warÂning on “workÂflowenÂgiÂne” howeÂver is a red herÂring, as explaiÂned here: https://​help​.next​cloud​.com/​t​/​u​p​g​r​a​d​e​-​f​r​o​m​-11 – 0‑3-to-12 – 0‑1-hangs-on-workflowengine/19167/27
“workÂflowenÂgiÂne” is just fine, the proÂblem is elseÂweÂre. Have a look into your error.log and let’s move on to the next point:
3. Problem: Cannot use result of built-in function in write context in cloud/3rdparty/pear/archive_tar/Archive/Tar.php on line 639
So what’s going on in line 639? GoogÂle spits out this soluÂtiÂon: https://www.dotkernel.com/php-troubleshooting/fix-installing-pear-packages-with-php‑7 – 2/
Okay, let’s replace in File “cloud/3rdparty/pear/archive_tar/Archive/Tar.php” on line 639
& func_get_args();
with
func_get_args();
That was easy, wasn’t it. Now the install rouÂtiÂne proceeds.