Skip to content

Core module returns core=false if wire folder symlinked #2281

Description

@chriswthomson

This is definitely a quirk with our setup, but only started happening on one of the recent dev releases. We have the wire folder for installs symlinked to a single wire folder for easier upgrades.

After refactoring for AI started, going to Modules > Site in the nav started returning a list of all modules, while nothing appears for Modules > Core.

It looks to me as if the issue is that we're using 'wire3' as the directory name, so this line in ModulesInfo.php fails:

if($info['file']) $info['core'] = strpos($info['file'], $this->modules->coreModulesDir) !== false; // is it core?

It looks to me to be caused by the addition of this line in ModulesFiles.php:

if($this->wireIsLink) { $real = realpath($file); if($real !== false) $file = $real; }

Is the only solution here to use 'wire' as the directory name instead of 'wire3'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions