WordPress.org

Support

Support » Plugins and Hacks » BulletProof Security » [Resolved] Plugin settings don't load on locahost

[Resolved] Plugin settings don't load on locahost

  • Hi,
    when I install your plugin on a web server, it’s all OK, but I have problem on my local server. The website is a copy of a web version, the only difference is the domain which is mydomain.dev instead of mydomain.com.
    The plugin options page stops loading at:
    <div id="message" class="updated" style="border:1px solid #999999; margin-left:70px;"> so it’s all blank (no settings available).
    No errors in firebug console.
    WP_DEBUG says:
    Notice: wp_script_is was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks.
    but I don’t know if it’s relevant.
    Thanks

    http://wordpress.org/extend/plugins/bulletproof-security/

Viewing 7 replies - 1 through 7 (of 7 total)
  • P.S. The Login Security Options Page is OK on localhost.

    Plugin Author AITpro

    @aitpro

    BPS is developed locally on XAMPP. What type of local installation do you have?
    The WP_DEBUG error is for something else. Usually a Theme. Try switching to the WP 2012 Theme.

    Thank you for your suggestion, I’ve switched to xampp and the page started to load.
    Do you know why it takes so long to load on localhost (with every theme)?

    http://img690.imageshack.us/img690/6397/image1za.png

    Plugin Author AITpro

    @aitpro

    Probably because you have another plugin installed that is loading its js scripts in the BPS plugin pages. That also probably caused the other problem. In the screenshot the color of the text in the BPS menus indicates that another plugin is loading its js scripts in BPS plugin pages because the color of the menu text is not correct.

    see this image in this Forum topic below for comparison.

    forum.ait-pro.com/forums/topic/bulletproof-security-menus-css-and-js-not-displaying-correctly/

    Deactivate your plugins one by one until you find out which plugin this is and post the name of the plugin here. I can provide you with some code that will prevent this plugin from doing this and this code will be added permanently to BPS to block this plugin from inappropriately loading its js scripts in BPS plugin pages.

    I fixed a double jquery-ui and css problem in my functions.php, so no other scripts loaded with BPS.
    Then I deactivated all plugins and functions.php to test it but the problem still existed.

    I’ve just switched to TwentyTwelve and then back to my theme. Problem solved.
    Is there anything that happens in BPS on theme activation?

    Plugin Author AITpro

    @aitpro

    Logically I believe that if you corrected a js and css problem in your functions.php file and then switched Themes this forces whatever problematic js and css scripts that were previously being enqueued to be cleared/dequeued – logical, but don’t quote me on that. 😉

    BPS loads its own jQuery and css scripts in its own plugin pages ONLY and nowhere else (not anywhere on the frontside of your website, not anywhere else in your WP Dashboard or in any other plugins pages). If another plugin or theme or custom code in a functions.php file is loading in BPS plugin pages then it will conflict with or break BPS js and css scripts and can cause a wide range of problems.

    So to answer your question No BPS does not do anything related to theme activation, but can be negatively impacted or broken by scripts that are inappropriately loading in BPS plugin pages.

    Thank you for all your answers.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Plugin settings don't load on locahost’ is closed to new replies.
Skip to toolbar