Skip to content

filemtime() error after deleting or renaming a stylesheet #9

@ericpedia

Description

@ericpedia

After renaming some theme files, I started to get this error on all pages:

Warning: filemtime() [function.filemtime]: stat failed for /path/to/myOldStylesheet.scss in /path/to/wp-sass.php on line 119

The stylesheet that the warning refers to has been deleted (or it's name has been changed), but its cached version is still present in the WP-SASS cache folder.

The warning refers to this line of code:

    // parse if we need to
    if ( empty( $full_cache[ 'css' ] ) || filemtime( $sass_path ) > $full_cache[ 'updated' ] || $full_cache[ 'root' ] != dirname( __FILE__ ) ) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions