Upgrade-safe changes with the SuiteCRM extension framework

Use SuiteCRM's custom/Extension directories so vardefs, language strings, scheduled tasks and layouts survive upgrades and add-ons coexist, and move core-file edits back into the framework.

On this page

Why SuiteCRM customizations break on upgrade and how the extension framework prevents it

If your team has edited files inside the SuiteCRM core, the upgrade you are planning is the moment that change becomes expensive. Core files are replaced when you install a new release, so any field definition, language string, scheduled job or layout change made directly in those files is overwritten or left in a state the new code does not expect. The fix is to move each change into the custom area that SuiteCRM reads on top of its core, so the core can be replaced without losing your work. The custom/Extension directories exist for exactly this purpose.

Within those directories, the extension framework holds the artifacts that most often get edited by hand: vardefs (field and relationship dictionaries), language strings, scheduled tasks and layout definitions. Each artifact type has its own subfolder and its own loading order, and SuiteCRM merges these files with the core definitions at runtime. Because a change lives in its own file, several add-ons can coexist, and removing one does not require editing the core. Confirm the exact subfolder names, file naming and merge behavior against the documentation for your release, because these paths have changed between the 7 and 8 lines.

Choose the mechanism by the size and type of change. Studio covers labels, fields, layouts and relationships that the admin interface exposes, and it writes its own customization files, so it is usually the first choice for admins. Module Builder is the route for new custom modules. The extension framework is the right tool when a change must alter a core module's metadata or language in a way Studio does not reach, or when a developer must ship the same change across several instances. Before you start, check the SuiteCRM upgrade documentation for the release you run, and list every core file your team has modified so each one has a named replacement or an accepted risk.

Which customization artifacts belong in the extension framework

Most SuiteCRM customizations that must survive an upgrade fall into a small set of artifact types, and each one lives in a different place and behaves differently during an upgrade. Use the cards to decide what moves into the extension directories and what to re-test after every minor release.

Vardefs extensions

Vardefs define fields, relationships and indexes for a module. A custom field or relationship added through an extension file in the custom Extension area is regenerated into the module's effective definition, while a direct edit to the core vardefs file is overwritten on the next upgrade. Confirm the supported extension path for your version, then check after each upgrade that the field still appears in the database schema and in Studio.

Compatibility matrix

Language string extensions

Labels, dropdown options and button text come from language files. Overrides belong in an extension language file so that a core upgrade that adds or renames strings does not silently revert your wording. The risk to check is a renamed key: the old custom label stops applying and the screen shows the raw key or the default text, so review labels in the most-used screens after each upgrade.

Scheduled task definitions

A scheduled job you add for a custom process must be registered through the extension mechanism, not by editing the core scheduler list. Registration determines whether the job is still present after an upgrade and whether it runs under the scheduler and worker setup you operate. Check that the job is listed, its last run time updates, and its code still matches the core API it calls.

Layout and subpanel extensions

Layouts control edit, detail, list and search views, and subpanels control related records shown on a record. Changes made in Studio or through extension layout files persist through upgrades, but a core layout change in a new release can add or move fields that your extension does not account for. Compare the rendered layouts in staging before each upgrade, and confirm which extension file each change belongs to.

Add-on coexistence

Two add-ons that each extend the same vardef, language file or layout can overwrite each other, and the conflict only shows when both are installed. Keep a register of which extension file owns each change and install add-ons one at a time on staging. Ask each add-on vendor which extension points it uses and whether it supports the SuiteCRM version you run.

Changes made in core files

Edits to files under the core application or public/legacy folders are the most common cause of upgrade breakage, and the migration documentation warns that non-core files under public/legacy may be removed. Inventory every changed core file against the release you started from, move each change to the supported extension point, and document any change that has no extension point so it can be re-applied and tested on each upgrade.

Before you migrate

Choosing between Studio, Module Builder, extension files and core edits

