Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ericpedia opened this issue Feb 4, 2013 · 2 comments
Open

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

ericpedia opened this issue Feb 4, 2013 · 2 comments

Comments

@ericpedia
Copy link

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__ ) ) {
@roborourke
Copy link
Owner

Ah cheers, I need to add a file exists check in. If you delete the
wp-sass-cache folder in wp-content/uploads it should recompile and go back
to normal.

Robert O'Rourke
sanchothefat.com
+44 7816 329424

@rysan
Copy link

rysan commented Jun 22, 2015

Hey Robert,
I am trying to use this great tool on Wordpress Multi Site, and got similar warning (although rather on line 127) on subsites that have Domain Mapping applied. For sites that have domain mapping, wp-sass creates wp-sass-cache and empty css document inside. Whereas, for subsites that have no domain mapping applied, it generates css document with css rules inside.

The warning refers to this line of code:
$full_cache[ 'updated' ] = filemtime( $sass_path );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants