Home › Forums › BulletProof Security Pro › Bloom eMail Opt-In and WP Easycart break Maintenance Mode Editor and BPS Backend
Tagged: Bloom eMail Opt-In, maintenance mode, WP Easycart
- This topic has 42 replies, 2 voices, and was last updated 9 years, 5 months ago by AITpro Admin.
-
AuthorPosts
-
SweetspotParticipant
First of all, I´m new here and you have to excuse me if I post this on wrong place.
I bought Bulletproof Pro version and installed it on 2 sites. Different Web hosts.
What is strange is that my problems occurs on both sites.Maintenance mode is not working . I can´t write any information in editor at all. Whole Maintenance plugin area also look corrupt.
JTC seems to work but passw for login shows up blank. I tried to redo it but it does´t work.I am a total newbie in security so I really need some hands on help to get my sites running.
Regards/ CAITpro AdminKeymasterIt sounds like another plugin or theme may be loading its scripts in BPS Pro plugin pages and breaking things. Do these troubleshooting steps:
Reinstall BPS Pro using the BPS Pro built-in Upload Zip installer (not the WordPress Upload Zip installer) to eliminate that the BPS Pro installation is bad/corrupted/not complete. Go to the BPS Pro Setup main menu >>> Upload Zip Install page and reinstall the zip file. This installation method replaces all BPS Pro plugin files and does not change any of your BPS Pro settings.
Deactivate all of your other plugins or deactivate your other plugins one by one and check the Maintenance Mode page to see if the problem is being caused by another plugin. If the problem is being caused by another plugin post the name of the plugin that is causing the problem.
If after deactivating all of your plugins the problem is still occurring then temporarily switch your theme to one of the WordPress Themes: 2015, 2014, etc and test.
SweetspotParticipantThanks for answering me extremely fast!
I´ve done some testing and found some plugins interfering with BPS pro.
1: On first site it´s Bloom plugin by eleganththemes, an optin plugin which I really want to keep, Bloom is the one that made maintenance editor stop working. On this site are also WPEasycart , WPEasycart Admin Console installed and they seems to break/interfere with BPS admin area. In total 3 plugins that we really need to have functional.
2 On second site it´s Bloom that seems to cause the problems.
Anyway, I edited Maintenance Mode and had it enabled. In wp console it says it enabled/turned on but when I logout and go back to site maintenance mode page don´t display.
Same thing with JTC. When I logout and go back to login page it seems to be there but when I hover over the field it just shows an empty field with no captcha in it.
If you have time, well, then we really need help.
regards/C
Excuse my bad english.AITpro AdminKeymasterImportant Disclaimer: I am not stating that there is anything wrong with either of these plugins or that either of these plugins is specifically doing any of the things I have stated below. What I have stated below is very generalized to encompass the entire range of this very well known common problem.
Unfortunately, it is a very common problem for other plugins and themes not to contain their scripts to only areas of WordPress where they should be loading. BPS Pro has a function that dequeues other plugin and theme scripts from loading in BPS Pro plugin pages, BUT that function only works if the other plugins or themes are following legitimate WordPress coding standards/rules. In other words, the worst plugin/theme/code offenders will still cause the problem because those plugins and themes are not following any standards/rules and do things like brute force load/hard code their scripts in an unconventional/non-WordPress standards way or just fubar coding work in general.
The solution is actually very simple, but the problem is that these plugin and theme creators are not aware of the problem or the problems they are creating for other plugins. All that needs to be done is to add a simple condition to wrap their scripts so that they only load where they are supposed to be loading and not everywhere in the WordPress Admin area. Here is an example of that conditional wrap code below. Please contact these plugin and theme creators and ask them to take a look at this forum topic to see the example solution below.
if ( preg_match( '/page=example-plugin-name/', esc_html($_SERVER['REQUEST_URI']), $matches) ) { // plugin scripts are here and will load only on example-plugin-name plugin pages }
when I logout and go back to site maintenance mode page don’t display.
If you want to test if frontend Maintenance Mode is working then do NOT add your IP address. Make sure that you are NOT enabling backend maintenance mode without your IP address because you will be locked out of your website.
Same thing with JTC. When I logout and go back to login page it seems to be there but when I hover over the field it just shows an empty field with no captcha in it.
Have you entered your CAPTCHA in both the JTC CAPTCHA text box and the JTC ToolTip text box and saved your settings?
http://forum.ait-pro.com/forums/topic/jtc-anti-spam-read-me-first/AITpro AdminKeymasterAlso for additional clarification let’s say a particular plugin has 5 scripts that are loading. 3 need to load on the frontend of the website ONLY and not the backend – an appropriate condition would be added for those 3 scripts. 1 script needs to load on a WordPress page – the $pagenow WordPress variable would be used to load that script ONLY on the WordPress pages that it should be loading on/in. The last script needs to load in the example-plugin pages. That script would use the example I posted above to contain that example-plugin script so that it ONLY loads where it is supposed to be loading – in the example-plugin pages ONLY.
SweetspotParticipantThanks again!
I have JTC working but Maintenance mode still don´t show up as expected. In admin it says it´s enabled/activated.
I also started a topic on Blooms support forum located at elegantthemes.com + mailed authors of WPEasycart. No answer yet.
I will have a look at BPS troubleshooting links and see if I can find anything there that I have missed.
/C
AITpro AdminKeymasterWas the JTC issue just a procedural issue (setting not set, selected or saved) or was the issue being caused by either of these plugins? Put the site in Maintenance Mode and I will check the site. If you do not want to post a link to your site in this forum then send the URL/link to your website to: info at ait-pro dot com.
SweetspotParticipantAITpro AdminKeymasterOk I will be changing this Forum’s Topic title again and remove JTC from the title. I checked your site and see your Maintenance Mode page. The page displays your logo and this text: We are updating and will hopefully be back online soon. Please visit us again! So if you are seeing your website normally then that would mean that you have added your IP address in the Maintenance Mode IP Address Whitelist Text Box. A simpler way to check your site and leave your IP address whitelisted would be to use a Proxy to visit your site. Boom Proxy is a nice simple online Proxy site. Simply go to the Boom Proxy site and enter the URL to your website to check it.
SweetspotParticipantHmm, I tried to delete my whitelisted url in JTC settings but when I delete, save and then check settings it´s still there.
Strange./C
AITpro AdminKeymasterI think you meant Maintenance Mode and not JTC. In any case, the simpler method to check your Maintenance Mode page is to use a Proxy like Boom Proxy.
SweetspotParticipantI did mean Maintenance mode. I still can´t delete my white listing records and then save. Old records are still there after saving.
Just wanted to inform you about JTC.
/C
AITpro AdminKeymasterOk then I assume that is one of the problems that is being caused by one or both of those other plugins. Or it could be this: You have to enter something in the Maintenance Mode IP Address Whitelist Text Box or you will see an error that you did not enter an IP address and none of your MMode settings changes will be saved. You can use the example IP addresses: 100.99.88.77, 200.66.55.44, 44.33.22.1 instead of leaving the whitelist text box blank.
AITpro AdminKeymasterI just tested WP EasyCart and I see what you mean about it messing with BPS Pro plugin pages. What a mess! The WP EasyCart plugin is literally loading its Plugin Admin settings/forms/everything in BPS Pro plugin pages at the bottom of the pages. FYI – the WP EasyCart plugin creates 52 Top Level Database tables on installation. That in my opinion is extremely excessive. It would be smarter to combine Database tables instead of creating a separate Database table for every nick nack. Jeez.
AITpro AdminKeymasterIf you want to fix the problem in the WP EasyCart plugin you can do that now with this code below, which I just tested.
Open this file: /plugins/wp-easycart/inc/admin/admin_init.php
Go to code line: 1038 and modify this function: ec_print_editor( ) by adding this conditional wrap/code:function ec_print_editor( ){ if ( preg_match( '/page=ec_adminv2/', esc_html($_SERVER['REQUEST_URI']), $matches) ) { echo "<div class=\"ec_editor_box_container\" id=\"ec_editor_window\">"; echo "<a href=\"#\" class=\"ec_editor_close\" onclick=\"return ec_close_editor( );\"><span>x</span></a>"; echo "<h3 class=\"ec_editor_heading\">Insert EasyCart Shortcodes</h3>"; echo "<div class=\"ec_editor_inner_container\">"; // Start Container Inner ec_print_editor_shortcode_menu( ); // Shortcode Menu // Store shortcode, no options, nothing needed ec_print_editor_product_menu( );// Product Menu Store Shortcode Panel ec_print_editor_product_category( );// Product Category Store Shortcode Panel ec_print_editor_manufacturer_group( );// Manufacturer Group Store Shortcode Panel ec_print_editor_product_details( );// Product Details Store Shortcode Panel // Cart shortcode, no options, nothing needed // Account shortcode, no options, nothing needed ec_print_editor_single_product( );// Single Product Shortcode Panel ec_print_editor_multiple_products( );// Multiple Products Shortcode Panel ec_print_editor_add_to_cart( );// Add to Cart Shortcode Panel // Cart Display shortcode, no options, nothing needed ec_print_editor_membership_content( );// Add to Cart Shortcode Panel // End Container Inner echo "</div>"; echo "</div>"; echo "<div class=\"ec_editor_overlay\" id=\"ec_editor_bg\"></div>"; } }
-
AuthorPosts
- You must be logged in to reply to this topic.