Studio is the first option for administrators who need to change labels, fields, relationships and layouts on existing modules without writing code. Changes are stored as configuration that SuiteCRM applies on top of its core, so they are generally the lowest-effort path to keep through an upgrade. The upgrade cost is usually a review of the affected screens rather than a code merge.

  • Who uses it: CRM administrators and business analysts who own page layouts and field sets.
  • What it survives: Field labels, added fields, relationship settings and layout changes made through Studio.
  • Upgrade effort: Low. Review changed screens after each minor release and confirm they still render and save.
  • Where it stops: Studio cannot add business logic, custom backend behavior or new modules, so those needs move to another option.
  • Field auditing: Confirm in your version which Studio settings, such as field auditing, are retained after a migration or upgrade.

Before relying on a Studio change, check it on a staging instance running the target release and confirm which settings your version documents as preserved.

Extension framework options and when each fits

This table compares the main ways to change SuiteCRM 8 without editing core files: vardefs, language files, scheduled jobs, layouts and add-on packages. Read each row as a fit check: the purpose, what usually triggers the choice, how the change behaves at upgrade time, and what you verify afterward. Confirm exact file names and merge behavior against the SuiteCRM version you run before you build.

Extension pointBest fit forUpgrade behavior to confirmVerification to run
Vardefs overridesAdding or changing field definitions, validation and relationship metadata for an existing moduleOverrides live in the custom directory and are merged on rebuild, so confirm which keys replace core values and which mergeRebuild metadata, open the record edit and detail views, and check the field in list views and exports
Language file overridesChanging labels, dropdown values and help text without touching core stringsCustom language files take precedence for matching keys, so new core strings may not appear in your custom copyCompare changed keys against the new core language file after each upgrade and check every affected screen
Scheduled job extensionsAdding a recurring task such as a cleanup, sync or reminder that runs through the schedulerJob registration persists across upgrades, but the job's code can break if core services it calls changeRun the job manually, confirm it appears in the scheduler list, and check the job log for errors on each run
Layout extensionsAdjusting edit, detail, list or subpanel layouts for a moduleLayout overrides can hide fields added by a later core release, so review them against the new defaultsOpen each changed layout for each role that uses it and confirm new core fields are present or deliberately hidden
Add-on packages (Module Installer or extension bundles)Shipping a set of related changes between dev, staging and production as one versioned unitInstall and uninstall scripts run on upgrade, so confirm package versioning and compatibility with the target releaseInstall on a staging copy of production, test uninstall, and record the package version in your change log
Core file editsAlmost nothing that can use one of the extension points aboveEdits are overwritten or conflict on upgrade, and may be removed by migration cleanup under the public/legacy folderDiff core files against a clean release before each upgrade and plan to move the change into an extension

Extension files survive the upgrade, core file edits do not

The diagram starts with the current instance, where edits made directly in core files sit beside changes held in custom/Extension directories. A new release replaces the core files, so direct edits are overwritten and lost, while extension files are read again at the repair and rebuild step. Run the rebuilt result on a staging instance before any production upgrade, and confirm that each extension change still behaves as expected. Treat any change that exists only in a core file as lost until it is moved into an extension.

Extension changes persist through the rebuild, while direct core edits are overwritten.

How to move changes made in core files back into extensions

