mystyleplatform
Forum Replies Created
-
Update: I tried this via add_action and some additional conditions for the right pages and it works. Please let me know if I missed any known pages that are a security risk without recpatcha, but I think I got the main ones at least.
Not fully optimized or minified code yet, but here’s an example that works for me if anyone else needs it:
function no_wf_recaptcha(){ return false; } add_action( 'wp_enqueue_scripts', 'filter_recaptcha', 1 ); function filter_recaptcha(){ // check for register / login $isRegisterOrLogin = function_exists('login_header') || ($GLOBALS['pagenow'] == 'wp-login.php' && isset($_REQUEST['action']) && $_REQUEST['action'] == 'register'); // check for common no-recaptcha pages $noReCaptchaNeeded = is_user_logged_in() || is_front_page() || is_home(); // login and register needs recaptcha. common no-recaptcha pages dont. $needsReCaptcha = !$needsReCaptcha && ($isRegisterOrLogin || is_account_page() || is_checkout() || is_cart() || is_wc_endpoint_url( 'lost-password' )); // dont use recaptcha if its not needed. if($noReCaptchaNeeded && !$needsReCaptcha) { add_filter( 'wordfence_ls_require_captcha', 'no_wf_recaptcha' ); } }
As another workaround, I was able to solve this by using ReCaptcha v3 with Wordfence, and ReCaptcha v2 with all other plugins. No more conflicts.
Now I have a slightly different issue with the ReCaptcha loading, which might benefit from the same suggested filter. The recaptcha script include from google is now loading on every page including pages that don’t need it (most pages, homepage, landing pages, etc) and is apparently the heaviest thing on the entire page slowing it down more than any other scripts.
See this tree map from Google Page Insights: https://imgur.com/a/4Id7SWs
Can you put an example of how to properly use the filter to remove google recaptcha on pages that don’t need it? Assuming we don’t have a login on every page, just the normal woo commerce my account login and the wordpress login, registration page, etc.
Would it be something like this:
// check for register / login $isRegisterOrLogin = function_exists('login_header') || ($GLOBALS['pagenow'] == 'wp-login.php' && isset($_REQUEST['action']) && $_REQUEST['action'] == 'register'); // check for common no-recaptcha pages $noReCaptchaNeeded = is_user_logged_in() || is_front_page() || is_home(); // login and register needs recaptcha. common no-recaptcha pages dont. $needsReCaptcha = $isRegisterOrLogin || is_account_page() || is_cart() || is_wc_endpoint_url( 'lost-password' ); // dont use recaptcha if its not needed. if($noReCaptchaNeeded && !$needsReCaptcha) { add_filter( 'wordfence_ls_require_captcha', '__return_false' ); }
Hey Alex,
Thanks for the fast response.
Ideally I’d want to avoid installing more plugins to optimize other plugins (less is more with WP Plugins that need to run behind every page load). But I’ll check it out.
I was hoping maybe for a functions.php / code snippets way to do it, which I imagine is more or less what the asset cleanup plugin does.
After looking thru the code in your plugin for where you’re registering stylesheets:
https://github.com/AyeCode/userswp/search?q=wp_enqueue_style…it seems like this might work…
wp_dequeue_style( ‘ayecode-ui’ );
What would really be nice to go along with it is a function that checks if the page is a UsersWP page, so that it can be limited to run on only non-usersWP pages.
I realize this is more than a typical support question, so I’ve posted this to your github repo too where hopefully a developer could chime in with any suggestions:
https://github.com/AyeCode/userswp/issues/672
Thanks
Forum: Plugins
In reply to: [SpeakOut! Email Petitions] Signatures are not displayedHad this same issue. Backend signature list was empty / petition was not saving any new signatures / export would not work, though total signatures was stating over 1100+.
Disable / Re-enable the plugin did fix it.
Forum: Reviews
In reply to: [Pinterest for WooCommerce] /n/n/n/ in the frontend (version 1.2.0)yeah I have the exact same issue. When will this be fixed by? Trying to launch today and this is the only bug.
Thanks
So if I get you right – we can use the Code Snippets plugin for example (to avoid needing child theme etc), paste your filter code, and it will fix it by omitting wordpress recaptcha loading on UsersWP login/registration pages?
For now, for anyone else experiencing this, the workaround is to use ReCaptcha v2 with UsersWP, and ReCaptcha v3 with Wordfence, as v2 and v3 seem to not conflict with each other, but multiple v3s do.
Forum: Plugins
In reply to: [MyStyle Custom Product Designer] Saved file in your or my server?Both our application and the files it uploads and reloads are saved to our cloud hosting to ensure reliability, speed, and keep the load off of your server so that you can save your hosting the burden of the extra bandwidth, and avoid common issues like cross-domain issues, things like that. Our our cloud storage is fully scalable and hosts the files forever as part of our license fees (any license).
The design records themselves are saved in your database on your site for the designs made on your site. Yes, they can be reloaded by users in their My Account section, where you will find “My Designs” as a new menu item for users once MyStyle is installed. Once reloaded the design can be edited and re-saved as a new design, or purchased, etc.
Please contact us through our website to get a quote or setup a demo or call.
Niklas are you PayPal’s only support guy or something? You’re on every thread and the issues are really stacking up. They should commit more resources to making this plugin stable ASAP, it’s part of CHECKOUT for god sake
- This reply was modified 2 years, 10 months ago by mystyleplatform.
Was this fixed? I still see this in my error log
Forum: Plugins
In reply to: [WooCommerce] Sync Orders with RegistrationsHi Mirko,
Is there any way to make this feature automatic, so that we don’t have to manually go into the admin just to click the button? We want this behavior to always be the case – a guest checkout user registers later, checks their account before we have time to manually do anything, and their order history is already there in their My Account > Orders section.
Is that possible now in WooCommerce? Or is the SkyVerge article on adding that feature still the only way to automate this?
Thanks!
Forum: Plugins
In reply to: [UsersWP - ReCaptcha] Recptcha v3 does not work but v2 doesI don’t know if that’s the issue or not, that’s why I was asking if you’d tested your plugin or if it’s already a known plugin conflict? Wordfence has like 4+ million installs so I’d think you’d want to test compatibility with it to know if that’s a conflict or not, right? I assume many of your users also use wordfence.
As far as I can tell, the UsersWP Recaptcha doesn’t protect the rest of WordPress, WooCommerce, etc so another Recaptcha plugin is needed…
Is there another different plugin you’d suggest that you know works well along side UsersWP Recaptcha? What do you yourself use in combination with UserWP Recaptcha to protect the rest of WordPress on your own sites?
We use Wordfence a lot because it’s one of the few that doesn’t seem to have as many plugin conflicts actually and it does a really good job of stopping/catching common hacks, but I’m open to suggestions.
I will open a ticket with Wordfence as well. However if it was possible to detect ReCaptcha includes already on page and use the key to make it compatible with others, that would be ideal.
Thanks
Forum: Reviews
In reply to: [Sales Tax Reports For WooCommerce] This is helpful – almost perfect.Hi Womac911,
When you say giving a stack of invoices to an accountant… would it accomplish the same to be able to give them a spreadsheet of all the taxed orders? Seems like a more efficient option than a stack of paper, if it has all the same data, and is all in one file. Optionally, the spreadsheet could be printed out, to give them all the same data on less paper. Would that work? I ask because we’re about to release this feature and it might do the trick for ya.
Nice website btw, I enjoyed reading your story.
Upon further investigation, I believe that the issue is with the WooCommerce Shipping & Tax Plugin that relied on Jetpack. If I turn off WooCommerce Shipping & Tax it also fixes the issue, just like Jetpack. I will open a ticket with that plugin as well.
Hello,
500 is an internal server error.
You most likely have a plugin conflict. We’ve tested this with the current WordPress / WooCommerce and a slew of standard plugins and it’s working OK.
If possible, I’d suggest deactivating most of your plugins that you don’t absolutely need, and then try again. If that’s not an option, clone your site to a dev/staging site, and do it there privately.
If disabling extra plugins doesn’t work, try changing theme to something standard like one of the main WP themes like Twenty-Twenty-Two, or DIVI (we use this alot), and see if that clears it up.
Lastly, make sure you’re on a normal / current version of PHP, like 7.x
Forum: Reviews
In reply to: [Sales Tax Reports For WooCommerce] This is helpful – almost perfect.Thank you for your feedback. We are adding a CSV download button so that you can get a copy of all the data easier to work with in your program of choice.
When you say option to print those/all invoices, will that do the trick? Or did you mean actually printing invoices for every order? (I think there’s another plugin for that)