greencode
Forum Replies Created
-
Forum: Plugins
In reply to: [Delivery & Pickup Date Time for WooCommerce] Your site is down@kermitfromhk If you add a folder called “mu-plugins” to your “plugins” folder and then add this code to a php file called “block-coderockz-http.php” and place in your mu-plugins folder and activate it then it fixes the issue.
They had this issue previously but never resolved it i.e. if their site goes down it shouldn’t then affect every site that uses their plugin!!!
<?php
/*
Plugin Name: Block CodeRockz Remote Calls (Fixed)
Description: Short-circuits HTTP calls to coderockz.com to prevent site lag.
*/
add_filter('pre_http_request', function ($pre, $args, $url) {
// Check if the URL contains coderockz.com (case-insensitive)
if (false !== stripos($url, 'coderockz.com')) {
return new WP_Error('blocked_request', 'Local block active: Coderockz server is down.');
}
return $pre;
}, 10, 3);Forum: Plugins
In reply to: [Delivery & Pickup Date Time for WooCommerce] Your site is downAlso, whenever your site goes down, which I find is way too often, then it then means either my own site goes down or the delivery date panel takes over 2 minutes to load. I presume it tries to call home.
Why???
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Apple Pay and Google Pay not showingI think I’ve figured this out. Everything was showing correctly in Stripe but I needed to add this file https://stripe.com/files/apple-pay/apple-developer-merchantid-domain-association file to mydomain/.well-known/ directory.
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Apple Pay and Google Pay not showingOkay, I’ve managed to get them to appear. Turns out the setting on stripe.com wasn’t on Settings > Payment Methods > Account – Apple and Google Pay ENABLE.
However, it doesn’t work! When I click on Apple Pay, it then goes to the Apple Pay screen but instead of the usual wait until you’ve double clicked the action button to pay, it just goes straight to Processing and then comes back with Failed.
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Apple Pay and Google Pay not showingHi @lovingbro Here you go
https://pastebin.com/dQxMEHuP and https://snipboard.io/NLTgyw.jpgForum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Apple Pay and Google Pay not showing@lovingbro Created a staging site, deactivated all plugins except WooCommerce and Stripe and activated the standard WP theme. Still not showing.
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Apple Pay and Google Pay not showingForum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Apple Pay and Google Pay not showing@lovingbro Not overly obvious using pastebin! I’ve pasted in the text but where the hell is the link?!
Forum: Plugins
In reply to: [Backend Payments for WooCommerce] Not working after 2.8.7 update@bfl Appreciate the speedy fix. I can confirm, it’s working correctly now π
Forum: Plugins
In reply to: [Delivery & Pickup Date Time for WooCommerce] Cannot use the plugin@cheesygoat Very strange. It worked for me. Hopefully @coderockz will get this issue resolved very soon.
Forum: Plugins
In reply to: [Delivery & Pickup Date Time for WooCommerce] Cannot use the plugin@cheesygoat What happens? Is it still just timing out?
Exactly the same. It seems to talk to their website. What I did was create a plugin that you add to plugins/mu-plugins/block-coderockz-http.php and add the following to that (and then activate this plugin first and then activate the delivery date plugin after). This then blocks the plugin from talking to their website. Not ideal but at least the plugin and your site will work until, hopefully, they are back up.
<?php
/*
Plugin Name: Block CodeRockz Remote Calls (temp)
Description: Short-circuits HTTP calls to coderockz.com to avoid admin slowdowns.
*/
add_filter('pre_http_request', function ($pre, $r, $url) {
if (strpos($url, 'coderockz.com') !== false) {
return new WP_Error('coderockz_blocked', 'Temporarily blocked CodeRockz remote request');
}
return $pre;
}, 10, 3);
// Keep all HTTP requests snappy while testing
add_filter('http_request_timeout', function () { return 3; });Forum: Plugins
In reply to: [Delivery & Pickup Date Time for WooCommerce] Cannot use the pluginExactly the same. It seems to talk to their website. What I did was create a plugin that you add to plugins/mu-plugins/block-coderockz-http.php and add the following to that (and then activate this plugin first and then activate the delivery date plugin after). This then blocks the plugin from talking to their website. Not ideal but at least the plugin and your site will work until, hopefully, they are back up.
<?php
/*
Plugin Name: Block CodeRockz Remote Calls (temp)
Description: Short-circuits HTTP calls to coderockz.com to avoid admin slowdowns.
*/
add_filter('pre_http_request', function ($pre, $r, $url) {
if (strpos($url, 'coderockz.com') !== false) {
return new WP_Error('coderockz_blocked', 'Temporarily blocked CodeRockz remote request');
}
return $pre;
}, 10, 3);
// Keep all HTTP requests snappy while testing
add_filter('http_request_timeout', function () { return 3; });Forum: Plugins
In reply to: [LiteSpeed Cache] Premmerce Permalink Manager Issues with LitespeedNot sure what you mean “yeah , itβs kind of wordpress core issue , it happens on sites that doesnβt have LiteSpeed” – My site does have Litespeed!
Forum: Plugins
In reply to: [LiteSpeed Cache] Premmerce Permalink Manager Issues with LitespeedBy updating Permalinks, without making any changes.