WPIntell

Source evidence

AssetsMinify activated but not working

AssetsMinify · support · 2013-05-09T09:19:00+00:00

mixedsentiment
highseverity
0.95relevance
11replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 25 rows with source links

20.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

20 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Jacques Letesson resolved
Hi there, I installed and activated AssetsMinify then I enqueue some style like that : function loadStyle() { wp_enqueue_style( 'main', get_template_directory_uri() . '/assets/scss/main.scss' ); } add_action('wp_enqueue_scripts', 'loadStyle'); However, the scss file is not compiled and I got no error message even with WP_DEBUG set to true. Any help would be much appreciated. Cheers, J. http://wordpress.org/extend/plugins/assetsminify/ Hi, do you see some error within your error_log file? The only relevant error that I see in the log is this : File does not exist: /var/www/vhosts/jacquesletesson.com/httpdocs/client/bea/wp-admin/client, referer: http://www.jacquesletesson.com/client/bea/wp-admin/options-general.php?page=assets-minify In fact, it’s because I clicked the button Empty AssetsMinify’s Cache I even tried with only scripts like that : function registerScripts() { wp_enqueue_script( 'modernizr', get_template_directory_uri() . '/assets/js/vendor/custom.modernizr.js', array(), '1.0', false ); wp_enqueue_script( 'responsive-nav', get_template_directory_uri() . '/assets/js/responsive-nav.min.js', array('jquery-new'), '1.0', true ); wp_enqueue_script( 'responsive-tabs', get_template_directory_uri() . '/assets/js/responsiveTabs.js', array('jquery-new'), '1.0', true ); wp_enqueue_script( 'tiny-nav', get_template_directory_uri() . '/assets/js/tinynav.min.js', array('jquery-new'), '1.0', true ); wp_enqueue_script( 'fit-vids', get_template_directory_uri() . '/assets/js/jquery.fitvids.min.js', array('jquery-new'), '1.0', true ); wp_enqueue_script( 'ss-icons', get_template_directory_uri() . '/assets/webfonts/ss-symbolicons.js', array('jquery-new'), '1.0', true ); wp_enqueue_script( 'main', get_template_directory_uri() . '/assets/js/main.js', array('jquery-new'), '1.0', true ); wp_enqueue_script( 'jquery-new', '//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js', array(), '1.0', true ); } add_action( 'wp_enqueue_scripts', 'registerScripts'); The folder uploads is set to 777 and the am_assets folder has been created but nothing inside. I deactivated all the plugins that I use but it doesn’t change anything. Did you choose the “Use Compass” setting from the admin? Are the files enqueued using “registerScripts” included in the page? Is the file “/assets/scss/main.scss” included in the page (but it is simply not compiled to css)? I tried both with and without using compass. Yeah the files that I enqueued using registerScripts are included in the page… Yes main.scss is included in the page but it’s not compiled like it should. Thanks for your time and patience. Maybe there’s some mistake within main.scss. You can try to debug it: remove temporarily blocks of code until it is compiled. Let me know Alessandro, Even when I do not enqueue main.scss, the plugin doesn’t seem to compile all my JS files as it should. So right now, I’m a little bit lost… When I click on “Empty AssetsMinify’s Cache” I got : http://mysite.com/client/xxx/wp-admin/client/xxxoptions-general.php?page=assets-minify&empty_cache -> Page Not Found. I don’t understand why the plugin adds client/xxx after wp-admin/ Cheers, Hi, I’ve probably found that the issue is due to the subdirectory installation. So I’ve done some updates to the plugin code. You can try the updated version from the plugin’s github page Download it and try it on your WP installation. Let me know if the issue is now resolved. It works now ! Thank you for the update. hi, chmod 777 but is very dangerous, it should not have chmod it is almost an open door for hackers. 755 not enough? Hi, It already depends on your server configuration and users settings on the server. WordPress writes the cached files, so if you have set the chmod 755 on uploads and WP can uploads images within this directory, it should also write cached files of AssetsMinify. Bye

Comments

