Skip to content

Mautic icons/Remixicon not loaded after whitelabel when Mautic 5 is installed via Composer method #171

@matbcvo

Description

@matbcvo

When I install Mautic 5.1.1 using composer create-project mautic/recommended-project:^5 --no-interaction and run whitelabel on it, then Mautic icons (remixicon) are missing. Everything else seems to be fine (colors, logo, favicon are updated).

image

Below image Mautic is installed via .zip method and whitelabeled, icons are there

image

libraries.css tries to import remixicon.css from https://<mautic>/node_modules/remixicon/fonts/remixicon.css, but node_modules is not publicly accessible.

@import "../../../../../../node_modules/remixicon/fonts/remixicon.css";

This project structure is like this:

bin
bin/console
docroot
docroot/app
docroot/media
docroot/plugins
docroot/themes
node_modules
var
vendor
composer.json
package.json

where docroot is publicly accessible.

https://docs.mautic.org/en/5.x/getting_started/how_to_install_mautic.html#installing-with-composer

As this method of installation moves the core app files into a folder called docroot from which Mautic runs, you should ensure that you configure your web server to serve files from this directory. This might mean updating your virtual host and/or NGINX configuration to have /docroot as the root directory. If you don’t do this, it’s likely you’ll see errors when you try to access your Mautic instance.

But when Mautic is installed with .zip method and whitelabeled, then everything is fine, remixicon is loaded. Project structure is different as there is no docroot, just all files are in the same directory.

I think Mautic Whitelabeler should support Composer installation method too, because:

From Mautic 6, the default way to install, update and manage Mautic changes to Composer.

https://docs.mautic.org/en/5.x/getting_started/how_to_update_mautic.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions