GET
/wp-content/wp-includes/js/mediaelement/bigplay.svg [HTTP/1.1 404 Not Found 28ms]
11:32:03.603 GET
/wp-content/wp-includes/js/mediaelement/controls.svg [HTTP/1.1 404 Not Found 35ms]
11:32:03.789 GET
/wp-content/wp-includes/js/mediaelement/loading.gif
Hi! The paths to wp-includes are whong for MediaElement.
How I can fix it?
Hey guys,
when activating your plugin, the following message is popping up in the browser:
Warning: mkdir(): Permission denied in …/wp-content/plugins/assetsminify/src/AssetsMinify/Cache.php on line 41
Warning: Cannot modify header information – headers already sent by (output started at …/wp-content/plugins/assetsminify/src/AssetsMinify/Cache.php:41) in …/wp-includes/pluggable.php on line 1207
i have set the chmod to 777 in those directories
Thanks a lot!
]]>Receiving the error, “Call to a member function getPath() on a non-object in […My proj file path…]\plugins\assetsminify\src\AssetsMinify\Assets\Css\Scss.php on line 32”.
This started happening once I began using Compass and tried to enter its folder path into “Compass Compiler’s Path” input field in the plugin configuration screen.
Can it not handle Windows File paths? Is that the problem?
]]>I love this plugin don’t get me wrong but I’m getting the following 404 error message which is from gtmetrix.com
The following requests are returning 404/410 responses. Either fix the broken links, or remove the references to the non-existent resources.
]]>Hi,
I’m trying to use this plugin to minify all my scripts / css files on my website. But it does not seem to work well when using it with a child theme and overriding some css/js files from the parent theme.
I used dequeue functions to remove parent scripts/css files to replace them with my child theme ones but the result looks like a mix between the original theme and my child theme !
Any idea ?
]]>Warning: require_once(__DIR__/composer/autoload_real.php) [function.require-once]: failed to open stream: No such file or directory in …(path)*/wp-content/plugins/assetsminify/vendor/autoload.php on line 5
Fatal error: require_once() [function.require]: Failed opening required ‘__DIR__/composer/autoload_real.php’ (include_path=’.:/php/includes:/usr/local/lib/php:/usr/local/php/lib/php’) in …(path)*/wp-content/plugins/assetsminify/vendor/autoload.php on line 5
*(path) = the path on my server to the WP folder
]]>Hi there,
I’ve installed AssetsMinify plugin on my online server, where I’ve also installed a theme based on Underscores.
My purpose was to editing style.scss locally, uploading it, so that it could be compiled to style.css by a wp plugin.
Is this plugin intended for doing this or does the compass functionality work only locally?
Thanks in advance,
s
]]>The scss files don’t get compiled and neither are the javascript files minified. Unfortunately, I can’t check the server log at the moment.
]]>doesn’t work after update
logs:
[20-Apr-2015 08:16:39 UTC] PHP Warning: preg_replace_callback(): Requires argument 2, ”, to be a valid callback in /home/site/public_html/wp-content/plugins/assetsminify/vendor/leafo/scssphp/src/Compiler.php on line 2028
[20-Apr-2015 08:16:39 UTC] PHP Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /home/site/public_html/wp-content/plugins/assetsminify/vendor/kriswallsmith/assetic/src/Assetic/Util/CssUtils.php on line 109
[20-Apr-2015 08:11:39 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/elss/public_html/wp-content/plugins/assetsminify/src/AssetsMinify/Assets/Js.php on line 92
— that I fix with if($this->assets[$where]) {
….
I’m using a manifest scss file to import multiple scss files in a file called application.scss to sort of mimic an asset pipeline.
@import "variables";
@import "theme";
@import "responsive";
...
then i have this in functions.php
wp_register_style( 'application', get_stylesheet_directory_uri() . '/scss/application.scss' );
If i make a change to, for example “theme”, i have to clear the cache in the plugin admin to recompile. Is there any way for the plugin to detect changes in the imported scss files. I know its not a big deal but coming from the the rails world scss changes are detected automatically.
Thanks.
]]>Scss compiler gives errors when coming across place holder selectors such as %clearfix{…}
If i replace the complier from this plugin with the one from https://leafo.net/scssphp/ fixes the issue (which is an older version)
Is there a way to specify the version of the compiler without modifying the plugin?
]]>hey guys:
AssetsMinify LOOKED like a neat little tool; it definitely was shaving requests from [ redacted ], even with the style caching disabled (had to; it completely borked our theme … as you warned it might … good job!)
Problem is, it also kills our slider. Nav arrows are gone, automatic slider functionality is gone. We get only a static page with AM running.
Any ideas how/if this can be resolved? I kinda get why it’s happening, but I also kinda can’t do that to the site!
Thanks
]]>As soon as plugin was installed, my mobile site only shows this error:
Fatal error: Call to private method CSSmin::minify() from contest ascetic\filter\cssminfilter’ in /home/Serina81/public_html/flipflopranch.com/wp-content/plugins/assetsminify/lib/assetic/filter/CssMinFilter.php on line 72
Any ideas?
]]>I added the patch against 1.2.3. here as I couln’t find another way of providing the patch. The WP community doesn’t seem to have a process for it, except for WP core.
diff --git a/AssetsMinifyInit.php b/AssetsMinifyInit.php
index 589c9ee..f1a5a48 100644
--- a/AssetsMinifyInit.php
+++ b/AssetsMinifyInit.php
@@ -299,7 +299,7 @@ class AssetsMinifyInit {
//Saves the asseticized stylesheets
if ( !$this->cache->has( "head-{$mtime}.css" ) ) {
- $cssDump = str_replace('../', '/', $this->css->createAsset( $this->styles, $this->cssFilters )->dump() );
+ $cssDump = $this->css->createAsset( $this->styles, $this->cssFilters )->dump();
$cssDump = str_replace( 'url(/wp-', 'url(' . site_url() . '/wp-', $cssDump );
$cssDump = str_replace( 'url("/wp-', 'url("' . site_url() . '/wp-', $cssDump );
$cssDump = str_replace( "url('/wp-", "url('" . site_url() . "/wp-", $cssDump );
@@ -386,7 +386,12 @@ class AssetsMinifyInit {
//If CSS stylesheets have been updated compile and save them
if ( !$this->cache->has( "styles-{$mtime}.css" ) )
- $this->cache->set( "styles-{$mtime}.css", $this->css->createAsset( $this->styles, array( 'CssRewrite' ) )->dump() );
+ $this->cache->set( "styles-{$mtime}.css", $this->css->createAsset( $this->styles, array( 'CssRewrite' ), array(
+ 'root' => array(
+ WP_CONTENT_DIR
+ ),
+ 'output' => 'uploads/am_assets/*'
+ ) )->dump() );
//Adds CSS compiled stylesheet to normal css queue
$this->styles = array( 'styles-am-generated' => $this->assetsPath . "styles-{$mtime}.css");
]]>
I’ve stumbled upon a longstanding bug in CSSMin.php regarding @keyframe rules, resulting in invalid CSS code after minification. Here’s a patch:
--- CssMin.php.old 2014-07-31 23:54:20.988623978 +0200
+++ CssMin.php 2014-08-01 00:13:01.920546691 +0200
@@ -465,7 +465,7 @@
}
elseif ($class === "CssAtKeyframesStartToken")
{
- $r[] = $indent . "@keyframes \"" . $token->Name . "\"";
+ $r[] = $indent . "@keyframes " . $token->Name . "";
$r[] = $this->indent . $indent . "{";
$level++;
}
@@ -1840,7 +1840,7 @@
}
elseif ($class === "CssAtKeyframesStartToken")
{
- $r[] = $indent . "@keyframes \"" . $token->Name . "\" {";
+ $r[] = $indent . "@keyframes " . $token->Name . " {";
$level++;
}
elseif ($class === "CssAtMediaStartToken")
@@ -3325,7 +3325,7 @@
public function apply(array &$tokens)
{
$r = 0;
- $transformations = array("-moz-keyframes", "-webkit-keyframes");
+ $transformations = array("-moz-keyframes", "-webkit-keyframes", "-o-keyframes", "-ms-keyframes");
for ($i = 0, $l = count($tokens); $i < $l; $i++)
{
if (get_class($tokens[$i]) === "CssAtKeyframesStartToken")
@@ -4435,7 +4435,7 @@
*/
public function __toString()
{
- return "@" . $this->AtRuleName . " \"" . $this->Name . "\"{";
+ return "@" . $this->AtRuleName . " " . $this->Name . "{";
}
}
@@ -4574,6 +4574,23 @@
$this->parser->clearBuffer();
return $index + 15;
}
+ // Start of @keyframes at-rule block (@-ms-keyframes)
+ else if ($char === "@" && $state === "T_DOCUMENT" && strtolower(substr($this->parser->getSource(), $index, 14)) === "@-ms-keyframes")
+ {
+ $this->atRuleName = "-ms-keyframes";
+ $this->parser->pushState("T_AT_KEYFRAMES::NAME");
+ $this->parser->clearBuffer();
+ return $index + 14;
+ }
+ // Start of @keyframes at-rule block (@-o-keyframes)
+ else if ($char === "@" && $state === "T_DOCUMENT" && strtolower(substr($this->parser->getSource(), $index, 13)) === "@-o-keyframes")
+ {
+ $this->atRuleName = "-o-keyframes";
+ $this->parser->pushState("T_AT_KEYFRAMES::NAME");
+ $this->parser->clearBuffer();
+ return $index + 13;
+ }
+
// Start of @keyframes at-rule block (@-webkit-keyframes)
elseif ($char === "@" && $state === "T_DOCUMENT" && strtolower(substr($this->parser->getSource(), $index, 18)) === "@-webkit-keyframes")
{
]]>
When I enqueue styles the combined file always results in a media type screen,projection, regardless of what I specify in wp_register_style. I am trying to enqueue a style sheet for printing but it gets ignored.
Something I can do?
thanks
]]>Built-in scripts (added in wp-includes/scripts-loader.php) for example this:
$scripts->add( 'jquery-ui-core', '/wp-includes/js/jquery/ui/jquery.ui.core.min.js', array('jquery'), '1.10.3', 1 );
should be printed in footer (last argument: 1) and this works fine when I don’t use AssetsMinify. But when I activate AM I can see them being printed in header. I’ve made some search and found the potential problem. In AssetsMinifyInit.php near line 187 there is a check:
if ( empty($wp_scripts->registered[$handle]->extra) )
and this is ok for scripts being enqueued by user but not built-in scripts I think. I’ve printed out $wp_scripts before that line and I can see that built-in scripts have ‘extra’ attribute set to empty instead they have ‘args’ attribute set to ‘1’. So my conclusion is to modify the above conditional to this:
if ( empty($wp_scripts->registered[$handle]->args) && empty($wp_scripts->registered[$handle]->extra) )
.
Hi there, basically the title describes it all. If I deactivate the option “Compress Styles”, my scss files won’t get converted to css anymore. Can you check?
And, of course, many thanks for this nice plugin!
]]>Unfortunately, the plugin is still broken with SSL. For example, see my blog https://mundschenk.at vs. https://mundschenk.at.
]]>Plugin has hardcoded “async” attribute for script tag in function footerServe() and when I want to call a function from minified asset (right after minified asset script tag)
<script async="" src="https://xyz/wp-content/uploads/am_assets/foot-63d925416ac7d2177826e375e86529d2.js" type="text/javascript">
<script type="text/javascript">
functionCall();
</script>
I get an error about that the function is undefined.
When I’ve removed async attribute from script tag every thing worked fine. Please add some option or a filter to give possibility to modify this behaviour.
]]>Hi,
1.
I′m testing your Plugin just for my Javascript. It seems that it works fine but how can I config it to use it with MaxCDN?
I have a pullzone and it works good with my pictures in the uploads-folder but it don′t work with the resulted scripts from AssetsMinify inside uploads/am_assets.
For CSS I use another plugin, because I can insert there all css-files without issues (I don′t know why, but with your plugin I have to exclude 4 css-files, and that means more queries).. This plugin uses: domain.de/my-wp-content/cache/pluginname/file.css
CDN works fine with this css, it works also fine with the excluded js-files in the plugin-folders (I must exclude 3 js-files to unbreak my site )
(For a better security I renamed my wp-content folder)
2.
For future releases it would be very fine to become the possibility to include external files in the minified scripts.. ??
Hope this questions are not to silly, I′m just a semi-pro..
Best regards
]]>Hi,
Is it currently possible with this plugin to run sass on individual files without minifying?
What I’m trying to achieve is to not compress files locally so it’s easy to debug styling but minify on the live site so that it benefits from less requests.
If the plugin options could be set using a wp-config param then this would be achievable.
Aside, great plugin – nice work!
]]>The plugin appears to be working, it’s compressing js and most css files, but I’m having trouble excluding all the nextgen gallery scripts, so I’m probably doing something wrong?
I checked the source, found 12 links to css and js files (I know right?! way too many…) and pasted those links line by line into the box where it says Resources to exclude (removed the version numbers that appear to be added on dynamically). But those scripts are still being compressed.
I used the actual links from the source code, so the full URLs, was that the wrong way to add those?
]]>I’m using Windows 7 / WP 3.6 / DesktopServer – In my AssetsMinify configuration in admin section I have:
Compass compiler’s path: c:\Ruby200x64\bin\compass
In my header.php page I added:
<?php
wp_enqueue_style( ‘screen’, get_template_directory_uri() . ‘/sass/screen.scss’ );
?>
<?php wp_head(); ?>
It adds screen.scss to my wordpress page – but it does not compile the “/sass/screen.scss” file.
There are no error messages – Please help
]]>I know plugin is no supported for 3.6 but just want to tell that when I test speed with google speed test I get’s 96. Only problem is that in browser I don’t see pages. Google sasy that CSS and Javascript are minifed.
]]>Hi, first of all thank you for this nice and clean plugin!
I’ve run into an issue with the plugin in that it doesn’t seem to work for css merging and minifying in SSL context.
I am on plugin version 1.2.1 and wordpress version 3.6
you can see for yourself on http(s)://www.mind-it.info/
any further information I need to supply please let me know?
]]>totally messed up woo commerce website
missing thumbnails
tabs stopped working
cart stopped working
not sure how to get it all back now
]]>I like the plugin, but it doesn’t seem to properly output CSS assets in SSL. To double check, I tried other minify plugins and on SSL pages the css assets were properly output as https. Using AssetMinify they’re output as http and won’t display. JS assets output correctly in https.
]]>Im trying to test this out but sadly find the configuration instructions lacking.
Would it be possible for you to do a short screencast of the setup process og maby expanding the guide a bit?
If i get this thing to work i think it could be a huge timesaver.
]]>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.
]]>