Upgrading from 7.9 to 7.10 Blank Upgrade Wizard during final stage

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.

Now I have applied the same “trick” as suggested above, copying just 3 files form the repository, and the upgrade to 7.10.4 could be completed.

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

Thanks Pawesome !

Hi - I am encountering the same blank screen issues upgrading from 7.9.0. How do you stop the install process so I can try to upgrade to 7.9.17 first?

@jfeider you can clear the upload/upgrades directory.

Check the errors you find in upgradeWizard.log and php_errors.log, don’t assume your issue is exactly like the ones in this thread.

I’m also stuck with the blank screen issue.

[Sun May 27 15:37:19.909173 2018] [:error] [pid 18235] [client 192.168.222.203:55766] PHP Fatal error:  Call to undefined method EmailAddress::getSendConfirmOptInEmailActionLinkDefs() in /var/www/crm_test/cache/upgrades/temp/I3TVH1/SuiteCRM-Upgrade-7.9.x-to-7.10.5/modules/Contacts/metadata/detailviewdefs.php on line 51, referer: http://192.168.222.201:8080/index.php?module=Administration&action=index

My current version is 7.9.5.

I also tried the upgrade to 7.10.4 and the following was the error.

[Mon May 28 10:38:04.565544 2018] [:error] [pid 26302] [client 192.168.222.203:52542] PHP Fatal error:  Call to undefined method EmailAddress::getSendConfirmOptInEmailActionLinkDefs() in /var/www/crm_test/cache/upgrades/temp/YsoCNt/SuiteCRM-Upgrade-7.9.x-to-7.10.4/modules/Contacts/metadata/detailviewdefs.php on line 51, referer: http://192.168.222.201:8080/index.php

Is this an issue with the upgrade package or specific to certain setups?

Thanks in advance for any help.

@sperkins please re-download the packages, if you’ve downloaded them long ago. Maybe there are new and improved packages there, I’m not sure.

Anyway: please try copying those three files mentioned above from GitHub into your installation, and then retry the upgrade:

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

I have same problem but I have a fresh install of suitecrm Versión 7.9.7 and I am trying to upgrade to 7.10.5

@pgr, Thanks and I got it working that way. Now I’m going to test the system after the upgrade.

I did not replace the files until I’m complete with the pre-upgrade test in the flow. What I noticed was that if I replace modules/Configurator/Configurator.php too early I’ll not get the “Next” button on the flow to go to the next step.

1 Like
PHP Fatal error:  Uncaught Error: Call to undefined method EmailAddress::getSendConfirmOptInEmailActionLinkDefs() in /home/user/crm/cache/upgrades/temp/eY1uqJ/SuiteCRM-Upgrade-7.8.x-to-7.10.31/modules/Accounts/metadata/detailviewdefs.php:51
Stack trace:
#0 /home/user/crm/modules/UpgradeWizard/SugarMerge/EditViewMerge.php(719): require()
#1 /home/user/crm/modules/UpgradeWizard/SugarMerge/EditViewMerge.php(771): EditViewMerge->loadData()
#2 /home/user/crm/modules/UpgradeWizard/SugarMerge/SugarMerge.php(217): EditViewMerge->merge()
#3 /home/user/crm/modules/UpgradeWizard/SugarMerge/SugarMerge.php(185): SugarMerge->mergeFile()
#4 /home/user/crm/modules/UpgradeWizard/SugarMerge/SugarMerge.php(153): SugarMerge->mergeModule()
#5 /home/user/crm/modules/UpgradeWizard/commit.php(274): SugarMerge->mergeAll()
#6 /home/user/crm/modules/UpgradeWizard/index.php(291): require('/home/user/crm/...')
#7 /home/user/crm/include/MVC/View/SugarView.php(761): include_once('/home/user/crm... in /home/user/crm/cache/upgrades/temp/eY1uqJ/SuiteCRM-Upgrade-7.8.x-to-7.10.31/modules/Accounts/metadata/detailviewdefs.php on line 51

This happens when upgrading from any older versions to 7.10.x

“SuiteCRM Upgrade Patch 1.0.1” doesn’t help at all with this issue.