Skip to content

w2p_Exception_FileSystem cannot be autoloaded (class name says Exception, folder says Exceptions) #467

Closed

Description

@caseysoftware

classes/w2p/Exceptions/FileSystem.class.php declares class w2p_Exception_FileSystem (L11), singular Exception. web2project_autoload() maps class names to paths by replacing _ with /, so it looks for classes/w2p/Exception/FileSystem.class.php. That file doesn't exist.

Any throw new w2p_Exception_FileSystem(...) or catch (w2p_Exception_FileSystem $e) would therefore fail: an include warning, then Class "w2p_Exception_FileSystem" not found. Nothing references the class today, on dev-5.0.0 or dev-6.0.0, so this is latent. It will bite the first time the file-backend work (#404) or anything else uses it.

Every other class in classes/w2p/Exceptions/ uses the plural, for example w2p_Exceptions_Database.

Fix: rename the class to w2p_Exceptions_FileSystem, and update the docblock on L3. There are no callers to update.

Activity

  1. added
    php
    on Oct 23, 2026
  2. added a commit that references this issue on Oct 24, 2026
    f3ce86b
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

    php

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions