Title: can&#039;t insert javascript
Last modified: August 20, 2016

---

# can't insert javascript

 *  [kennyljv](https://wordpress.org/support/users/kennyljv/)
 * (@kennyljv)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/cant-insert-javascript/)
 * Hi,
 * I just installed the latest version of this plugin but I can’t seem to insert
   any javascript code inside. html, php and others seem to be fine. May I know 
   if this is a bug?
 * [http://wordpress.org/extend/plugins/q2w3-inc-manager/](http://wordpress.org/extend/plugins/q2w3-inc-manager/)

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/cant-insert-javascript/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cant-insert-javascript/page/2/?output_format=md)

 *  Plugin Author [Max Bond](https://wordpress.org/support/users/max-bond/)
 * (@max-bond)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/cant-insert-javascript/#post-3582767)
 * Hello!
 * What happens when you try to insert javascript?
 *  Thread Starter [kennyljv](https://wordpress.org/support/users/kennyljv/)
 * (@kennyljv)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/cant-insert-javascript/#post-3582803)
 * Hi,
 * After putting any javascript even just the <script></script> will redirect me
   to this page
 * [http://myblog.com/wp-content/plugins/q2w3-inc-manager/q2w3-table/q2w3_post.php](http://myblog.com/wp-content/plugins/q2w3-inc-manager/q2w3-table/q2w3_post.php)
 * thanks for the help and this is an awesome plugin.
 *  Plugin Author [Max Bond](https://wordpress.org/support/users/max-bond/)
 * (@max-bond)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/cant-insert-javascript/#post-3582821)
 * > After putting any javascript even just the <script></script> will redirect 
   > me to this page
 * Try to enable [debug mode in wp-config.php](http://codex.wordpress.org/Debugging_in_WordPress),
   then submit javascript code again. I hope you’ll see some errors. That will help
   to understand the root of the problem.
 *  [BayLev](https://wordpress.org/support/users/baylev/)
 * (@baylev)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/cant-insert-javascript/#post-3582894)
 * Hi Max
 * First of all, your plugin rocks and in fact I use it extensively.
 * However, I am now experiencing the same issue with **javascript code**. Upon 
   saving the code snippet, it redirects me to the 404 page. I have no idea, why
   all of the sudden Code Insert Manager does not accept javascript code anymore.
   It certainly worked before. In addition, I am not too proficient with PHP code
   or debugging issues, so I hope there may be a solution to the problem.
 * On another note – an idea how to make CIM even better. It would be great, if 
   the type of code insert could be grouped (i.e. shortcodes, widgets etc.). In 
   addition, being able to create groups for all the different code entries would
   help giving it a better overview and you would not have to use the search functionality
   all the time 🙂
 * Many thanks for your help!!
 *  Plugin Author [Max Bond](https://wordpress.org/support/users/max-bond/)
 * (@max-bond)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/cant-insert-javascript/#post-3582895)
 * Hello BayLev!
 * Do you have any security plugins installed?
 * > In addition, being able to create groups for all the different code entries
   > would help giving it a better overview and you would not have to use the search
   > functionality all the time 🙂
 * But grouping is already exists!
    You can filter by location or activity status.
   The links should be right under plugin name…
 *  [BayLev](https://wordpress.org/support/users/baylev/)
 * (@baylev)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/cant-insert-javascript/#post-3582896)
 * Hi Max
 * Many thanks for your response. Yeah, I run WordFence for security. Do you think
   that is the reason? Well, I will try it again by deactivating the security plugin.
 * Regarding the grouping 🙂 You’re right, you can group your entries in regards
   to **what type** of code it is i.e. a widget or a shortcode. What I meant though
   was, it would be great, if you could create groups i.e. “ads”, “message of the
   day” etc. etc. When using the plugin heavily you end up with all sorts of different
   groups of topics. Currently I keep it all organized by naming the entries in 
   a group specific manner, but if you could assign topics/groups to various entries,
   that would be superb.
 * Anyway, it’s a great plugin regardless 🙂
 *  Plugin Author [Max Bond](https://wordpress.org/support/users/max-bond/)
 * (@max-bond)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/cant-insert-javascript/#post-3582897)
 * > Many thanks for your response. Yeah, I run WordFence for security. Do you think
   > that is the reason? Well, I will try it again by deactivating the security 
   > plugin.
 * Did you try?
 * > Regarding the grouping 🙂
 * Now I understand your idea! I’ll think about it )
 *  [BayLev](https://wordpress.org/support/users/baylev/)
 * (@baylev)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/cant-insert-javascript/#post-3582902)
 * Hi Max
 * Sorry for the delayed response. I have just given this a go (deactivating the
   security plugin) and place a javascript as well as an iframe entry on a separate
   occasion and the issue is still there – the WP dashboard redirects to the 404
   page.
 * Mhhh, any other ideas?
 * Thanks again and all the best!
 *  Plugin Author [Max Bond](https://wordpress.org/support/users/max-bond/)
 * (@max-bond)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/cant-insert-javascript/#post-3582903)
 * BayLev!
    Can you give an access to your site? You can contact me here: [http://www.q2w3.ru/contacts/](http://www.q2w3.ru/contacts/)
 *  [BayLev](https://wordpress.org/support/users/baylev/)
 * (@baylev)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/cant-insert-javascript/#post-3582904)
 * Hi Max
 * Thanks for your message. Of course it’s also in my interest to solve the problem,
   but unfortunately I cannot give out the login details of the site. Nevertheless
   and going forward, I will keep an eye on the issue as well and see, if I can 
   come up with a solution. In that case I will post it on here of course, unless
   someone else manages to fix it.
 * Thanks again!
 *  Plugin Author [Max Bond](https://wordpress.org/support/users/max-bond/)
 * (@max-bond)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/cant-insert-javascript/#post-3582906)
 * BayLev!
 * One more thing to check: is mod_security installed on your server?
    May be it
   is blocking all post requests conatining `<script>` words.
 *  Thread Starter [kennyljv](https://wordpress.org/support/users/kennyljv/)
 * (@kennyljv)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/cant-insert-javascript/#post-3582907)
 * Hi Max,
 * This is something that is still not working for me. I have other plugins which
   adds adsense javascript code and it’s working. It’s only this which does not 
   accept javascript code. I also don’t have any security plugins installed.
 *  Thread Starter [kennyljv](https://wordpress.org/support/users/kennyljv/)
 * (@kennyljv)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/cant-insert-javascript/#post-3582908)
 * Hi Max,
 * I’ve tried to turn on debug and there’s a bunch of error messages but here are
   the ones related to this plugin. This shows up when I’m editing the existing 
   insert code. After I click save it will redirect to something like [http://myblog.com/wp-content/plugins/q2w3-inc-manager/q2w3-table/q2w3_post.php](http://myblog.com/wp-content/plugins/q2w3-inc-manager/q2w3-table/q2w3_post.php)
   without any error messages from this plugin. So below are the debug messages.
   Hope it helps to define the issue. Thanks!
 * Notice: Undefined variable: plugin_id in /home/test/public_html/test/wp-content/
   plugins/q2w3-inc-manager/q2w3-table/q2w3_table_func.php on line 245
 * Notice: Undefined variable: saved_values in /home/test/public_html/test/wp-content/
   plugins/q2w3-inc-manager/q2w3-table/form_elements/q2w3_wp_page_select_input.php
   on line 53
 * Notice: Undefined variable: pages in /home/test/public_html/test/wp-content/plugins/
   q2w3-inc-manager/q2w3-table/form_elements/q2w3_wp_page_select_input.php on line
   55
 *  Thread Starter [kennyljv](https://wordpress.org/support/users/kennyljv/)
 * (@kennyljv)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/cant-insert-javascript/#post-3582909)
 * just tested something else. Not only javascript but iframe code also has the 
   same issue.
 *  Plugin Author [Max Bond](https://wordpress.org/support/users/max-bond/)
 * (@max-bond)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/cant-insert-javascript/#post-3582910)
 * kennyljv!
    Thanks for report. Notices are not critical…
 * Is mod_security enabled on your server?
 * Can you give an access to your site? I cannot reproduce this error on my test
   system…

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/cant-insert-javascript/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cant-insert-javascript/page/2/?output_format=md)

The topic ‘can't insert javascript’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/q2w3-inc-manager.svg)
 * [Code Insert Manager (Q2W3 Inc Manager)](https://wordpress.org/plugins/q2w3-inc-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/q2w3-inc-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/q2w3-inc-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/q2w3-inc-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/q2w3-inc-manager/reviews/)

 * 19 replies
 * 4 participants
 * Last reply from: [Max Bond](https://wordpress.org/support/users/max-bond/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/cant-insert-javascript/page/2/#post-3582924)
 * Status: not resolved