Upgrading from 7.9 to 7.10 Blank Upgrade Wizard during final stage

While I am upgrading from 7.9 to 7.10 I am able to reach step 3 Preflight check - results are All preflight test pave passed. When I click on Next button I get the “file copying” indicator and then the page in the body goes blank. - no content

I am able to access all other parts of the website, but when I go back to Upgrade Wizard, the body area is blank

Please advise what to do

Thanks,

Kirill

Check for FATAL errors in your logs at the time your upgrade fails

suitecrm.log
php_errors.log
upgradeWizard.log

upgradeWizard log

Wed, 11 Apr 2018 21:39:06 +0000 [UpgradeWizard] - setting session variables…
Wed, 11 Apr 2018 21:39:06 +0000 [UpgradeWizard] - [At commit.php]
Wed, 11 Apr 2018 21:39:06 +0000 [UpgradeWizard] - Setting error_reporting() to E_ERROR while running upgrade

Here are some more log output:

Error log

[12-Apr-2018 00:20:02 UTC] PHP Strict Standards: Declaration of ListViewPackages::setup() should be compatible with ListViewDisplay::setup($seed, $file, $where, $params = Array, $offset = 0, $limit = -1, $filter_fields = Array, $id_field = ‘id’, $id = NULL) in /home/wafracrm/dev/ModuleInstall/PackageManager/ListViewPackages.php on line 42
[12-Apr-2018 00:22:42 UTC] PHP Fatal error: Call to undefined method EmailAddress::getSendConfirmOptInEmailActionLinkDefs() in /home/wafracrm/dev/cache/upgrades/temp/FY6vE8/SuiteCRM-Upgrade-7.9.x-to-7.10.4/modules/Contacts/metadata/detailviewdefs.php on line 51

Last of upgradeWizard.log

Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Backing up file: /home/wafracrm/dev/README.md
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Backing up file: /home/wafracrm/dev/ModuleInstall/PackageManager/tpls/ModuleLoaderListView.tpl
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Backing up file: /home/wafracrm/dev/ModuleInstall/PackageManager/metadata/listviewdefs.php
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Backing up file: /home/wafracrm/dev/ModuleInstall/PackageManager/PackageManagerDownloader.php
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Backing up file: /home/wafracrm/dev/ModuleInstall/PackageManager/PackageManagerDisplay.php
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Backing up file: /home/wafracrm/dev/ModuleInstall/PackageManager/PackageManagerComm.php
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Backing up file: /home/wafracrm/dev/ModuleInstall/PackageManager/PackageManager.php
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Backing up file: /home/wafracrm/dev/ModuleInstall/PackageManager/PackageController.php
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Backing up file: /home/wafracrm/dev/ModuleInstall/PackageManager/ListViewPackages.php
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Backing up file: /home/wafracrm/dev/ModuleInstall/ModuleScanner.php
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Backing up file: /home/wafracrm/dev/HandleAjaxCall.php
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - file backup done.
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Running pre_install()…
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - pre_install() done.

Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Backing up file: /home/wafracrm/dev/README.md
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Backing up file: /home/wafracrm/dev/ModuleInstall/PackageManager/tpls/ModuleLoaderListView.tpl
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Backing up file: /home/wafracrm/dev/ModuleInstall/PackageManager/metadata/listviewdefs.php
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Backing up file: /home/wafracrm/dev/ModuleInstall/PackageManager/PackageManagerDownloader.php
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Backing up file: /home/wafracrm/dev/ModuleInstall/PackageManager/PackageManagerDisplay.php
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Backing up file: /home/wafracrm/dev/ModuleInstall/PackageManager/PackageManagerComm.php
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Backing up file: /home/wafracrm/dev/ModuleInstall/PackageManager/PackageManager.php
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Backing up file: /home/wafracrm/dev/ModuleInstall/PackageManager/PackageController.php
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Backing up file: /home/wafracrm/dev/ModuleInstall/PackageManager/ListViewPackages.php
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Backing up file: /home/wafracrm/dev/ModuleInstall/ModuleScanner.php
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Backing up file: /home/wafracrm/dev/HandleAjaxCall.php
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - file backup done.
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - Running pre_install()…
Thu, 12 Apr 2018 00:22:42 +0000 [UpgradeWizard] - pre_install() done.

Hello!

My immediate action would be to address the strict standards you have your PHP set to.
I would first recommend to remove Strict error_reporting in your php.ini e.g “~E_STRICT”

@hostnet you say you are “upgrading to 7.10”, which 7.10 is that? Make sure you try the upgrade pack to the latest version, 7.10.4.

Your FATAL error is something that I believe has already been fixed. It was a bug in the upgrade package itself.

My current version is 7.9.17 - that is the last version for 7.9. I want to upgrade to 7.10 and the only option is 7.9.x to 7.10.4

Let me know if there is any thing else that I can do - this is a repeatable issue - I can recover from a backup and make it happen again.

There must be something else then removing Strict Error Reporting

Hi hostnet,

