{"id":726,"date":"2008-09-23T17:59:59","date_gmt":"2008-09-23T12:29:59","guid":{"rendered":"https:\/\/www.suramya.com\/blog\/?p=726"},"modified":"2022-06-16T15:19:41","modified_gmt":"2022-06-16T09:49:41","slug":"sugarcrm-silent-upgrade-issues-and-fixes","status":"publish","type":"post","link":"https:\/\/www.suramya.com\/blog\/2008\/09\/sugarcrm-silent-upgrade-issues-and-fixes\/","title":{"rendered":"SugarCRM Silent upgrade issues and fixes"},"content":{"rendered":"<p>The past few weeks I have been working on the SugarCRM Silent upgrade script that upgrades the CRM from ver 4.5.1 to Version 5.0 and I hit some issues that took ages to fix. So I am sharing the fixes\/solutions here for others who might have hit these issues and are looking for a solution:<\/p>\n<p>1. The upgrade fails suddenly with the following error message in the upgradeWizard.log file:<\/p>\n<p><code>Wed, 24 Sep 2008 08:28:20 -0500 [UpgradeWizard] - *** ERROR: could not copy file: \/home\/suramya\/public_html\/CRM\/include\/SugarFields\/Fields\/Address\/DetailView.tpl<\/code><\/p>\n<p>To fix this issue you need to extract the upgrade zip file that you downloaded and then copy the SugarFields folder from the includes directory into the include folder of your CRM. Once you do that the CRM upgrade will continue normally.<\/p>\n<p>2. Upgrade fails with the following error message:<\/p>\n<p><code><br \/>\n<b>Fatal error<\/b>:  Call to a member function on a non-object in <b>\/home\/suramya\/public_html\/CRM\/include\/dir_inc.php<\/b> on line <b>135<\/b><br \/><\/code><\/p>\n<p>This one was an interesting one to fix. I had already migrated a couple of test installs on that server so I knew the server supported the upgrade script and I was migrating the same install again so I knew that the install could be upgraded.<\/p>\n<p>Finally figured out that if you rename the upgrade zip file to another name it will fail with that error message. Which is kind of silly because we give the installer the name of the upgrade zip file when running it&#8230; <\/p>\n<p>Hope this helps someone else out there. <\/p>\n<p>&#8211; Sur<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The past few weeks I have been working on the SugarCRM Silent upgrade script that upgrades the CRM from ver 4.5.1 to Version 5.0 and I hit some issues that took ages to fix. So I am sharing the fixes\/solutions here for others who might have hit these issues and are looking for a solution: [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[18,24,2],"tags":[],"class_list":["post-726","post","type-post","status-publish","format-standard","hentry","category-computer-software","category-knowledgebase","category-techie-stuff"],"_links":{"self":[{"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/posts\/726","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/comments?post=726"}],"version-history":[{"count":2,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/posts\/726\/revisions"}],"predecessor-version":[{"id":5067,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/posts\/726\/revisions\/5067"}],"wp:attachment":[{"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/media?parent=726"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/categories?post=726"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/tags?post=726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}