can't 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?
https://www.ads-software.com/extend/plugins/q2w3-inc-manager/
-
Hello!
What happens when you try to insert javascript?
Hi,
After putting any javascript even just the <script></script> will redirect me to this page
https://myblog.com/wp-content/plugins/q2w3-inc-manager/q2w3-table/q2w3_post.php
thanks for the help and this is an awesome plugin.
After putting any javascript even just the <script></script> will redirect me to this page
Try to enable debug mode in wp-config.php, then submit javascript code again. I hope you’ll see some errors. That will help to understand the root of the problem.
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!!
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…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 ??
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 )
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!
BayLev!
Can you give an access to your site?
You can contact me here: https://www.q2w3.ru/contacts/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!
BayLev!
One more thing to check: is mod_security installed on your server?
May be it is blocking all post requests conatining<script>
words.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.
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 https://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
just tested something else. Not only javascript but iframe code also has the same issue.
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…
- The topic ‘can't insert javascript’ is closed to new replies.