Skip to content

А static element can't be saved #15927

@sergant210

Description

@sergant210

Bug report

Summary

А static element can't be saved.

Step to reproduce

Create a snippet, check the "Is static" checkbox and try to save it.

Observed behavior

static element

And I got an error message in the log

[2021-12-04 07:50:33] (ERROR @ C:\Projects\modx3.local\core\src\Revolution\Sources\modMediaSource.php : 562) Unable to retrieve the last_modified for file at location: C:/Projects/modx3.local/core/components/pdotools/elements/snippets/snippet.pdoresources.php. filemtime(): stat failed for C:\Projects\modx3.local\C:/Projects/modx3.local/core/components/pdotools/elements/snippets/snippet.pdoresources.php

There is invalid file path - C:\Projects\modx3.local\C:/Projects/modx3.local/core/components/pdotools/elements/snippets/snippet.pdoresources.php.

Environment

MODX3 Beta 2.
Windows 10.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue in the code or project, which should be addressed.urgentThe issue requires attention and has higher priority over others.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions