7.4. -> 7.10.5 upgrade: Fatal error: Uncaught Error: Call to undefined method EmailAddress::getSendConfirmOptInEmailActionLinkDefs()

Hi,

sorry, I’m completely new to this SuiteCRM world, as I got the task to update all our systems to the newest version, but the one who had installed the CRM has left the company. I have Admin access to the web interface and FTP access, but no shell access to the host. So, I hope you can help me:

I’ve uploaded the upgrade ZIP file 7.4.x to 7.5.10 via web interface. There were some messages like they are some files in “custom” which are already there, but as there was no warning or error, I guessed this would be OK.
But now, I’m stuck to this message:
Fatal error: Uncaught Error: Call to undefined method EmailAddress::getSendConfirmOptInEmailActionLinkDefs()
in /homepages/18/d651619956/htdocs/CRM/SuiteCRM/cache/upgrades/temp/UwNqzc/SuiteCRM-Upgrade-7.9.x-to-7.10.5/modules/Contacts/metadata/detailviewdefs.php:51 Stack trace: #0 /homepages/18/d651619956/htdocs/CRM/SuiteCRM/modules/UpgradeWizard/SugarMerge/EditViewMerge.php(707): require() #1 /homepages/18/d651619956/htdocs/CRM/SuiteCRM/modules/UpgradeWizard/SugarMerge/EditViewMerge.php(756): EditViewMerge->loadData(‘Contacts’, ‘modules/Contact…’, ‘/homepages/18/d…’, ‘custom/modules/…’) #2 /homepages/18/d651619956/htdocs/CRM/SuiteCRM/modules/UpgradeWizard/SugarMerge/SugarMerge.php(209): EditViewMerge->merge(‘Contacts’, ‘modules/Contact…’, ‘/homepages/18/d…’, ‘custom/modules/…’, true) #3 /homepages/18/d651619956/htdocs/CRM/SuiteCRM/modules/UpgradeWizard/SugarMerge/SugarMerge.php(180): SugarMerge->mergeFile(‘Contacts’, ‘detailviewdefs…’, true, true) #4 /homepages/18/d651619956/htdocs/CRM/SuiteCRM/modules/Upgr in /homepages/18/d651619956/htdocs/CRM/SuiteCRM/cache/upgrades/temp/UwNqzc/SuiteCRM-Upgrade-7.9.x-to-7.10.5/modules/Contacts/metadata/detailviewdefs.php on line 51

Can yu tell me how to get out of this and what to do next?

THANKS a lot in advance!

Kind regards from Germany

Gregor

Are you really upgrading to 7.5.10? Or did you mean 7.10.5?

I wouldn’t attempt such a big upgrade without taking backups very seriously. You need a full file system backup of the entire SuiteCRM directory, plus a full database backup.

If you’re upgrading to 7.10.5, the issue you’re facing is a known issue with some installer packages, the workaround is in this thread:

https://suitecrm.com/suitecrm/forum/installation-upgrade-help/18587-upgrading-from-7-9-to-7-10-blank-upgrade-wizard-during-final-stage

1 Like

Thanks, that helped to pursuit the upgrade, unfortunately, since then my CRM has been “damaged”. The interface is slow and in text mode only:
https://www.insights-crm.de

What can I do now?

P.S.: I have backup of the data, if it’s to complicated, I just gonna reinstall everything

That sort of thing is caused by missing CSS. This is usually just a matter of fixing permissions, or doing a Quick Repair.

You can also delete directory “cache/themes” on the server, it will get re-created.

Thanks, but I can’t access the Admin menu anymore, After login and showing me parts of the menu (contact lists etc.), the site doesn’t react anymore.
So, no Quick repair possible… :frowning:

I tried to delete the cache themes folder, didn’t help.

Turn off styles in your browser for that page. In Firefox, it’s menu View / Page Style / No style. This way you will see only text, but you can navigate and get to the Admin / Repair menu.

Meanwhile:

  • make sure your directory and file permissions are correct, reapply them if necessary

  • check both your logs ofr any FATAL or ERROR messages: suitecrm.log and php_errors.log

Thanks again, you must earn much of Karma points, I hope! :wink:
But unfortunately…

Firefox no style: no display at all. message translated from German “The website is slowing down your browser… wait or close”. And I wait, but nothing…

suitrecrm.log: no entry since install day in February 2017

php_errors.log: could’nt find it

suitecrm_version.php:
$suitecrm_version = ‘7.10.5’;
$suitecrm_timestamp = ‘2018-05-18-17:00:00’;

UpgradeWizard.log:

Wed, 30 May 2018 20:45:34 +0200 [UpgradeWizard] - unlink cache/modules/AOD_Index/QueryCache/006f6b4db6a7ce878ad3d7cdcce18c65
Wed, 30 May 2018 20:45:34 +0200 [UpgradeWizard] - unlink cache/modules/AOD_Index/QueryCache/0025b3e9722a6648c86bb56a0f3882f5
Wed, 30 May 2018 20:45:34 +0200 [UpgradeWizard] - unlink cache/modules/AOD_Index/QueryCache/0014326d2c827a6af963ed9ab82c7edd
Wed, 30 May 2018 20:45:34 +0200 [UpgradeWizard] - unlink cache/modules/AOD_Index/AOD_Indexvardefs.php
Wed, 30 May 2018 20:45:34 +0200 [UpgradeWizard] - unlink cache/modules/AOBH_BusinessHours/AOBH_BusinessHoursvardefs.php
Wed, 30 May 2018 20:45:34 +0200 [UpgradeWizard] - unlink cache/modules/AM_TaskTemplates/language/en_us.lang.php
Wed, 30 May 2018 20:45:34 +0200 [UpgradeWizard] - unlink cache/modules/AM_TaskTemplates/language/de_DE.lang.php
Wed, 30 May 2018 20:45:34 +0200 [UpgradeWizard] - unlink cache/modules/AM_TaskTemplates/AM_TaskTemplatesvardefs.php
Wed, 30 May 2018 20:45:34 +0200 [UpgradeWizard] - unlink cache/modules/AM_ProjectTemplates/language/en_us.lang.php
Wed, 30 May 2018 20:45:34 +0200 [UpgradeWizard] - unlink cache/modules/AM_ProjectTemplates/language/de_DE.lang.php
Wed, 30 May 2018 20:45:34 +0200 [UpgradeWizard] - unlink cache/modules/AM_ProjectTemplates/AM_ProjectTemplatesvardefs.php
Wed, 30 May 2018 20:45:34 +0200 [UpgradeWizard] - unlink cache/modules/ACLRoles/ACLRolevardefs.php
Wed, 30 May 2018 20:45:34 +0200 [UpgradeWizard] - unlink cache/modules/ACLActions/ACLActionvardefs.php
Wed, 30 May 2018 20:45:34 +0200 [UpgradeWizard] - clear cache/jsLanguage files
Wed, 30 May 2018 20:45:34 +0200 [UpgradeWizard] - finished check to see if current_db_version in $_SESSION equals target_db_version in $_SESSION
Wed, 30 May 2018 20:45:34 +0200 [UpgradeWizard] - running deleteChance() function
Wed, 30 May 2018 20:45:34 +0200 [UpgradeWizard] - running deleteCache() function
Wed, 30 May 2018 20:45:34 +0200 [UpgradeWizard] - call addNewSystemTabsFromUpgrade(upload://upgrades/patch/SuiteCRM-Upgrade-7.9.x-to-7.10.5-restore)
Wed, 30 May 2018 20:45:34 +0200 [UpgradeWizard] - finished addNewSystemTabsFromUpgrade
Wed, 30 May 2018 20:45:34 +0200 [UpgradeWizard] - Registering upgrade with UpgradeHistory
Wed, 30 May 2018 20:45:35 +0200 [UpgradeWizard] - Resetting error_reporting() to system level.
Wed, 30 May 2018 20:45:35 +0200 [UpgradeWizard] - Rebuilding style js file: cache/themes/SuiteP/js/style-min.js
Wed, 30 May 2018 20:45:35 +0200 [UpgradeWizard] - Rebuilding language cache
Wed, 30 May 2018 20:45:41 +0200 [UpgradeWizard] - setting session variables…
Wed, 30 May 2018 20:45:41 +0200 [UpgradeWizard] - Upgrade Wizard At Layout Commits
Wed, 30 May 2018 20:45:41 +0200 [UpgradeWizard] - Layout Commits about to show selection table

How could I verify that file and directory rights are correct? I don’t know, how they should be…

Do you want an FTP reading account?
THANKS A LOT!

See zip file with logs attached

  1. Please tell me your version of OS, PHP, Web server, and database.

  2. Are you root on your own server? Or is this a shared server?

  3. If it’s Linux then please post the results of this command given from your SuiteCRM root directory

ls -al
  1. If it’s Apache please post results from
ps -ef | egrep '(httpd|apache2|apache)' | grep -v `whoami` | grep -v root | head -n1 | awk '{print $1}'

As I said in my first posting: only FTP, no Shell access, it’s a shared server.

No clue about OS or PHP (where can I find this?), just found out that it’s a MySQL 5.5 database.

I don’t know how to help sysadmins who can’t even access the systems their supposed to administer.

Maybe the answer is: SuiteCRM cannot be run in your hosting. Unless the hosting support is willing to do these required operations for you, which I doubt…

Even a very cheap hosting these days will give you SSH access (even if limited). I would never run SuiteCRM on a system where I can’t use a command-line.

As I said, I inherited this field of duty, I was not involved in planning and installation. I just was told: “Install all updates so we are fine with data protection…”

I will try to find out where to get the SSH access.
Thanks a lot so far

I think you need to convey some helpful information to your bosses:

  • there are issues with your hosting, whether it’s really appropriate for running a CRM. Maybe it is, but it needs to be checked with your hosting. Today you have an upgrade problem, tomorrow you may have a service outage and not be able to fix it.

  • if by “data protection” you mean GDPR compliance, no software upgrade will do that for you. GDPR is about organizations, not apps. Your organization needs to get GDPR right, and it needs the right tools for that job.

Dear pgr,

here I am with Shell access! :slight_smile:

ls - al result:
~/CRM/SuiteCRM$ ls -al
total 4536
drwxr-xr-x 21 u86759761 ftpusers 4096 May 30 20:45 .
drwxr-xr-x 3 u86759761 ftpusers 70 May 8 2017 …
-rwxrwxrwx 1 u86759761 ftpusers 1759 Jun 1 18:49 .htaccess
-rw----r-- 1 u86759761 ftpusers 3094 May 30 20:45 CODE_OF_CONDUCT.md
-rwxrwxrwx 1 u86759761 ftpusers 2808 May 30 20:45 HandleAjaxCall.php
-rwxrwxrwx 1 u86759761 ftpusers 34539 Feb 17 2017 LICENSE.txt
drwxr-xr-x 3 u86759761 ftpusers 118 Feb 17 2017 ModuleInstall
-rwxrwxrwx 1 u86759761 ftpusers 3760 May 30 20:45 README.md
-rw----r-- 1 u86759761 ftpusers 194 May 30 20:45 RoboFile.php
-rwxrwxrwx 1 u86759761 ftpusers 5327 Feb 17 2017 SugarSecurity.php
-rwxrwxrwx 1 u86759761 ftpusers 5839 May 30 20:45 TreeData.php
drwxr-xr-x 2 u86759761 ftpusers 47 Feb 17 2017 XTemplate
drwxr-xr-x 8 u86759761 ftpusers 4096 Feb 17 2017 Zend
-rw----r-- 1 u86759761 ftpusers 411 May 30 20:45 bower.json
drwxr-xr-x 16 u86759761 ftpusers 4096 Jun 2 13:06 cache
-rwxrwxrwx 1 u86759761 ftpusers 3587 May 30 20:45 campaign_tracker.php
-rw----r-- 1 u86759761 ftpusers 1305 May 30 20:45 composer.json
-rw----r-- 1 u86759761 ftpusers 39795 May 30 20:45 composer.lock
-rwxrwxrwx 1 u86759761 ftpusers 12464 May 30 20:45 config.php
-rw----r-- 1 u86759761 ftpusers 3830 May 30 20:45 config_override.php
-rwxrwxrwx 1 u86759761 ftpusers 3543 Feb 27 2017 config_override_BACKUP.php
-rwxrwxrwx 1 u86759761 ftpusers 5052 Jul 4 2017 cron.php
-rwxrwxrwx 1 u86759761 ftpusers 2446 Feb 17 2017 crossdomain.xml
drwxr-xr-x 14 u86759761 ftpusers 4096 May 8 2017 custom
drwxr-xr-x 3 u86759761 ftpusers 123 Feb 17 2017 data
-rwxrwxrwx 1 u86759761 ftpusers 2386 May 30 20:45 dictionary.php
-rwxrwxrwx 1 u86759761 ftpusers 12794 May 30 20:45 download.php
-rwxrwxrwx 1 u86759761 ftpusers 2390 May 30 20:45 emailmandelivery.php
-rwxrwxrwx 1 u86759761 ftpusers 4918 May 30 20:45 export.php
-rwxrwxrwx 1 u86759761 ftpusers 967627 Feb 17 2017 files.md5
-rwxrwxrwx 1 u86759761 ftpusers 2367 May 30 20:45 ical_server.php
drwxr-xr-x 58 u86759761 ftpusers 8192 May 30 20:45 include
-rwxrwxrwx 1 u86759761 ftpusers 2374 May 30 20:45 index.php
drwxr-xr-x 6 u86759761 ftpusers 4096 Jul 15 2017 install
-rwxrwxrwx 1 u86759761 ftpusers 17895 Feb 17 2017 install.log
-rwxrwxrwx 1 u86759761 ftpusers 31893 May 30 20:45 install.php
-rwxrwxrwx 1 u86759761 ftpusers 2275 May 30 20:45 json_server.php
drwxr-xr-x 3 u86759761 ftpusers 147 Feb 17 2017 jssource
drwxrws— 8 u86759761 ftpusers 117 May 30 20:45 lib
-rwxrwxrwx 1 u86759761 ftpusers 2313 Feb 17 2017 log_file_restricted.html
-rwxrwxrwx 1 u86759761 ftpusers 2376 Feb 17 2017 maintenance.php
-rw----r-- 1 u86759761 ftpusers 891 Feb 23 2017 manifest.php
drwxr-xr-x 2 u86759761 ftpusers 4096 May 30 20:45 metadata
drwxr-xr-x 121 u86759761 ftpusers 8192 May 30 20:45 modules
-rwxrwxrwx 1 u86759761 ftpusers 2886 May 30 20:45 pdf.php
-rw----r-- 1 u86759761 ftpusers 304 May 30 20:45 php_version.php
drwxrws— 2 u86759761 ftpusers 10 May 8 2017 public
-rwxrwxrwx 1 u86759761 ftpusers 73 Feb 17 2017 robots.txt
-rwxrwxrwx 1 u86759761 ftpusers 3588 Feb 17 2017 run_job.php
drwxr-xr-x 12 u86759761 ftpusers 4096 May 30 20:45 service
drwxr-xr-x 2 u86759761 ftpusers 4096 Feb 17 2017 soap
-rwxrwxrwx 1 u86759761 ftpusers 4031 May 30 20:45 soap.php
-rwxrwxrwx 1 u86759761 ftpusers 154 May 30 20:45 sugar_version.json
-rwxrwxrwx 1 u86759761 ftpusers 2296 May 30 20:45 sugar_version.php
-rwxrwxrwx 1 u86759761 ftpusers 125030 Feb 17 2017 sugarcrm.log
-rwxrwxrwx 1 u86759761 ftpusers 861850 Feb 20 2017 suitecrm.log
-rwxrwxrwx 1 u86759761 ftpusers 173 May 30 20:45 suitecrm_version.php
drwxr-xr-x 6 u86759761 ftpusers 79 Feb 17 2017 themes
-rw----r-- 1 u86759761 ftpusers 93 May 30 20:45 travis.php.ini
drwxr-xr-x 3 u86759761 ftpusers 28 Feb 23 2017 upgrade
-rwxr-xr-x 1 u86759761 ftpusers 2286018 May 30 20:45 upgradeWizard.log
drwxr-xr-x 5 u86759761 ftpusers 4096 May 30 13:59 upload
-rwxrwxrwx 1 u86759761 ftpusers 2976 May 30 20:45 vCard.php
-rwxrwxrwx 1 u86759761 ftpusers 2248 May 30 20:45 vcal_server.php
drwxrws— 21 u86759761 ftpusers 4096 May 30 20:45 vendor

Apache result:
~/CRM/SuiteCRM$ ps -ef | egrep ‘(httpd|apache2|apache)’ | grep -v whoami | grep -v root | head -n1 | awk ‘{print $1}’
u867597+

Thanks for your help!

KR

Gregor

Good, that’s progress!

Try these commands, though I am not sure your hosting will allow them. Do them from the root of your SuiteCRM installation.


  sudo chown -R u86759761:ftpusers .
  sudo chmod -R 755 .
  sudo chmod -R 775 cache custom modules themes data upload
  sudo chmod -R 775 config_override.php 2>/dev/null

I find the fact that you don’t have recent additions to your log very strange, and it complicated troubleshooting. Maybe you have disabled it?

In my config.php I have this section:


  'log_dir' => '.',
  'log_file' => 'suitecrm.log',
  'log_memory_usage' => false,
  'logger' =>
  array (
    'level' => 'debug',
    'file' =>
    array (
      'ext' => '.log',
      'name' => 'suitecrm',
      'dateFormat' => '%c',
      'maxSize' => '10MB',
      'maxLogs' => 10,
      'suffix' => '',
    ),

You can make a backup of your current config.php, and then try editing this section to make sure you get logging operational.

1 Like

~/CRM/SuiteCRM$ sudo chown -R u86759761:ftpusers .
-bash: sudo: command not found

:frowning:

I have this section too:

  'log_dir' => '.',
  'log_file' => 'suitecrm.log',
  'log_memory_usage' => false,
  'logger' => 
  array (
    'level' => 'security',
    'file' => 
    array (
      'ext' => '.log',
      'name' => 'suitecrm',
      'dateFormat' => '%c',
      'maxSize' => '10MB',
      'maxLogs' => 10,
      'suffix' => '',
    ),
  ),

it’s only 800 KB size. I downloaded a copy, renamed the file. I logged in and the log file was recreated, but it’s empty.

THANKS again!

Might the UpgradeWizard.log help us? See earlier postings for download

Change that level ‘security’ to ‘warning’ and save.

About the other commands, remove the “sudo” from the beginning and try again.

Hi gregorvelz,

A temporary workaround is to copy include\SugarEmailAddress from the zip to the suitecrm install. This issue should be fixed in 7.10.6 so ideally I would try upgrading to that instead of 7.10.5 to fix this and other high priority issues.

Thanks.

Yaaaaaaaaaaaaaaaaaaaaaaaaaaaaahoooooooooooooooooooooooooooooo!!!
Billions of thank you!

Now, I just see, that I have an error message sometimes:

Possible Cross Site Request Forgery (XSRF) Attack Detected
If you think this is a mistake please ask your administrator to add the following site to the acceptable referer list
www.insights-crm.de
Click here for directions to add this site to the acceptable referer list

my .htaccess file

Options +FollowSymLinks RewriteEngine On RewriteBase /SuiteCRM RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] RewriteRule ^cache/jsLanguage/(.._..).js$ index.php?entryPoint=jslang&module=app_strings&lang=$1 [L,QSA] RewriteRule ^cache/jsLanguage/(\w*)/(.._..).js$ index.php?entryPoint=jslang&module=$1&lang=$2 [L,QSA]

It should redirect to https://www., but it only redirects to https://