Upgrade from 7.11.7 to 7.11.8 and 7.11.10 fails with same symptoms

I tried some time ago to upgrade from 7.11.7 to 7.11.8. Everything was OK in check part, but actual upgrade failed with a blank page, and reload gave me site without CSS or something elese went wrong (simple text links, etc).
I decided to put that upgrade on hold, and tried today to upgrade with 7.11.10 package. Same symptoms.
I see this in apache logs:


[Sat Nov 16 08:06:38.663527 2019] [php7:notice] [pid 2416] [] PHP Notice:  Undefined index: sqlSkippedQueries in /mnt/3t/www/crm.mysite.it/www/modules/UpgradeWizard/commit.php on line 85, referer: https://crm.mysite.it/index.php
[Sat Nov 16 08:06:51.033632 2019] [php7:notice] [pid 2416] [] PHP Notice:  Undefined variable: suitecrm_version in /mnt/3t/www/crm.mysite.it/www/cache/upgrades/temp/HNnge0/scripts/pre_install.php on line 88, referer: https://crm.mysite.it/index.php
[Sat Nov 16 08:07:06.649908 2019] [php7:notice] [pid 2416] [] PHP Notice:  Undefined index: post_install in /mnt/3t/www/crm.mysite.it/www/modules/UpgradeWizard/uw_utils.php on line 3113, referer: https://crm.mysite.it/index.php
[Sat Nov 16 08:07:06.742655 2019] [php7:notice] [pid 2416] [] PHP Notice:  Undefined variable: path in /mnt/3t/www/crm.mysite.it/www/cache/upgrades/temp/HNnge0/scripts/post_install.php on line 210, referer: https://crm.mysite.it/index.php
[Sat Nov 16 08:07:06.774017 2019] [php7:notice] [pid 2416] [] PHP Notice:  Undefined variable: path in /mnt/3t/www/crm.mysite.it/www/cache/upgrades/temp/HNnge0/scripts/post_install.php on line 215, referer: https://crm.mysite.it/index.php
[Sat Nov 16 08:07:07.759132 2019] [php7:warn] [pid 2416] [] PHP Warning:  dir(/mnt/3t/www/crm.mysite.it/www/cache/upgrades/temp/HNnge0/scripts/files_to_add_post/themes/): failed to open dir: No such file or directory in /mnt/3t/www/crm.mysite.it/www/include/dir_inc.php on line 57, referer: https://crm.mysite.it/index.php
[Sat Nov 16 08:07:07.993724 2019] [php7:error] [pid 2416] [] PHP Fatal error:  Uncaught TypeError: Argument 1 passed to SugarController::showException() must be an instance of Exception, instance of Error given, called in /mnt/3t/www/crm.mysite.it/www/include/MVC/Controller/SugarController.php on line 390 and defined in /mnt/3t/www/crm.mysite.it/www/include/MVC/Controller/SugarController.php:384\nStack trace:\n#0 /mnt/3t/www/crm.mysite.it/www/include/MVC/Controller/SugarController.php(390): SugarController->showException(Object(Error))\n#1 /mnt/3t/www/crm.mysite.it/www/include/MVC/Controller/SugarController.php(401): SugarController->showException(Object(SuiteCRM\\StateSaverException))\n#2 /mnt/3t/www/crm.mysite.it/www/include/MVC/Controller/SugarController.php(380): SugarController->handleException(Object(SuiteCRM\\StateSaverException))\n#3 /mnt/3t/www/crm.mysite.it/www/include/MVC/SugarApplication.php(113): SugarController->execute()\n#4 /mnt/3t/www/crm.mysite.it/www/index.php(52): SugarApplication->execute()\n#5 {main}\n  thrown in /mnt/3t/www/crm.mysite.it/www/include/MVC/Controller/SugarController.php on line 384, referer: https://crm.mysite.it/index.php

Any ideas what to do?

If you have more than one unzipped copy of the package in “cache/upgrades/temp”, then delete everything in there and start again.

If that still doesn’t work, wait for the next package or see this issue:

https://github.com/salesagility/SuiteCRM/issues/8261

and this fix

https://github.com/salesagility/SuiteCRM/pull/8257

which is slightly difficult to apply manually because you’d have to put those changed files into the zipped package so that they apply when upgrading.

You can, of course, just wait for the next version, it will surely be there.