WordPress.org

Ready to get started?Download WordPress

Forums

Code Insert Manager (Q2W3 Inc Manager)
can't insert javascript (20 posts)

  1. kennyljv
    Member
    Posted 1 year ago #

    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/

  2. Max Bond
    Member
    Plugin Author

    Posted 1 year ago #

    Hello!

    What happens when you try to insert javascript?

  3. kennyljv
    Member
    Posted 1 year ago #

    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

    thanks for the help and this is an awesome plugin.

  4. Max Bond
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. BayLev
    Member
    Posted 1 year ago #

    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!!

  6. Max Bond
    Member
    Plugin Author

    Posted 1 year ago #

    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...

  7. BayLev
    Member
    Posted 1 year ago #

    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 :-)

  8. Max Bond
    Member
    Plugin Author

    Posted 1 year ago #

    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 )

  9. BayLev
    Member
    Posted 1 year ago #

    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!

  10. Max Bond
    Member
    Plugin Author

    Posted 1 year ago #

    BayLev!
    Can you give an access to your site?
    You can contact me here: http://www.q2w3.ru/contacts/

  11. BayLev
    Member
    Posted 1 year ago #

    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!

  12. Max Bond
    Member
    Plugin Author

    Posted 1 year ago #

    BayLev!

    One more thing to check: is mod_security installed on your server?
    May be it is blocking all post requests conatining <script> words.

  13. kennyljv
    Member
    Posted 12 months ago #

    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.

  14. kennyljv
    Member
    Posted 12 months ago #

    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 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

  15. kennyljv
    Member
    Posted 12 months ago #

    just tested something else. Not only javascript but iframe code also has the same issue.

  16. Max Bond
    Member
    Plugin Author

    Posted 12 months ago #

    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...

  17. kennyljv
    Member
    Posted 12 months ago #

    Hi Max,

    thanks for the help. I appreciate your help but I'm unable to give access. Mine is a shared server hosting. May I know how do I check if mod_security is enabled? Am I able to check it from the cpanel? Also if it was indeed turned on, why is it that other plugins are able to insert javascript?

    thanks once again!

  18. Max Bond
    Member
    Plugin Author

    Posted 12 months ago #

    Mine is a shared server hosting.

    I need only wp-admin access

    May I know how do I check if mod_security is enabled?

    Try to execute this php code:
    <?php var_dump( in_array( 'mod_security', apache_get_modules() ) ); ?>

    Also if it was indeed turned on, why is it that other plugins are able to insert javascript?

    Good question ) I have no answer. Just trying all ways to find the root of the problem....

  19. lembu
    Member
    Posted 10 months ago #

    I am facing the same problem of inserting ads with java script. The plugin redirect to q2w3_post.php which end up with not found error page

  20. Max Bond
    Member
    Plugin Author

    Posted 10 months ago #

    lembu!

    Do you have a security plugins installed?
    Is mod_security is on your Apache server?
    Suhosin patch installed?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.