This sequence turns ad hoc edits to SuiteCRM core files into extension-based changes that survive upgrades, and leaves a record of what was moved and why. It is meant for the point where a team has already modified core and needs a clean, testable baseline before the next minor release.

  1. Inventory every modified core file

    Compare the running instance against the pristine copy of the same SuiteCRM release, using the release tag from the SuiteCRM-Core GitHub releases page or the SuiteCRM 7 releases page if the instance is on the 7.x line. Use a checksum or file diff across the application tree, and include files added under custom, public and any legacy folders, not only files with obvious names. The output is a list of every added, changed and deleted file with its path and owner. Confirm the list with the developer who made each edit, because a diff alone does not show intent.

  2. Classify each change by purpose

    Sort each entry into a category such as field or label change, relationship or layout change, new scheduled job, custom logic on save, display rule, or a fix for a defect that is now patched upstream. Record the business reason and the ticket or owner beside it. Changes that are only fixes for a bug present in the current release should be checked against that release's notes before they are carried forward, since they may already be resolved. The output is a classification table that the team agrees on before any code is moved.

  3. Rebuild supported changes as extensions

    For each change that the extension framework supports, recreate it under the custom/Extension directories so that vardefs, language strings, scheduled tasks and layouts load from the extension rather than from core. Where a change needs behavior the framework does not cover, mark it as an exception with a written reason rather than forcing it. Do not copy the core file wholesale into custom. The output is a set of extension files and an exceptions list, both kept in version control.

  4. Restore original core files

    Replace each modified core file with the pristine version from the same release, then delete any non-core files the earlier edits introduced into core locations. Check the migration documentation's warning that the migration may remove non-core files under the public/legacy folder, and keep a copy of anything removed so it can be reviewed. The check is a second diff against the pristine release, which should show no differences in core paths except for files that are intentionally excluded and listed in the exceptions.

  5. Rebuild and test on staging

    Deploy the restored core and the new extensions to a staging instance that matches production in PHP, database and web server versions, using the compatibility matrix for the target release. Rebuild the extension metadata, clear caches, and then run the test cases for each reclassified change, including the screens, scheduled jobs and saves that the original edits affected. Compare the results with the pre-change behavior recorded during inventory. The output is a signed test log showing each change passes or has an agreed deviation.

  6. Confirm the upgrade path before production

    Repeat the staging test after a minor release upgrade in a separate staging copy, so the team confirms that the extensions still load and that no core file has been reintroduced. Check that the release is one the team has planned for, and confirm with SuiteCRM which release line the instance is supported on, using the SuiteCRM LTS and release lifecycle page. The output is a recorded upgrade rehearsal with the release tested, the outcome, and any items that must be fixed before production change.

  7. Document and hand over the result

    Write a change record that lists each original core edit, its replacement extension or exception, the test evidence, and the owner who will maintain it. Store the record, extension source and the pristine release reference together, and set a rule that no file in core paths is edited again. The check is that a reviewer who did not do the work can locate every custom behavior from the record and reproduce the staging result from the repository alone.

Testing extensions on staging before each SuiteCRM 8 minor release

Extension regressions usually show up at minor upgrades, not patch upgrades, so the staging test should be planned around the minor release calendar. SuiteCRM 8 minor releases arrive roughly every eight weeks, while patch releases contain only security and bug fixes with no new features or database changes. A patch is therefore a lower-risk event for your extensions, but a minor release can change the core code your vardefs, language strings, layouts and scheduled jobs depend on. Before each minor upgrade, confirm the target version and its release notes on SuiteCRM-Core releases on GitHub, then check the compatibility matrix for PHP, Apache and database versions, since a platform change can break extensions even when the CRM code is unchanged.

Build the staging copy from a fresh backup of both files and database, taken from production the same day. The SuiteCRM migration guidance recommends testing on a staging instance and backing up files and database before any change, and it is the only safe rollback point for a failed upgrade. Deploy the target release to staging, then reapply your custom/Extension content unchanged, so that a clean test shows whether the framework actually keeps your changes intact. Record every step, because a failed run is only useful if you can reproduce it.

Run regression cases that cover each extension type. For fields and layouts, confirm that custom fields appear in edit, detail and list views, that subpanels still load, and that filter definitions still return correct records. For language strings, check labels in each language your users work in, since a missing key often shows as a raw identifier. For scheduled jobs, confirm the job is still registered, runs on the scheduler, and writes the records or messages it should. Expected behavior for any step that depends on version-specific changes should be confirmed against the release notes and your own test results, not assumed from earlier versions.

Security and operational considerations for extension code

Extension code runs with the same database and file access as SuiteCRM core, so a weak control in an add-on can weaken the whole instance. The cards below cover the controls that keep custom directories reviewable, writable only by the deployment process, and free of credentials and core security overrides.

Keep extension code under version control

Store every file under custom/Extension and any custom module source in a Git repository, and deploy from tagged commits rather than from files edited on the production server. Each vardefs, language, scheduled task and layout change then has an author, a review and a rollback point. Before an upgrade, diff the repository against the running instance so that files changed outside the repository are found before they are lost or silently reapplied.

SuiteCRM LTS page

Restrict write access to custom directories

The web server process should be able to read the custom tree and write only where SuiteCRM needs to cache or store uploads. Make custom/Extension owned by the deployment user and read-only to the web user, so that a compromised add-on or an unreviewed admin edit cannot place new PHP files into a served path. Check the permissions after each deployment, because a bulk chmod during an upgrade often widens them.

Review scheduled task permissions

Scheduled tasks run as background jobs with the privileges of the instance, not of the user who created them, so a task that calls an external API or modifies records bypasses the normal screen-level access checks. For each job registered through an extension, record what it reads, what it writes, which external hosts it contacts and who approved it. Disable any job whose owner cannot be named, and confirm in the scheduler screen that jobs from removed packages are not still active.

Keep secrets out of extension files

Do not place API keys, database passwords, SMTP credentials or signing keys in vardefs, logic hook PHP files, language files or layout XML, because those files are copied into version control, backups and deployment bundles. Load secrets from environment variables or a secrets manager at runtime, restrict the file that holds them to the web server user, and rotate any credential that has appeared in a committed file. Ask the team which secret store the instance uses before the first extension ships.

Check add-ons for core security overrides

An extension can redefine configuration values that control login, session lifetime, password rules or access checks, and the override survives upgrades because it lives in custom. Review every file in the extension tree for settings that touch authentication or ACL behavior, and compare the effective values against the defaults after each upgrade. Pay particular attention to add-ons that claim to change login behavior, since a SAML or LDAP setting changed in an add-on can disable controls the identity team relies on.

LDAP configuration reference

Questions teams ask before fixing SuiteCRM core-file changes

How much effort does a SuiteCRM core-file cleanup take?

The effort depends on how many core files were edited, how far those edits reach into vardefs, layouts, language files and scheduled jobs, and how much of the logic is still needed. No fixed duration is supplied for this work, so ask for an estimate built from your own inventory rather than a generic figure. The main drivers are the number of modified files, whether a change duplicates behavior that the extension framework can now provide, and whether the original author documented the intent. A small set of cosmetic label edits moves quickly. A set of edits that alter save behavior or query logic needs functional testing on every affected module, which adds time. Ask the partner to break the estimate into inventory, mapping each change to an extension location, rebuilding, testing and documenting, so you can see where the time goes and where your own team can take part.

Can our internal team fix SuiteCRM core-file changes without a partner?

Yes, if the team has PHP and SuiteCRM 8 knowledge, a staging environment and time to test each change. Your team will need to know which files were edited, why, and what behavior the business depends on. Internal teams often handle the inventory and the simple label and layout moves well, then struggle with logic that runs on save, scheduled tasks that interact with other jobs, and changes that were layered over several past upgrades. A partner's value is usually a second pair of eyes on the mapping, a repeatable method, and a documented result that your administrators can keep. Decide based on who will own the result after handover, how many customized files you have, and whether the same people also carry the upgrade calendar. Confirm your internal capacity before choosing either path.

What do we need to provide before a core-file cleanup starts?

Three things decide whether the work can start cleanly: a complete inventory, a staging instance that matches production, and access that lets the work be tested and deployed. The inventory should list every changed file under the SuiteCRM installation, the reason for each change, and the business owner who relies on it. Staging should be a copy of the production database and files, not a fresh install, so that customized behavior is actually present during testing. Access should cover the application server, the database, the code repository, and an admin account with the roles needed to test each module. Ask the partner which of these items they need on day one and which can follow, and confirm how production data is handled during testing.

How does a core-file cleanup interact with a SuiteCRM upgrade or migration?