11 shown
Alessandro Carbone 2013-05-09T09:21:00+00:00

Hi, do you see some error within your error_log file?

Jacques Letesson 2013-05-09T10:07:00+00:00

The only relevant error that I see in the log is this : File does not exist: /var/www/vhosts/jacquesletesson.com/httpdocs/client/bea/wp-admin/client, referer: http://www.jacquesletesson.com/client/bea/wp-admin/options-general.php?page=assets-minify In fact, it’s because I clicked the button Empty AssetsMinify’s Cache I even tried with only scripts like that : function registerScripts() { wp_enqueue_script( 'modernizr', get_template_directory_uri() . '/assets/js/vendor/custom.modernizr.js', array(), '1.0', false ); wp_enqueue_script( 'responsive-nav', get_template_directory_uri() . '/assets/js/responsive-nav.min.js', array('jquery-new'), '1.0', true ); wp_enqueue_script( 'responsive-tabs', get_template_directory_uri() . '/assets/js/responsiveTabs.js', array('jquery-new'), '1.0', true ); wp_enqueue_script( 'tiny-nav', get_template_directory_uri() . '/assets/js/tinynav.min.js', array('jquery-new'), '1.0', true ); wp_enqueue_script( 'fit-vids', get_template_directory_uri() . '/assets/js/jquery.fitvids.min.js', array('jquery-new'), '1.0', true ); wp_enqueue_script( 'ss-icons', get_template_directory_uri() . '/assets/webfonts/ss-symbolicons.js', array('jquery-new'), '1.0', true ); wp_enqueue_script( 'main', get_template_directory_uri() . '/assets/js/main.js', array('jquery-new'), '1.0', true ); wp_enqueue_script( 'jquery-new', '//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js', array(), '1.0', true ); } add_action( 'wp_enqueue_scripts', 'registerScripts');

Jacques Letesson 2013-05-09T11:54:00+00:00

The folder uploads is set to 777 and the am_assets folder has been created but nothing inside. I deactivated all the plugins that I use but it doesn’t change anything.

Alessandro Carbone 2013-05-12T16:11:00+00:00

Did you choose the “Use Compass” setting from the admin? Are the files enqueued using “registerScripts” included in the page? Is the file “/assets/scss/main.scss” included in the page (but it is simply not compiled to css)?

Jacques Letesson 2013-05-13T17:51:00+00:00

I tried both with and without using compass. Yeah the files that I enqueued using registerScripts are included in the page… Yes main.scss is included in the page but it’s not compiled like it should. Thanks for your time and patience.

Alessandro Carbone 2013-05-14T11:26:00+00:00

Maybe there’s some mistake within main.scss. You can try to debug it: remove temporarily blocks of code until it is compiled. Let me know

Jacques Letesson 2013-05-14T17:05:00+00:00

Alessandro, Even when I do not enqueue main.scss, the plugin doesn’t seem to compile all my JS files as it should. So right now, I’m a little bit lost… When I click on “Empty AssetsMinify’s Cache” I got : http://mysite.com/client/xxx/wp-admin/client/xxxoptions-general.php?page=assets-minify&empty_cache -> Page Not Found. I don’t understand why the plugin adds client/xxx after wp-admin/ Cheers,

Alessandro Carbone 2013-05-16T19:31:00+00:00

Hi, I’ve probably found that the issue is due to the subdirectory installation. So I’ve done some updates to the plugin code. You can try the updated version from the plugin’s github page Download it and try it on your WP installation. Let me know if the issue is now resolved.

Jacques Letesson 2013-05-18T07:37:00+00:00

It works now ! Thank you for the update.

Anonymous User 12851872 2014-01-07T18:20:00+00:00

hi, chmod 777 but is very dangerous, it should not have chmod it is almost an open door for hackers. 755 not enough?

Alessandro Carbone 2014-01-09T16:48:00+00:00

Hi, It already depends on your server configuration and users settings on the server. WordPress writes the cached files, so if you have set the chmod 755 on uploads and WP can uploads images within this directory, it should also write cached files of AssetsMinify. Bye