Impossible root Errors


You see the following error message:

League\Flysystem\Exception: Impossible to create the root directory "/folder/path". in /path/to/whmcs/vendor/league/flysystem/src/Adapter/Local.php:106

In most cases, you will see this after moving the WHMCS installation to a new location.


This error is reporting that the system cannot read or write to the storage location for email attachments.

Even if email does not include an attachment, WHMCS must be able to read and write to the storage location at all times.


To resolve this issue:

  1. Go to Configuration () > System Settings > Storage Settings.

  2. Choose the Configurations tab.

  3. Click the play icon next to each storage location to test them.

  4. For each storage location that returns an Error message:

    1. Click the copy icon for the storage location.

    2. Enter the correct path to the WHMCS attachments directory.

    3. Click Save Changes. The page will reload.

    4. Choose the Settings tab.

    5. Use the menus to change references to the failing storage location to the newly-created valid location. Specifically for this error:

      • Client Files
      • Email Attachments
      • Ticket Attachments
    6. Click Switch.

    7. Click Continue.

Last modified: June 14, 2024