Skip to content

PHP Warning: Undefined array key "func" in wire/core/WireFileTools.php:1590 #1637

@BernhardBaumrock

Description

@BernhardBaumrock

Short description of the issue

I'm using $wire->files->include() on a module's settings page and it throws the given warning. I did some research and found that on admin pages it seems that the fuel contains an "options" property which then causes the error in WireFileTools

image

Steps to reproduce the issue

Add this line in any getModuleConfigInputfields of a module and load the module's settings page:

$this->wire->files->include($this->wire->config->paths->siteModules . "README.txt");

Setup/Environment

  • ProcessWire version: 3.0.206

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions