Trouble upgrading from 7.8.6 -> 7.11.4

I go through all the preflight checks and then the installer drops me nto a blank "index.php page.

file/dir permissions are correct
php “max” settings are all good
suitecrm.log is empty.

error_log only has one entry:

[08-Jul-2019 15:54:12 UTC] PHP Fatal error: Uncaught Error: Call to undefined method EmailAddress::getSendConfirmOptInEmailActionLinkDefs() in /full/path/crm/cache/upgrades/temp/4OGi7a/SuiteCRM-Upgrade-7.8.x-to-7.11.6/modules/Contacts/metadata/detailviewdefs.php:51

upgradeWizard.log:
Mon, 08 Jul 2019 15:48:34 +0000 [UpgradeWizard] - Upgrade started. At start.php

Mon, 08 Jul 2019 15:49:23 +0000 [UpgradeWizard] - No permissions errors found!
Mon, 08 Jul 2019 15:49:46 +0000 [UpgradeWizard] - setting session variables…

Mon, 08 Jul 2019 15:49:46 +0000 [UpgradeWizard] - *** Potential error: patch found with either no ‘type’ or non-patch type [ upload://upgrades/module/Fax2018_05_08_113417.zip ]
Mon, 08 Jul 2019 15:49:46 +0000 [UpgradeWizard] - *** UW using [ ] as source for patch files.
Mon, 08 Jul 2019 15:50:29 +0000 [UpgradeWizard] - setting session variables…
Mon, 08 Jul 2019 15:50:29 +0000 [UpgradeWizard] - At upload.php
Mon, 08 Jul 2019 15:50:30 +0000 [UpgradeWizard] - running upload
Mon, 08 Jul 2019 15:50:30 +0000 [UpgradeWizard] - File uploaded to upload://SuiteCRM-Upgrade-7.8.x-to-7.11.6 .zip
Mon, 08 Jul 2019 15:50:30 +0000 [UpgradeWizard] - extracting manifest.
Mon, 08 Jul 2019 15:50:30 +0000 [UpgradeWizard] - validating manifest.php file
Mon, 08 Jul 2019 15:50:30 +0000 [UpgradeWizard] - copying manifest.php to final destination.
Mon, 08 Jul 2019 15:50:30 +0000 [UpgradeWizard] - zip file moved to [SuiteCRM-Upgrade-7.8.x-to-7.11.6 .zip]
Mon, 08 Jul 2019 15:50:33 +0000 [UpgradeWizard] - updating UpgradeWizard code: include/Localization/Localization.php

Mon, 08 Jul 2019 15:52:57 +0000 [UpgradeWizard] - file preflight check passed successfully.
Mon, 08 Jul 2019 15:52:57 +0000 [UpgradeWizard] - starting schema preflight check…
Mon, 08 Jul 2019 15:52:57 +0000 [UpgradeWizard] - looking for schema script at: /full/path/crm/cache/upgrades/temp/4OGi7a/scripts/650_to_7110_mysql.sql

***** no schema script found - all schema preflight skipped*******

Mon, 08 Jul 2019 15:52:57 +0000 [UpgradeWizard] - schema preflight done.
Mon, 08 Jul 2019 15:53:02 +0000 [UpgradeWizard] - setting session variables…
Mon, 08 Jul 2019 15:53:02 +0000 [UpgradeWizard] - [At commit.php]
Mon, 08 Jul 2019 15:53:02 +0000 [UpgradeWizard] - Setting error_reporting() to E_ERROR while running upgrade
Mon, 08 Jul 2019 15:53:02 +0000 [UpgradeWizard] - backing up files to be overwritten…

Mon, 08 Jul 2019 15:54:12 +0000 [UpgradeWizard] - Backing up file: /home/mswoods/public_html/crm/Zend/Gdata/Exif/Extension/Make.php
Mon, 08 Jul 2019 15:54:12 +0000 [UpgradeWizard] - Backing up file: /home/mswoods/public_html/crm/Zend/Gdata/Exif/Extension/Iso.php
Mon, 08 Jul 2019 15:54:12 +0000 [UpgradeWizard] - Backing up file: /home/mswoods/public_html/crm/Zend/Gdata/Exif/Extension/ImageUniqueId.php
Mon, 08 Jul 2019 15:54:12 +0000 [UpgradeWizard] - Backing up file: /home/mswoods/public_html/crm/Zend/Gdata/Exif/Extension/FocalLength.php

Mon, 08 Jul 2019 15:54:12 +0000 [UpgradeWizard] - file backup done.
Mon, 08 Jul 2019 15:54:12 +0000 [UpgradeWizard] - Running pre_install()…
Mon, 08 Jul 2019 15:54:12 +0000 [UpgradeWizard] - pre_install() done.
Stack trace:
#0 /full/path/crm/modules/UpgradeWizard/SugarMerge/EditViewMerge.php(724): require()
#1 /full/path/crm/modules/UpgradeWizard/SugarMerge/EditViewMerge.php(776): EditViewMerge->loadData(‘Contacts’, ‘modules/Contact…’, ‘/p…’, ‘custom/modules/…’)
#2 /full/path/crm/modules/UpgradeWizard/SugarMerge/SugarMerge.php(217): EditViewMerge->merge(‘Contacts’, ‘modules/Contact…’, ‘/full/path/p…’, ‘custom/modules/…’, true)
#3 /full/path/crm/modules/UpgradeWizard/SugarMerge/SugarMerge.php(185): SugarMerge->mergeFile(‘Contacts’, ‘detailviewdefs…’, true, true)
#4 /full/path/crm/modules/UpgradeWizard/SugarMerge/SugarMerge.php(153): SugarMerge->mergeModule(‘Contacts’, true, true, in /full/path/crm/cache/upgrades/temp/4OGi7a/SuiteCRM-Upgrade-7.8.x-to-7.11.6/modules/Contacts/metadata/detailviewdefs.php on line 51

NOTE: “full/path/crm/cache/upgrades/temp/4OGi7a/scripts/” does exist - and is 775 – but the file “650_to_7110_mysql.sql” is not in there.
Any ideas what’s going wrong?
Thanks,
bob

Sometimes re-starting the upgrade clean helps, you can do this by renaming the directory

upload/upgrades

to something else. You can later delete it, when you are sure it’s no longer useful.

I suggest also upgrading to 7.11.6 instead of 7.11.4.

Sorry, my bad., It is 7.11.6.
I’ve tried starting fresh on a fresh backup dir several times.
I just can’t get it to go. Its as if the files just aren’t there. (and I downloaded it a coupld of times, using different browsers. My current "SuiteCRM-Upgrade-7.8.x-to-7.11.6 " is 36.3 MB (38,091,091 bytes)
:frowning:

When I unpack the"SuiteCRM-Upgrade-7.8.x-to-7.11.6" and search for “650_to_7110_mysql.sql”, it is not found anywhere.

I don’t think it should be looking for that script, that would be to upgrade from SugarCRM 6.5 to SuiteCRM 7.11 which is not even possible.

I don’t too much about these upgrade processes, so I could be wrong. But it doesn’t seem to be building up that database upgrade action correctly…

I’m not sure what to make of that.
Is the installer faulty?

Our “About” page shows:
SuiteCRM Version 7.8.6
Sugar Version 6.5. 24 (Build 509)

Please tell me the contents of these files, if they exist in the root of your installation:

sugar_version.php
suite_version.php

(you can leave out the big comments with the license text)

“sugar_version.php” contains:
$sugar_version = ‘6.5.24’;
$sugar_db_version = ‘6.5.24’;
$sugar_flavor = ‘CE’;
$sugar_build = ‘509’;
$sugar_timestamp = ‘2016-07-14 06:10AM’;

“suitecrm_version.php” contains:
$suitecrm_version = ‘7.8.6’;
$suitecrm_timestamp = ‘2017-09-06 17:00’;

Have you tried an upgrade to 7.10 first?

I tried upgrading from 7.8.31 to 7.11 and it cost me days and days of cussing, hair-pulling, and jig dancing. Only when I first upgraded to 7.10 first, was I able to get to 7.11. Oh and if you cancel the upgrade, the cleanup process is broken and will leave some of the new upgrade files in place causing no end of file reference errors if you try to restart without manually replacing the UpgradeWizard folder from a backup.

Yes I tried that (also unsuccessfully).
Always on a fresh copy of the crm directory.

Do you have stuff in “custom” dir related to Contacts?

My instinct is to say “no,” because we’ve never used the “Contacts” module (most custom work is in Lead and Users), but I found the found the following files in ‘/custom/Extension/modules/Contacts/Ext/Vardefs:’
sugarfield_jjwg_maps_address_c.php
sugarfield_jjwg_maps_geocode_status_c.php
sugarfield_jjwg_maps_lat_c.php
sugarfield_jjwg_maps_lng_c.php

I also found “/custom/history/modules/Contacts” containing two subdirectories:
“/metadata/”
“/subpanels/”

“metadata” contains what appear to be several auto-generated files:
detailviewdefs.php_1440602390
detailviewdefs.php_1471611659
detailviewdefs.php_1504793336
detailviewdefs.php_1504795322
editviewdefs.php_1504793336
editviewdefs.php_1504795322
quickcreatedefs.php_1504793336
quickcreatedefs.php_1504795322
searchdefs.php_1504793336
searchdefs.php_1504795322

In “/custom/modules/Contacts” there are some logic hooks that seem to have been created by an earlier update:

$hook_array['before_save'] = Array(); 
$hook_array['before_save'][] = Array(1, 'Contacts push feed', 'modules/Contacts/SugarFeeds/ContactFeed.php','ContactFeed', 'pushFeed'); 
$hook_array['before_save'][] = Array(77, 'updateGeocodeInfo', 'modules/Contacts/ContactsJjwg_MapsLogicHook.php','ContactsJjwg_MapsLogicHook', 'updateGeocodeInfo'); 
$hook_array['after_save'] = Array(); 
$hook_array['after_save'][] = Array(1, 'Update Portal', 'modules/Contacts/updatePortal.php','updatePortal', 'updateUser'); 
$hook_array['after_save'][] = Array(77, 'updateRelatedMeetingsGeocodeInfo', 'modules/Contacts/ContactsJjwg_MapsLogicHook.php','ContactsJjwg_MapsLogicHook', 'updateRelatedMeetingsGeocodeInfo'); 

There’s also a metadata and vardefs directory.
“EXT” contains a vardefs.ext file that adds mapping fields (from the earlier update)

“metadata” contains 4 files (also created by earlier installers/updaters):
detailviewdefs.php
editviewdefs.php
quickcreatedefs.php
searchdefs.php

Ok, thanks.

Can you please try this:

  • save a backup copy of your current include/SugarEmailAddress/SugarEmailAddress.php

  • unzip the upgrade package in a different directory, and grab this file from inside it:

SuiteCRM-Upgrade-7.8.x-to-7.11.6/include/SugarEmailAddress/SugarEmailAddress.php
  • now put this extracted file into its destination place in include/SugarEmailAddress/SugarEmailAddress.php

Now retry the upgrade.

I’ll try that.

Is that /root/custom/include…
or:
/root/include…?

Without custom, put it directly into the core code (root/include/…).

What we’re doing here is working around a problem where some code needs the new version of the file, before it gets a chance of being put in place by the upgrade. So we put it there before.

I also had to upload “include/SugarEmailAddress/getEmailAddressWidget.php” else Suite wouldn’t run long enough to let me into the Upgrade Wizaed.

Unfortunately, it stalled again after UpgradeWizard.log ashows:
Wed, 10 Jul 2019 13:44:06 +0000 [UpgradeWizard] - file backup done.
Wed, 10 Jul 2019 13:44:06 +0000 [UpgradeWizard] - Running pre_install()…
Wed, 10 Jul 2019 13:44:06 +0000 [UpgradeWizard] - pre_install() done.

error_log shows:
[10-Jul-2019 13:39:59 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /crm/modules/AOW_WorkFlow/aow_utils.php on line 847
[10-Jul-2019 13:39:59 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /crm/modules/AOW_WorkFlow/aow_utils.php on line 860
[10-Jul-2019 13:40:00 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /crm/modules/AOW_WorkFlow/aow_utils.php on line 847
[10-Jul-2019 13:40:00 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /crm/modules/AOW_WorkFlow/aow_utils.php on line 860
[10-Jul-2019 13:40:18 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /crm/modules/AOW_WorkFlow/aow_utils.php on line 847
[10-Jul-2019 13:40:18 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /crm/modules/AOW_WorkFlow/aow_utils.php on line 860
[10-Jul-2019 13:40:19 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /crm/modules/AOW_WorkFlow/aow_utils.php on line 847
[10-Jul-2019 13:40:19 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /crm/modules/AOW_WorkFlow/aow_utils.php on line 860
[10-Jul-2019 13:40:20 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /crm/modules/AOW_WorkFlow/aow_utils.php on line 847
[10-Jul-2019 13:40:20 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /crm/modules/AOW_WorkFlow/aow_utils.php on line 860
[10-Jul-2019 13:40:21 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /crm/modules/AOW_WorkFlow/aow_utils.php on line 847
[10-Jul-2019 13:40:21 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /crm/modules/AOW_WorkFlow/aow_utils.php on line 860
[10-Jul-2019 13:42:35 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in / crm/modules/AOW_WorkFlow/aow_utils.php on line 847
[10-Jul-2019 13:42:35 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /crm/modules/AOW_WorkFlow/aow_utils.php on line 860
[10-Jul-2019 13:42:37 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /crm/modules/AOW_WorkFlow/aow_utils.php on line 847
[10-Jul-2019 13:42:37 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /crm/modules/AOW_WorkFlow/aow_utils.php on line 860

[10-Jul-2019 13:44:06 UTC] PHP Fatal error: Uncaught Error: Call to undefined method Configurator::isConfirmOptInEnabled() in /crm/include/SugarEmailAddress/SugarEmailAddress.php:2048
Stack trace:
#0 /home/mswoods/public_html/crm/cache/upgrades/temp/43nT0w/SuiteCRM-Upgrade-7.8.x-to-7.11.6/modules/Contacts/metadata/detailviewdefs.php(51): SugarEmailAddress::getSendConfirmOptInEmailActionLinkDefs(‘Contacts’)
#1 /l/crm/modules/UpgradeWizard/SugarMerge/EditViewMerge.php(724): require(’/p…’)
#2 /crm/modules/UpgradeWizard/SugarMerge/EditViewMerge.php(776): EditViewMerge->loadData(‘Contacts’, ‘modules/Contact…’, ‘//p…’, ‘custom/modules/…’)
#3 /crm/modules/UpgradeWizard/SugarMerge/SugarMerge.php(217): EditViewMerge->merge(‘Contacts’, ‘modules/Contact…’, ‘//p…’, ‘custom/modules/…’, true)
#4 /crm/modules/UpgradeWizard/SugarMerge/SugarMerge.php(185): SugarMerge->mergeFile(‘Contacts’, 'detailv in ///crm/include/SugarEmailAddress/SugarEmailAddress.php on line 2048
****

[10-Jul-2019 13:44:30 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /crm/modules/AOW_WorkFlow/aow_utils.php on line 847
[10-Jul-2019 13:44:30 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /crm/modules/AOW_WorkFlow/aow_utils.php on line 860
[10-Jul-2019 13:44:32 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in rm/modules/AOW_WorkFlow/aow_utils.php on line 847
[10-Jul-2019 13:44:32 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /crm/modules/AOW_WorkFlow/aow_utils.php on line 860

So it looks like I got a bit further than last time.

So I downloaded and extracted modules/Configurator from the 7.9.x to 7.10 package and uploaded those to the server, and voila!
Now running 7.11.6!

Holy cow!

Thanks for the help! (Karma given)

(Now to see if any of my custom programing still works. )

Cool B-)

Please check if your stack is up to date with the Matrix:

https://docs.suitecrm.com/admin/compatibility-matrix/

… especially your PHP version.

Yep, we just upgraded EVERYTHING.
(Been an interesting month :wink: