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

Error en WP-SCSS #133

Closed
ana-paris opened this issue Jan 23, 2020 · 4 comments
Closed

Error en WP-SCSS #133

ana-paris opened this issue Jan 23, 2020 · 4 comments

Comments

@ana-paris
Copy link

Hola, estoy creando este comentario debido a que mi plantilla comenzó a generar un error que no he podido solucionar, el proyecto está alojado en mi servidor local o localhost, este es el error que muestra:

Sass Compiling Error
C:\xampp\htdocs\prueba/wp-content/plugins/wp-scss/cache/
"File Permission Error, permission denied. Please make the cache directory writable."

C:\xampp\htdocs\prueba/wp-content/plugins/wp-scss/cache/
"File Permission Error, permission denied. Please make the cache directory writable."

C:\xampp\htdocs\prueba/wp-content/plugins/wp-scss/cache/
"File Permission Error, permission denied. Please make the cache directory writable."

@ana-paris
Copy link
Author

Gracias por el apoyo que me puedan dar, mi plantilla es dotdigital

@andreyc0d3r
Copy link
Contributor

this error appears when /cache doesn't exist, I didn't look at the source code yet, but temporary you can create the folder manually

@yura-x
Copy link

yura-x commented Mar 31, 2020

As far as we waiting merging this pull request
you can try to use following action inside your theme/functions.php:

add_action( 'activate_wp-scss/wp-scss.php', 'PREFIX_action_create_cache_folder_to_wp_scss_plugin' );
if( ! function_exists( 'PREFIX_action_create_cache_folder_to_wp_scss_plugin' ) ) :
	function PREFIX_action_create_cache_folder_to_wp_scss_plugin() {
		$fs = WP_Filesystem();
		if( ! $fs ) {
			return;
		}
		global $wp_filesystem;
		if( ! $wp_filesystem->is_dir( WP_PLUGIN_DIR . '/wp-scss/cache' ) ) {
			$wp_filesystem->mkdir( WP_PLUGIN_DIR . '/wp-scss/cache' );
		}
	}
endif;

It creates a cache directory if it does not exists

@shadoath
Copy link
Collaborator

shadoath commented Feb 8, 2021

PR merged and plugin updated.

@shadoath shadoath closed this as completed Feb 8, 2021
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

4 participants