Title: Plugin not working. Script contains html content
Last modified: August 21, 2016

---

# Plugin not working. Script contains html content

 *  Resolved [ideedereclama](https://wordpress.org/support/users/ideedereclama/)
 * (@ideedereclama)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-working-script-contains-html-content/)
 * 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://wordpress.org/plugins/bwp-minify/](https://wordpress.org/plugins/bwp-minify/)

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

 *  Plugin Author [Khang Minh](https://wordpress.org/support/users/oddoneout/)
 * (@oddoneout)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-working-script-contains-html-content/#post-5076437)
 * 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](https://wordpress.org/support/users/ideedereclama/)
 * (@ideedereclama)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-working-script-contains-html-content/#post-5076543)
 * Hi, I meant combine not concatenate, sorry for that. Here is a link to the website
   [http://bit.ly/1kGQg5t](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](https://wordpress.org/support/users/oddoneout/)
 * (@oddoneout)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-working-script-contains-html-content/#post-5076545)
 * 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](https://wordpress.org/support/users/ideedereclama/)
 * (@ideedereclama)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-working-script-contains-html-content/#post-5076553)
 * 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](https://wordpress.org/support/users/oddoneout/)
 * (@oddoneout)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-working-script-contains-html-content/#post-5076558)
 * 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](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.

 * ![](https://s.w.org/plugins/geopattern-icon/bwp-minify.svg)
 * [Better WordPress Minify](https://wordpress.org/plugins/bwp-minify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bwp-minify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bwp-minify/)
 * [Active Topics](https://wordpress.org/support/plugin/bwp-minify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bwp-minify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bwp-minify/reviews/)

## Tags

 * [content](https://wordpress.org/support/topic-tag/content/)
 * [script](https://wordpress.org/support/topic-tag/script/)

 * 5 replies
 * 2 participants
 * Last reply from: [Khang Minh](https://wordpress.org/support/users/oddoneout/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-working-script-contains-html-content/#post-5076558)
 * Status: resolved