• edcs

    (@edcs)


    Recently just started using W3TC again after the recent updates – looking good so far, but unfortunately Minify is causing me grief again. I’m getting the following error message with it enabled:

    Recently an error occurred while creating the CSS / JS minify cache: No sources to serve.

    When I go to the Minify URL (Just testing with JS files at the moment), I get the following error message:

    HTTP/1.0 400 Bad Request

    If I turn on WP_DEBUG I get no further information. I’ve got W3TC running on a Multisite installation of WordPress so I have no option to select which files get Minified manually. I assume the plugin finds files using wp_enqueue_script() and wp_enqueue_style() so perhaps I’m doing something wrong when defining those in my custom themes?

    https://www.ads-software.com/extend/plugins/w3-total-cache/

Viewing 15 replies - 31 through 45 (of 47 total)
  • I’ve resorted to turning minify off and using the wp-minify plugin instead

    Same issue. ??

    I have the same issue as well, my site that is not in a subfolder has it, and my site in a subfolder root does not.

    Same here:

    Unfortunately, an error occurred while creating the minify cache.

    A year ago the Author for this plugin said it would be fixed. So what’s going on? Why is this still an issue?

    looks like anybody fixed the issue, we are experiencing the same issue in paginasweb.pe, i dont understand, i have unable, disable, unistall, install it again, clean up DB, etc, maybe its a conflict with another plugin, we just need to find out which one

    I disabled Minify months ago because the problem would not get fixed, version after version of W3TC. About month ago, I re-enabled it and the problem persisted.

    So i disabled minify, but now I am getting the “error occurred while creating the minify cache” emails, with **MINIFY DISABLED**, even after emptying the page cache.

    There are so many threads on this topic around the web that it becomes hard to find help for your version/situation

    So how do I make these errors go away? I don’t even care if I use minify at this point – I will leave it disabled.

    WP 3.7.1
    W3TC 0.9.3

    +1

    Any updates on this? I am having the same issue.

    +1

    I’m having the same issue. The warning I’m getting is Recently an error occurred while creating the CSS / JS minify cache: File "xxxxx/wp-content/themes/js/somefile.js" doesn't exist. If you notice, the name of my (genesis child) theme is missing from the path. The files that give me the warning have never existed in this location.

    Even before this error started, JS and CSS files were minifying and combining; but the old calls to the individual JS and CSS files weren’t getting removed.

    So far I’ve tried:

    • Removing the plugin and re-installing. This changed the name of the file that was giving me the error. However, the theme was still missing from the path.
    • I tried Import Configuration on the re-installed plugin.
    • I tried doing a Restore Default Settings config reset. Somehow the previous JS and CSS file settings were still remembered after Restore Default Settings.
    • I did a file text search on the entire plugin directory for the bad path and didn’t find it.
    • I found the configuration file (../cache/config/master.php)and could not find any bad paths inside.
    • I removed the plugin and the deleted the plugin directory which held the configuration file.
    • With the plugin removed I also searched the site database for the bad path but didn’t find it there either.
    • When I re-installed W3TC, somehow the previous settings were remembered even though I deleted all of the files.
    • I disabled JS and CSS Minify in W3TC. Even with only HTML Minify enabled, I still get the error to the JS file above.

    Wow, that’s interesting. I didn’t think of uninstalling and reinstalling. I found this guys directions for uninstalling. I will try this myself a little later, in the middle of something now. But if you want to try it.

    proper/”>https://journalxtra.com/websiteadvice/wordpress/uninstall-w3-total-cache-proper/

    Thanks @tippy!

    Thanks to your help I found the zombie configuration. The issue was that I assumed the entire W3TC install would be in one subfolder and didn’t look hard enough. I found the file with the bad path at /wp-content/w3tc-config/master.php.

    Using those instructions in https://journalxtra.com/websiteadvice/wordpress/uninstall-w3-total-cache-proper/ I was able to clean it out completely. When I opened it again the Recently an error occurred while creating the CSS / JS minify cache: File "xxxxx/wp-content/themes/js/somefile.js" doesn't exist. issue was gone. I think I corrupted the configuration by having multiple W3TC plugin windows open at once when clearing caches and optimizing the configuration.

    Before I did anything else, I checked Minify. The problem persisted that the CSS and JS files were minified and added in the correct spots on the page, but the references to the original files weren’t removed. Now the HTML Minify is completely non-functional too. I disabled the Minify part and am using two different plugins for CSS and JS to duplicate the functionality of W3TC > Minfy.

    Thanks again for your help @tippy!

    Oh, I forgot about this. I get sidetracked easily. So the uninstall/reinstall was needed? What 2 different plugins are you using?

    At the moment I’m using Async JS and CSS for CSS. In addition to minification and file combination, it has options to include the CSS the normal way, inline in the header or footer, or deferring CSS loading using javascript.

    The method that showed the best Page Speed results for me was to include CSS inline in the footer. My Genesis based CSS was so large it caused too much blocking in the header. To prevent a flash of unstyled text I put some CSS inline in the header to set the background color and push the text off the page during loading. <style rel='stylesheet'type='text/css'/>html{margin:-9999px;} body{background-color:#1E2F2C;}</style> I wish I could give credit to the guy who gave me that idea but I don’t have the link anymore.

    For JS minification only I’m using Better WordPress Minify. I hacked the PHP to add “async” to all the scripts (https://www.ads-software.com/support/topic/asynchro-loading-for-script?replies=12). Apparently the async option will be included in the next plugin version.

    It has options to move the scripts between the header and footer, minify but include them separately, or to not minify them at all. Because I hacked the code to add async, the last two options give me the flexibility to load scripts blocking or asynchronously. Since jQuery an many other scripts are already minified, having BWP-Minify ignore them just removed “asynch” with no file size penalty. This gave me a lot of flexibility to optimize JS loading.

Viewing 15 replies - 31 through 45 (of 47 total)
  • The topic ‘Recently an error occurred while creating the CSS / JS minify cache:’ is closed to new replies.