SuiteCRM 7 to 8 upgrade problems, and the documented fixes
SuiteCRM 8 adds a Symfony application layer and an Angular front end, with the SuiteCRM 7 code running inside it as a legacy layer. Moving from 7 to 8 is therefore a migration to a new installation, not a patch on the old one (SuiteCRM docs). This guide lists the steps, the problems that come up, and only the fixes that a SuiteCRM source states.
The documented migration path
Summarised from the SuiteCRM 8 migration guide, which applies to migrations to 8.7.0 and later. The guide is the authority; command names and folders below are quoted from it.
- 01
Bring SuiteCRM 7 to the required version
The migration package is built against a minimum 7.x version, shown in the package name; the docs' example is that 8.7.0 Upgrade from 7.14.x requires 7.14.x. Running the migration from an older 7.x version will fail or produce an unstable result (Moving to SuiteCRM 8).
- 02
Prepare
Back up files and database, run the whole migration on a development or staging copy first, check the server against the SuiteCRM 8 compatibility matrix, and set APP_ENV to prod in .env or .env.local (Before You Migrate).
- 03
Unpack the migration package and copy SuiteCRM 7 into it
Unzip the migration package into a new SuiteCRM 8 folder, copy the SuiteCRM 7 folder into its public folder and rename the copy to legacy. From 8.7.x, the vendor and include folders and deprecated.php in public/legacy are replaced by hand from the package (Running the Migration).
- 04
Run the prepare command
./bin/console suitecrm:app:setup-legacy-migration asks for session_dir (set to an empty value), site_url (the address of the SuiteCRM 8 instance, with /public appended when the vhost does not point at the public folder) and the RewriteBase in the legacy .htaccess.
- 05
Run the upgrade and finalize commands
./bin/console suitecrm:app:upgrade -t followed by the package name, then ./bin/console suitecrm:app:upgrade-finalize. Before finalizing, custom code has to meet the minimum PHP version in the compatibility matrix.
- 06
Re-set permissions and clear caches
Re-set permissions if the commands ran as a different user from the web server, and restart the web server when opcache, APCu or another PHP cache is in use. Then log in.
Problems and their documented fixes
Each problem below is described in the SuiteCRM documentation or in an issue on SuiteCRM's GitHub. Where the source gives a fix, it is quoted; where it does not, the page says so.
The setup-legacy-migration command does not exist
This usually means the standard SuiteCRM 8 installation package was used instead of the migration package. The migration package name follows the pattern SuiteCRM-8.x-7.x-migration, for example SuiteCRM-8.7.0-7.14.x-migration (SuiteCRM docs: Known Issues).
The package was unpacked over the SuiteCRM 7 folder
The migration does not apply on top of an existing SuiteCRM 7 instance. The docs' fix: unzip the migration package to a new folder, copy SuiteCRM 7 into its public subfolder and rename it to legacy; the commands then update the legacy code in place (Known Issues).
Pages, API calls or links fail: document root, site_url and RewriteBase
SuiteCRM 8's API calls (api/graphql) depend on URL rewrites; without them the API returns 404. The webserver guide recommends pointing the web root or vhost at the public folder, because otherwise every file under the SuiteCRM folder may be exposed to the web (Webserver Setup Guide). The RewriteBase in public/legacy/.htaccess must match: /legacy when the vhost points at public, otherwise the path to public followed by /legacy, such as /crm/public/legacy (Running the Migration).
In SuiteCRM-Core issue #631, a RewriteBase of /public/legacy came back every time .htaccess was rebuilt from the admin panel. A reply in the issue explains that the RewriteBase is generated from site_url in public/legacy/config.php; correcting site_url fixed it, as the reporter confirmed.
Invalid CSRF token after the migration
Refresh the page and clear the browser cookies so the server can start a new session. It typically happens when migrating again to the same URL while old session cookies are still present (Known Issues).
Errors on files created by the commands
If the commands ran as root or another user, the web server may not be able to read or write the new files. Always re-set file permissions after the upgrade commands (Known Issues).
The top menu is missing after the migration
In SuiteCRM-Core issue #236, suitecrm_version in config.php still showed the SuiteCRM 7 version after migrating, and on a 7.14.5 to 8.6.2 migration the top menu bar was missing; the reporter writes that correcting suitecrm_version to 8.6.2 brought the menu back. A later comment could not reproduce it on 7.14.6 to 8.8.0, where the version updated during the upgrade command. The issue was open on 4 December 2026, so treat this as a reported workaround, not a confirmed bug.
Custom files under public/legacy disappear
The migration may remove non-core files or folders under public/legacy. The docs' instruction is to review customisations before migrating (Before You Migrate); the SuiteCRM 7 docs point to the guidance on auditing customisations for large or complex upgrades (Moving to SuiteCRM 8).
Customised layouts lose Convert Lead or Print as PDF
upgrade-finalize handles customised view metadata in one of three modes: keep (the default) preserves your customisations and skips the merge; merge combines them with the new core metadata and keeps a backup in public/legacy/custom/<Module>/metadata; override replaces them with the core metadata (Metadata Merge Modes).
SuiteCRM-Core issue #1060 reports that upgrade-finalize run non-interactively without -t skips the merge while still printing "Metadata successfully merged", so Studio-customised record views miss the new 8.x actions such as Convert Lead and Print as PDF. In the issue's own test, the same run with -t and the package name, for example -t SuiteCRM-8.10.2 -m merge, merged the files and the actions appeared. A related open issue, #1194, reports that merge mode can drop record and bulk actions on later 8.x upgrades of migrated layouts; it proposes a code change but no released fix is stated in the issue.
Logic hooks are deleted when a custom module is redeployed
In SuiteCRM-Core issue #105, logic_hooks.php placed in public/legacy/custom/modules/<module> was deleted when the module was redeployed from Module Builder. A SuiteCRM contributor's answer is to define the hook in custom/Extension/modules/<module>/Ext/LogicHooks/ and keep the class file in a folder Module Builder does not write to. That matches the SuiteCRM developer docs, which say to add logic hooks through the Extension framework (Logic Hooks).
Core fields blank after a Studio edit on 8.10
On 8.10, editing a core field in Studio wrote a wrong source definition into the override file, causing SQL errors on save, blank data and failing logic hooks or integrations. 8.10.1 fixes it. The release notes give a manual fix: delete the line that sets source to custom_fields in public/legacy/custom/Extension/modules/<Module>/Ext/Vardefs/override_sugarfield<field>.php, run Quick Repair and Rebuild, and run any SQL shown at the bottom of the Repair page (8.10 release notes).
Moving to a new server at the same time
Check the target server against the matrix for the exact SuiteCRM 8 version. For 8.10.x the matrix lists Linux, Unix or Mac OS, Apache 2.4, PHP 8.2 to 8.4, and MariaDB or MySQL (SuiteCRM 8 Compatibility Matrix). The SuiteCRM 7.15.x matrix also lists Windows Server, IIS and SQL Server (SuiteCRM 7 Compatibility Matrix), so an instance running on those has to change platform as part of the move.
When the address changes, site_url and the RewriteBase have to follow it, as described above. The webserver guide also lists the PHP modules SuiteCRM 8 needs and asks for error_reporting without notices and warnings in php.ini (Webserver Setup Guide).
Attachments and integrations on SuiteCRM 8.10
- Attachment migration needs a worker. From 8.10, an upgrade creates Manual Migration Tasks that move contact, lead and target photos, document revision files and note attachments to the new file storage. They run on a background worker; without a running worker they stay in Pending (8.10 release notes, Manual Migration Tasks). Existing files in the old storage are detected and keep displaying in the meantime.
- Media paths moved. 8.10 renamed public/media-upload to public/media. Custom code or integrations that reference the old paths need updating; existing files are moved automatically.
- SOAP Portal is gone. 8.10.2 removes SOAP Portal support; the release notes say to move to the REST API or another supported method.
- API v4 query where clause. 8.10.2 adds disable_v4_api_query_where, set to true by default, which disables the v4 API query where clause. An integration that relies on it needs the option set to false in config_override.php (8.10 release notes).
Where to look when something fails
- logs/upgrade.log for the SuiteCRM 8 migration commands
- public/legacy/upgradeWizard.log for the legacy part of the migration
- public/legacy/suitecrm.log for the legacy application
- logs/prod/prod.log, or the folder named after your APP_ENV, for the main application
For more detail, set APP_ENV to qa temporarily, run bin/console cache:clear, and switch back to prod afterwards (Logs and Debugging). Adding -vvv to a migration command sets error_reporting to E_ALL (Before You Migrate).
What a clean run does not prove
The commands finishing without errors does not show that the data and the processes survived. Our SuiteCRM 7 to 8 upgrade page names the main risks: lost relationships between records, custom fields that do not map, attachments that do not survive the export, and integrations nobody documented. Compare record counts and relationships with the SuiteCRM 7 copy, open records that carry attachments, and run every integration, scheduled job and report people rely on before switching over.
If moving within SuiteCRM is not settled, Odoo vs SuiteCRM compares the two platforms, and the SuiteCRM to Odoo migration page covers the other route. A sample migration on demo data shows what that import looks like in Odoo.
Having it done
The SuiteCRM 7 to 8 upgrade service starts with an audit of about one week that lists version, modules, custom fields, logic hooks, scheduled jobs and integrations and ends with a fixed quote and schedule. Data is loaded into a SuiteCRM 8 copy first, record counts and relationships are reconciled, and SuiteCRM 7 stays available until you sign off. Starting prices are on packages and prices.
Sources
- SuiteCRM docs: Moving to SuiteCRM 8
- SuiteCRM 8 docs: Before You Migrate
- SuiteCRM 8 docs: Running the Migration
- SuiteCRM 8 docs: Known Issues (migration)
- SuiteCRM 8 docs: Logs and Debugging
- SuiteCRM 8 docs: Metadata Merge Modes
- SuiteCRM 8 docs: Webserver Setup Guide
- SuiteCRM 8 docs: Compatibility Matrix
- SuiteCRM 7 docs: Compatibility Matrix
- SuiteCRM 8 docs: 8.10 release notes
- SuiteCRM 8 docs: Manual Migration Tasks
- SuiteCRM 7 docs: Logic Hooks
- SuiteCRM-Core issue #631: RewriteBase and site_url
- SuiteCRM-Core issue #236: suitecrm_version after migration
- SuiteCRM-Core issue #1060: upgrade-finalize without -t
- SuiteCRM-Core issue #1194: merge mode and layout actions
- SuiteCRM-Core issue #105: logic hooks and Module Builder
Stuck between SuiteCRM 7 and 8?
Send your SuiteCRM version, the customisations you know about and the error you are seeing. We reply within one business day.