Clean up before the upgrade or migration, not during it, because edited core files can conflict with new releases and may be overwritten. SuiteCRM 8 minor releases arrive roughly every eight weeks, and patch releases contain only security and bug fixes with no new features or database changes. A SuiteCRM 7 to 8 move is documented as a migration: a new environment is set up and data is moved into it, and the migration docs warn that non-core files under the public/legacy folder may be removed. That means any customization placed in those locations can disappear. Plan the cleanup, test it on staging, then run the upgrade or migration against the cleaned instance. Keep the inventory current so the next upgrade does not reintroduce the same problem.

What risks come with changing core files directly?

The main risks are silent loss at upgrade time, unexpected behavior in modules nobody tested, and a growing gap between what administrators think is installed and what is actually running. A file edited in core can be replaced when the platform is updated, and the fix often appears to work until the next release. Edits to shared metadata can also affect unrelated modules, which is hard to spot without a test plan that covers each module that reads the changed definition. Security exposure grows when an edit touches authentication, access checks or data handling, because the change may bypass controls that the platform applies elsewhere. Ask the partner how they will check for these effects, including regression tests for the modules your teams use daily.

What should we ask a partner for in a fixed-scope quote?

Ask for a written scope that names the modules, customized files and environments included, along with the deliverables and the acceptance criteria for each. DeployOpen does not publish a price list, and most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, so the quote follows from that scope. Request the inventory method, the mapping of each change to its target extension location, the test approach, the rollback plan, and the handover documentation. Confirm what is one-time work, such as the cleanup itself, and what recurs, such as checks before each upgrade or a retainer for ongoing support. Also ask which items depend on your own team, including access, data handling and stakeholder sign-off, because those dependencies change the schedule.

Which SuiteCRM core changes are safe to keep after cleanup?

Keep only changes that are required, tested and documented, and move the rest into a supported location. Core edits that exist only to fix a bug the vendor has since fixed should be removed after confirming the fixed release on your staging copy. Changes that add fields, labels or layouts are usually candidates for the extension directories, because those locations are designed to coexist with add-ons. Changes that alter how records save, or that run code on a schedule, need a deliberate design, and the right location depends on the detail. Confirm the current extension rules against your SuiteCRM release in the official documentation before moving anything, since the file layout differs between versions.

Limits to confirm in your SuiteCRM environment

Extension-based changes only stay upgrade-safe if they fit what the installed SuiteCRM version actually supports. The cards below cover the points to confirm with the vendor documentation and in your own test environment before you commit to a design, a migration or a support model.

Supported extension points by version

Confirm which vardefs, language, layout and scheduler extension points your installed SuiteCRM 8 release reads from the custom directories. Behavior can differ between 8.x minor releases, so check the release you plan to run, not the latest one you read about. Build a small test extension for each extension point you need and confirm it loads, saves and survives a rebuild of the extension files before writing the full change.

Compatibility matrix

Add-on conflicts on the same field

Two add-ons that edit the same vardef, layout or language key can overwrite each other when the extensions are rebuilt. Inventory every installed add-on and record which module, field and label it touches. Then test the combined set in staging, including a rebuild and a bulk save of records, because conflicts often appear only after the second package is loaded.

Custom files in the 7 to 8 migration

The migration guidance warns that moving from SuiteCRM 7 to 8 may remove non-core files under the public/legacy folder, so any customization stored there is at risk. Before you plan the move, list every custom file outside the extension directories, decide whether each one is still needed, and rebuild it as an extension in staging. Back up files and the database before the test run, and confirm the result with the SuiteCRM migration documents.

Migration guide

License terms for modified code

The SuiteCRM 8 core is licensed under the GNU Affero General Public License version 3, so ask whether your modifications and any hosted service you offer to users trigger source-sharing obligations. Have your legal team review the license text with your intended deployment model before you ship custom code to external users. Keeping customizations in extensions rather than editing core files also makes that review and any later license audit simpler.

SuiteCRM-Core releases

Hosting and identity constraints

Confirm the PHP, Apache, database and operating system versions your infrastructure can run, because extensions that depend on a newer PHP or MariaDB feature may fail on an older host. If you plan to use LDAP or SAML sign-on, check that the chosen AUTH_TYPE setting is supported with your extension set. Document the single sign-on logout limitation as well, since it affects how users end sessions after an extension change.

Matrix version checked
8.10
Compatibility matrix

No nominated SuiteCRM 8 extended support

SuiteCRM 7.15 has security fixes until January 2028, but no SuiteCRM 8 extended support release had been nominated when this was researched, with a decision expected by Q3 2027. Ask how long your chosen 8.x minor line will receive security fixes, and plan a recurring upgrade window so extensions are retested on each release. Treat the extension set as part of the upgrade scope, not a one-time build.

SuiteCRM LTS page

How the cleanup and extension work is scoped with DeployOpen

DeployOpen scopes cleanup and extension work as a fixed-scope engagement, with scope, deliverables and timeline agreed in writing before any change is made to your SuiteCRM instance. The first step is an inventory of every customization in the instance: edits made directly to core files, custom vardefs, language strings, scheduled jobs, layout changes and any add-ons already installed. Each item is classified as keep, move into a custom/Extension path, or remove, and the classification is documented so your team can see what changed and why. Ask for this inventory as a named deliverable in any quote, because it determines how much of the work is rebuild and how much is verification.

The rebuild then moves the logic that belongs in extensions into the framework's directories and reverts the core file edits, so that the next SuiteCRM minor release does not overwrite or conflict with local changes. The rebuilt setup is tested on a staging instance that matches production, including a check of the migration notes for files under the public/legacy folder and a review of which add-ons still coexist. Before go-live, DeployOpen hands over the extension map, the test results, the rollback steps and the list of items still to be retested at the next upgrade. Confirm with DeployOpen who performs the upgrade test, which environments are covered, and whether staging is provided by you or by the engagement.

Because SuiteCRM releases arrive on a recurring schedule, the work does not end at handover. Ongoing upgrade testing, extension maintenance and patch review can be covered by a retainer agreed separately from the fixed-scope work, so the extension map stays current as your instance moves to later 8.x releases. Ask for the retainer's scope in writing, including which releases are covered, how staging tests are run and who approves production changes. DeployOpen does not hold certifications or partner status with SuiteCRM Ltd, so the agreement should describe the work and its deliverables rather than rely on any credential.

How DeployOpen scopes, delivers and supports SuiteCRM extensions

DeployOpen plans upgrade-safe changes to SuiteCRM as a written scope, builds them in the extension directories instead of core files, and hands over documentation your team can maintain. Engagements are fixed-scope, and ongoing support is available as a retainer once the work is live.

How we scope

  • We list every customization against its need, such as vardefs, language strings, scheduled tasks or layouts, before any build starts.
  • We identify which current changes live in core files and agree in writing how each one moves into an extension directory.
  • We confirm the SuiteCRM version and target release line, so the scope reflects the upgrade path your team plans to follow.

How we build

  • We build changes under the custom and Extension directories so core files stay untouched and future upgrades can apply cleanly.
  • We test each extension on a staging instance alongside existing add-ons to check for conflicts in fields, labels and scheduled jobs.
  • We back up files and the database before any change, and we record which customizations depend on which module or setting.

How we hand over

  • We deliver a written inventory of every extension, its purpose, the files it touches and the steps to remove it cleanly.
  • We document the test cases used for each change so your team can repeat them after every SuiteCRM minor release.
  • We walk your administrators and developers through the directory layout and the rebuild steps they will run themselves.

How we support

  • Ongoing support and upgrade testing are available as a retainer, covering extensions against each SuiteCRM minor release you adopt.
  • We check the release notes and compatibility matrix for each planned upgrade and report which extensions need review first.
  • Your team can ask us to review new requests against the existing extension set, so changes do not drift back into core files.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.