Impossible root Errors

Problem

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.

Cause

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.

Solution

To resolve this issue:

  1. Go to Configuration () > System Settings > Storage Settings.
    The Settings tab in Storage Settings
  2. Choose the Configurations tab.
    The Configurations tab in Storage Settings
  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.
      Selecting a storage location in Storage Settings
      For this error, this includes the following locations:
      • Client Files
      • Email Attachments
      • Ticket Attachments
    6. Click Switch.
    7. Click Continue.

Last modified: September 27, 2024