Dolibarr Administration / Field notes

Diagnose a Dolibarr Theme Display Issue Before Editing Core Files

A layout problem can come from the selected theme, a user-level preference, cached CSS, a custom module or an unsupported override. Change one variable at a time so you can identify the cause and keep the repair maintainable across upgrades.

Open the Dolibarr theme compatibility checklist

Capture the version and the exact screen

Record the Dolibarr version, PHP version, theme name, affected page, user role, browser and whether the issue appears for one user or everyone. Include a screenshot and short reproduction steps. Note whether a recent update, theme change or module activation happened before the problem began.

Avoid copying customer names, invoices or other sensitive records into a public report. Use a test account and non-sensitive example when you can reproduce the issue outside production.

Check whether the problem follows the theme

Ask an administrator to compare the same page with the native theme in a safe test context. If the layout is correct there, the evidence points toward the custom skin or its overrides. If the problem remains, inspect the page, module and browser behavior before changing theme files.

Dolibarr’s theme documentation describes testing a theme with a theme parameter before enabling it. Theme selection can also be set for the application or for an individual user, so check both levels. A user-only symptom may be a preference difference rather than a broken global theme.

Inspect custom CSS and module changes in order

First refresh the page and verify that the browser loaded the expected stylesheet. Check custom CSS settings, the theme’s stylesheet and module-provided CSS. Temporarily disable one recently changed module only in a test copy, then repeat the same steps. Clear caches using the supported application or hosting procedure after a controlled change.

If a module adds its own page or stylesheet, compare that page with a standard Dolibarr page. A mismatch may come from custom markup that does not use the documented theme classes. The developer wiki recommends reusing Dolibarr styles where possible and shows how modules declare their own CSS. If the failure appears only on one page, compare a nearby screen that uses the same shared header and note whether the expected CSS rule is missing or overridden. That points toward stylesheet loading or selector conflict, which need different fixes.

Keep the fix outside core when possible

Editing a core Dolibarr template directly breaks clean upgrades and complicates future support. Prefer a supported theme option, a custom stylesheet or a module hook when the documented extension point fits the need. Test the exact affected screens, including forms, lists, dialogs and responsive widths that matter to your users.

Once the cause is known, document the original behavior, changed file or setting, version tested and rollback method. Confirm the fix on a copy before deploying it to the live installation. A display check against one version does not establish compatibility with every Dolibarr release or every installed module.

Primary sources

Sources and further reading.

These references support the article. Check the requirements and assumptions that apply to your own work.