Skip to content

TypeError in GlideManager after upgrading to 6.43 when published assets.php lacks image_manipulation.permissions #15986

Closed

Description

@davideprevosto

Bug description

After upgrading from v6.42.0 to v6.43.0, the application fails to boot (any HTTP request and any artisan command) with:

League\Flysystem\UnixVisibility\PortableVisibilityConverter::__construct(): Argument #1 ($filePublic) must be of type int, false given, called in vendor/league/flysystem/src/UnixVisibility/PortableVisibilityConverter.php on line 71

The new GlideManager::localCacheFilesystem() reads the new statamic.assets.image_manipulation.permissions.file / .directory config keys via Statamic\Facades\Config::get():

'permissions' => [
    'file' => ['public' => Config::get('statamic.assets.image_manipulation.permissions.file')],
    'dir' => ['public' => Config::get('statamic.assets.image_manipulation.permissions.directory')],
],

Two things combine here:

  1. Statamic merges its config with mergeConfigFrom(), which is shallow. Any app with a previously published config/statamic/assets.php overrides the whole image_manipulation array, so the new permissions key from the package config is never present.
  2. Statamic\Config::get() defaults to false rather than null (public function get($key, $default = false)).

So false is passed to PortableVisibilityConverter::fromArray(). Flysystem's fallback ($permissionMap['file']['public'] ?? 0644) only handles null, so false goes straight to the int-typed constructor and throws.

How to reproduce

  1. Have a config/statamic/assets.php published before v6.43 (i.e. its image_manipulation array has no permissions key), with image_manipulation.cache set to false (the default local cache filesystem).
  2. Upgrade statamic/cms to v6.43.0.
  3. Run any artisan command, e.g. php artisan config:show statamic.assets.

Logs

Environment

- Statamic: 6.43.0
- Laravel: 13.43.0
- PHP: 8.5.13
- league/flysystem: 3.36.0

Installation

Existing Laravel app

Additional details

Workaround

Add the key to the published config:

'image_manipulation' => [
    // ...
    'permissions' => [
        'directory' => 0755,
        'file' => 0644,
    ],
],

Activity

  1. robdekort commented on Nov 21, 2026

    @robdekort
    Contributor

    Ah yeah, I found the most recent update breaks all images on older sites. Thanks for reporting and creating a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions