• Resolved ideedereclama

    (@ideedereclama)


    The BWP Minify plugin works great on my local machine but on the live server it crashes. I noticed that the generated script tag in the footer contains the html content of my front page. If i choose only to minify and not to concatenate scripts everything works also on live server.

    Also, the following error i get in Firebug “SyntaxError: syntax error <!doctype html>”

    This is what it looks like:

    <script src="http://www.example.com/wp-content/plugins/bwp-minify/min/?f=wp-content/themes/example/js/jquery.freetile.js,wp-content/themes/example/js/sequence.jquery-min.js,wp-content/themes/example/js/jquery.uniform.min.js,wp-content/themes/example/js/jquery.prettyPhoto.js,wp-content/themes/example/js/jquery.scrollToFixed.min.js,wp-content/themes/example/js/jquery.noty.packaged.min.js,wp-content/themes/example/js/spin.min.js,wp-content/themes/example/js/jquery.spin.js,wp-content/themes/example/js/klass.class.js,wp-content/themes/example/js/spNoty.class.js,wp-content/themes/example/js/sequence.js,wp-content/themes/example/js/cleanup.js,wp-content/themes/example/js/scripts.js,wp-content/themes/example/js/spLoader.class.js,wp-content/themes/example/js/spUtils.class.js,wp-content/themes/example/js/spCustomers.class.js,wp-content/themes/example/js/spBookings.class.js,wp-content/themes/example/js/spMap.class.js,wp-content/themes/example/js/spWeather.class.js,wp-content/themes/example/js/infobox.js" type="text/javascript"></script>

    https://ww.wp.xz.cn/plugins/bwp-minify/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Khang Minh

    (@oddoneout)

    Can I have a link to the live server to check things out? Are you using a customized min-config file? Are you using version 1.3.0?

    Also, what do you mean by minifying but not concatenating? I don’t think BWP Minify provides that feature.

    Thread Starter ideedereclama

    (@ideedereclama)

    Hi, I meant combine not concatenate, sorry for that. Here is a link to the website http://bit.ly/1kGQg5t . You will see that the checkboxes and dropdown boxes aren’t rendered. This is because the scripts are not combined correctly or something. As I mentioned, this happens only on live server, not on local.

    Plugin Author Khang Minh

    (@oddoneout)

    Try setting the number of files per string to 10 or 7 (go to BWP Minify > One minify string will contain), the live server seems to choke on long urls.

    Plus, you can wait for 1.3.0 to come out and use it instead.

    Thread Starter ideedereclama

    (@ideedereclama)

    Your solution worked, but the reason seems strange. Could this be a server configuration, do you know exactly what config should I change?

    Plugin Author Khang Minh

    (@oddoneout)

    It’s not strange at all. On certain servers if the url is too long the request is rejected. That’s why it works on your local but not on live site (server config is different). It’s recommended to use 10 instead of 20 anyway, for faster minifying.

    Could be this: http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestline

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Plugin not working. Script contains html content’ is closed to new replies.