Forums

[Plugin: W3 Total Cache] JS File Management: (18 posts)

  1. ocean90
    Member
    Posted 4 weeks ago #

    Hi, I again. ;)

    I want to add two oder more JS Files in the footer. But if I click save changes only the last input is saved, a bug?

    Input: http://twitpic.com/na3ip
    After save: http://twitpic.com/na3ml

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. fredericktownes
    Member
    Posted 4 weeks ago #

    Do you have the very latest build installed? You might want to back up your settings file uninstall and pull down the latest build again.

  3. ocean90
    Member
    Posted 3 weeks ago #

    Thx, it works now.

  4. masterbassie
    Member
    Posted 3 weeks ago #

    i'm having the same problem. i un-installed, deleted and re-installed but the problem persists. I am using 2.8.5. I noticed that it only does this when the 'embed' selector is the same. I.E. if one of the js files is 'footer' and the second is 'footer (non-blocking)' they will remain but more than one in any category get stripped.

    Also minify for css seems to (IDK) fail to convert properly. Viewing the default.include.css reveals an assortment of random characters which in turn leads to the css not working on the page.

    any ideas? thx

    ian

  5. ocean90
    Member
    Posted 3 weeks ago #

    masterbassie, a solution for that is, to add the urls manual in the config file in /wp-content/w3-total-cache-config-xxxx.php.

  6. masterbassie
    Member
    Posted 3 weeks ago #

    @ocean90 that seems to work well, thx.

    however i replicated this technique for the header and the js would not load. which made me doubt that the js in the footer was actually loading loading. i found that both the footer and header get "HTTP/1.0 400 Bad Request" which fail to load anything.

    any ideas why this is so?

  7. fredericktownes
    Member
    Posted 3 weeks ago #

    It means that the file you added to settings could not be access to build the cache or you do not have any settings for the requested file name.

  8. masterbassie
    Member
    Posted 2 weeks ago #

    uh ok.. what i got out of that is the file could not be loaded, right? So then that limits the functionality of the combine in header or footer... or are you saying my settings are wrong?

    if so do you have any suggestions for what they should be or which js files should be included in this combine function and which should not?

    thanks in advance

  9. fredericktownes
    Member
    Posted 2 weeks ago #

    Right, try combine only and see how that works. The 400 error only occurs when there are no settings for the requested file type or if there's a "bad" file in the settings causing minify to fail to create the file according to your settings.

  10. masterbassie
    Member
    Posted 2 weeks ago #

    i tried the combine only but the same thing happened. the file itself wp-content/w3tc/default.include-footer-nb.js is not created (if i search for it in the above directory).

    permissions issue?

  11. fredericktownes
    Member
    Posted 2 weeks ago #

    If other files are created then it's not a permissions issue. If the file is not available via the various download methods it will fail. Check the w3tc/log/minify.log

  12. masterbassie
    Member
    Posted 2 weeks ago #

    it says [Mon, 09 Nov 2009 08:09:48 -0700] [/staging/wp-content/w3tc/default.include-footer-nb.js] Unable to download URL:....both files.

    i managed to figure out what was restricting the plugin from downloading the js - this plugin is on my staging site which is in a password protected directory. i took of the password and it loaded.

    problem now is the js seems to not be working. with the combine only function enabled what should 'default.include-footer-nb.js' look like? I would imagine just both js in one file.

    Instead it looks like this'��������;ks�ʒ��_1�n�'. i cleared the cache but it didn't change it. I'm using apc on bluehost if that matters.

    ideas?

  13. fredericktownes
    Member
    Posted 2 weeks ago #

    There's still not enough information. A link to phpinfo(); page?

  14. masterbassie
    Member
    Posted 2 weeks ago #

    http://www.ilivesalsa.com/phpinfo.php

    this isn't the staging site directory but the info should be the same.... i think

  15. fredericktownes
    Member
    Posted 2 weeks ago #

    Bluehost has a lot of anomalies (in my experience). This issue may require a staging site be made available for testing. Are you amenable to that?

  16. litemotiv
    Member
    Posted 1 week ago #

    I'm also having the issue where multiple JS files can't be embedded in the same container (i'm using W3TC 0.8). Two files can be embedded independently without problems, but when i try to embed both simultaneously in the Footer one of them is always purged. Any ideas?

    Other than that, wonderful plugin, this brought Mysql load down from ~300 to ~30 queries/second on our site (and there's still some more optimizing to do). Thanks!

  17. lautr
    Member
    Posted 1 week ago #

    i have the same Problem:

    Everytime i try to enter more then 1 JS File on the same position (footer, header and so on) it just saves one of them (looks like he always saves the one on The Last Position).

    PHP: PHP Version 5.2.6-1+lenny3
    System: Linux h1210500 2.6.26-2-686 #1 SMP Fri Aug 14 01:27:18 UTC 2009 i686
    Wordpress: Version 2.8.6
    W3TC: Version 0.8

    THX!

  18. fredericktownes
    Member
    Posted 1 week ago #

    Sorry all. I'll make sure this is not happening in the upcoming release (due shortly). Meanwhile you can edit your settings file manually if you're so inclined.

Reply

You must log in to post.

About this Topic