• Resolved turbodb

    (@turbodb)


    I just installed the plugin hoping to merge and minify all of my JS and CSS to improve (reduce) the number of requests per page.

    With default settings, it definitely merges the files (I can see them in the cache), however, the generated HTML for the page is incorrect.

    On the settings page, there is a textbox for the URL for the cache location, used to generate the base part of the path for the HTML page. I noticed that the “default” value omits the domain name, and when I manually added the domain name, it was ignored.

    I’ve posted an image here, which shows what I describe above. How should I proceed? For now, I’ve disabled the plugin.

    View post on imgur.com

    Thanks
    turbodb

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Raul P.

    (@alignak)

    Hello,

    That could be because your server is not a linux server.
    You are using windows, which may or may not work with some plugins.

    If you cannot set the cache path on the plugin, something could be preventing it on the server, or wp-config.php

    I haven’t tested the plugin on windows, although it should be working as I know some people are using it without issues.

    I suggest changing your server to a linux server for wordpress, not only because that’s the most commonly used but also because linux is usually more secure.

    Check if your file path is being forced on your wp-config.php

    I’ll need to do some testing on windows, but at the moment it’s not a big priority because very few people uses it with wordpress sites. Sorry.

    Thread Starter turbodb

    (@turbodb)

    Yes, I’m running on Windows in Azure.

    It looks to me like the files are being generated in the correct location (in wp-content/uploads/cache/fvm), it’s just that whatever code generates the URL to include in the HTML page doesn’t get the path correct(ly).

    Is there a centralized function where I can hardcode the return value to the appropriate path (https://adventuretaco.com/wp-content/uploads/ to “make it work?”

    I understand that in doing that, I’d have to do it every time I updated the plugin as well…

    Thanks!

    Plugin Author Raul P.

    (@alignak)

    Sorry for the late reply, I am a bit busy at the moment.

    I can probably add some check for windows paths… but for the moment, the cache path is defined on inc/functions-cache.php under the fvm_cachepath() function.

    But the issue is the forward slash which is also used in other sections.
    I would have to add checks to see if it’s windows and replace them (will do later).

    Plugin Author Raul P.

    (@alignak)

    I have improved compatibility with windows servers on the next update, though it’s still untested. Feel free to test and see if it works, on the next update. Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘URL to generated CSS/JS is not correct, and configuration setting does not work’ is closed to new replies.