Skip to content

Bug with filemtime() for static elements in Windows #15304

@sergant210

Description

@sergant210

Bug report

Summary

If you have static elements (snippets, plugins, chunks) some times you'll get this error (in Windows).

[2020-10-18 23:33:54] (ERROR @ D:\Projects\test.local\www\core\model\modx\modscript.class.php : 146) PHP warning: filemtime(): stat failed for D:/Projects/test.local/www/core/cache/includes/elements/modplugin/26.include.cache.php

modScript::loadScript()
modx static

Step to reproduce

  1. Create a static snippet or plugin.
  2. Clear the cache.
  3. Refresh the page.
  4. Open the error log.

Environment

MODX 2.8.0.
PHP 7.4.
Windows 7, 10.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue in the code or project, which should be addressed.needs-backportIssues that need to be backported to the previous maintenance version.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions