WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. 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. Frederick Townes
    Member
    Posted 4 years 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. Thx, it works now.

  4. masterbassie
    Member
    Posted 4 years 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. 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 4 years 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. Frederick Townes
    Member
    Posted 4 years 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 4 years 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. Frederick Townes
    Member
    Posted 4 years 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 4 years 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. Frederick Townes
    Member
    Posted 4 years 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 4 years 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. Frederick Townes
    Member
    Posted 4 years ago #

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

  14. masterbassie
    Member
    Posted 4 years ago #

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

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

  15. Frederick Townes
    Member
    Posted 4 years 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 4 years 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 4 years 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. Frederick Townes
    Member
    Posted 4 years 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.

  19. masterbassie
    Member
    Posted 4 years ago #

    @fredericktownes, i'm probably going to be moving from bluehost (although they are quite good) as they don't offer memcache or APC that will work with my current setup.

    do recommend any particular host that you've found works well for w3tc? i was looking at dreamhost unless you know of any problems with them...

    thanks in advance

  20. Frederick Townes
    Member
    Posted 4 years ago #

    Unfortunately, I'd have to report you are the first I've spoke to use the word "good" in the same sentence as "bluehost". If you email me directly I can endorse a host in a more personal way. W3TC has been tested on many popular hosts and has worked in all cases.

  21. masterbassie
    Member
    Posted 4 years ago #

    haha, ok.. slight hiccup, whats your email address or would you like me to use the contact form on w3-edge?

  22. Frederick Townes
    Member
    Posted 4 years ago #

    Contact form please.

Topic Closed

This topic has been closed to new replies.

About this Topic