Have you double checked that you have the absolute latest version of the pack? (Found here: https://suitecrm.com/upgrade-suitecrm/). It looks like your upgrade is failing due to “Call to undefined method” but that function should definitely be in the pack.

One more thing (if downloading the package doesn’t solve your problem): can you get us a full stack trace from this message

[12-Apr-2018 00:22:42 UTC] PHP Fatal error: Call to undefined method EmailAddress::getSendConfirmOptInEmailActionLinkDefs() in /home/wafracrm/dev/cache/upgrades/temp/FY6vE8/SuiteCRM-Upgrade-7.9.x-to-7.10.4/modules/Contacts/metadata/detailviewdefs.php on line 51

It would be useful to know what part of the code is making that call. To enable stack traces please install XDEBUG. You can uninstall it later.

I just did a test with a clean install of 7.9.4 and tried to upgrade it to 7.10.4 and got this error

ZIP Error(0): Status(0): Arhive(upload://upgrades/patch/SuiteCRM-Upgrade-7.9.x-to-7.10.4.zip): Directory(/home/wafracrm/dev/crm/cache/upgrades/temp/zNqYVM)

That could be permissions problems on the upload directory, or it could be a missing zip module enabled in php.ini

I am able to do an upgrade on clean install of 7.9.4 to 7.9.17 without any issues

It is the upgrade from 7.9 to 7.10 is not working

Some people facing this ZIP error in the past have worked around it by unzipping the package, then zipping it again, and retrying the upgrade.

I was able to upgrade 7.9.4 to 7.9.17 and then upgrade to 7.9.x to 7.10.4

There is an issue with upgrade wizard - especially when it fails. There should be some clean up task to reset the upgrade wizard after failure.

Or at least some instructions from developers on how to do it manually. It seems that after failure upgrade wizard still stuck in the last step of upgrade.

Thanks

1 Like

I don’t mean to hijack the thread, but the title explains my problem exactly.
However, I am trying to upgrade from 7.9.14 to 10.0.4.

And the error I encounter I see in the error.log is:

PHP Fatal error:  Uncaught Error: Call to undefined method EmailAddress::getSendConfirmOptInEmailActionLinkDefs() in C:\\xampp\\htdocs\\mycrm\\cache\\upgrades\\temp\\FFC3.tmp\\SuiteCRM-Upgrade-7.9.x-to-7.10.4\\modules\\Contacts\\metadata\\detailviewdefs.php:51

These are the last lines of my upgradeWizard.log:

Mon, 16 Apr 2018 15:42:00 +0200 [UpgradeWizard] - file backup done.
Mon, 16 Apr 2018 15:42:00 +0200 [UpgradeWizard] - Running pre_install()...
Mon, 16 Apr 2018 15:42:00 +0200 [UpgradeWizard] - pre_install() done.
Mon, 16 Apr 2018 15:43:29 +0200 [UpgradeWizard] - setting session variables...
Mon, 16 Apr 2018 15:43:29 +0200 [UpgradeWizard] - [At commit.php]
Mon, 16 Apr 2018 15:43:29 +0200 [UpgradeWizard] - Setting error_reporting() to E_ERROR while running upgrade
Mon, 16 Apr 2018 15:44:19 +0200 [UpgradeWizard] - setting session variables...
Mon, 16 Apr 2018 15:44:19 +0200 [UpgradeWizard] - [At commit.php]
Mon, 16 Apr 2018 15:44:19 +0200 [UpgradeWizard] - Setting error_reporting() to E_ERROR while running upgrade

I will try again, and first upgrade to 7.9.17 to see if that works. But just wanted to make you aware of it, in case it is a general bug.

So I tried first upgrading to 7.9.17 which went fine, but then when I try to upgrade to 10.0.4 I get the same blank screen and error:

PHP Fatal error:  Uncaught Error: Call to undefined method EmailAddress::getSendConfirmOptInEmailActionLinkDefs() in C:\\xampp\\htdocs\\mycrm\\cache\\upgrades\\temp\\ABC5.tmp\\SuiteCRM-Upgrade-7.9.x-to-7.10.4\\modules\\Contacts\\metadata\\detailviewdefs.php:51

I checked before upgrading and the function just isn’t there?

Other than manually adding the function from the git repo and hoping everything works, I don’t know what to do?
Any suggestions?

I think you should be ok with adding the file from the git repo. I think this is a weird case that happens to people whose installations go through the “merge layouts” screens. The function is “required” before the final step of committing the upgrade, so it is not copied to it’s final place yet.

1 Like

Thanks

I ended up having to copy 3 files form the repository:

include/SugarEmailAddress/SugarEmailAddress.php
include/SugarEmailAddress/getEmailAddressWidget.php
modules/Configurator/Configurator.php

but then it ran all the way through!

2 Likes

Hi guys,

This should now be resolved with the latest version of the upgrade packs. Let me know if you encounter any more issues.

Thanks.

Hello,
I experienced exactly the same issue upgrading from 7.9.12 to 7.10.4, with a freshly downloaded upgrade package.
Then I first upgraded from 7.9.12to 7.9.17, which worked flawlessly.
I have to go now but will try to upgrade from 7.9.12 to 7.10.4 and let you know how it worked.
If it fails, I will do the manual trick of copying the few filed from the repository.
Anyway, nice software suite overall; Keep up the good work.