Trevor Gehman
Forum Replies Created
-
Forum: Plugins
In reply to: [Bootstrap Gravity Forms] Installed & Activated — No effect on FormSame issue here.
I also am having the same issue on certain installations.
Actually I still have the issue even after the update. I added this line above 506 and it seems to fix it:
if(!is_array($tax_rates)) $tax_rates = array();
It looks like the implode() function on line 506 is being passed $tax_rates, but it isn’t an array for some reason in some cases.
If the purpose of the “Hide” functionality is to hide the backend URL, then by it being easy to discover on any site that implements that feature, I would say it’s not a really useful feature.
From what I can tell, this is easily fixed by simply modifying the .htaccess file to redirect the wp-login.php?action=logout to the homepage, rather than the wp-login.php page (with the key easily visible). I have done this on my site.
Honestly, I think the ability to rename wp-login.php and /wp-admin/ should be a part of the WordPress installation, similar to how you can move the wp-config.php file outside of the publicly accessible installation directory.
Additionally, I would add as a part of your brute force protection the ability to block blank referrers and HTTP 1.0 POSTS on the wp-login.php file. The can easily be done with a simple addition to .htaccess, and like you said, will result in less load on the server than using PHP:
RewriteCond %{REQUEST_URI} ^(/wp-login\.php|.*wp-login\.php.*)$ RewriteCond %{HTTP_USER_AGENT} ^$ [OR] RewriteCond %{THE_REQUEST} HTTP/1\.0$ [OR] RewriteCond %{SERVER_PROTOCOL} HTTP/1\.0$ RewriteRule ^(.*)$ - [F,L]
I would recommend an adjustment to the Hide functionality:
Rather than redirection to /not_found, it should return 403 Forbidden. (Less load on server, less information given to hacker.)
Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] Shared link gives 404 errorI am also having this problem…
Does this link work: https://www.playmoparts.nl/wishlist/?user_id=1
Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] Does this work with Woocommerce 1.6?You may need to look through all the files for any instance of the get_product() function and change them from:
$product_obj = get_product(
to:
$product_obj = new WC_Product(
Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] Fatal errorThat is an error with the Woocommerce Bulk Discount plugin… most likely it is not made to work with Woocommerce versions prior to 2.0.
Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] Does this work with Woocommerce 1.6?Well, it was actually a simple fix to get this to work in older versions of WooCommerce…
Change this line in templates/wishlist.php:
$product_obj = get_product( $values['prod_id'] );
to:
if ( function_exists( 'get_product' ) ) $product_obj = get_product( $values['prod_id'] ); else $product_obj = new WC_Product( $values['prod_id'] );
Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] Not working as guestI would suspect it is a caching issue. If you use WP Super Cache or W3 Total Cache, you should disable caching for the Wishlist page.
Give that a try.
Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] Does this work with Woocommerce 1.6?Well I tried the plugin on my installation with WooCommerce 1.6.6 and it doesn’t seem to work fully… the Wishlist page does not display any products (it just stops loading the table after the header row) so that seems to indicate some PHP error.
My guess is that it isn’t made for Woocommerce prior to 2.x…
Forum: Plugins
In reply to: [WP Super Cache] Expiry Time & Garbage CollectionYeah I posted about this several times. I even included the fix in my thread, but alas, the developer has not fixed this for over a year now… it makes me very hesitant to recommend WP Super Cache over other caching plugins at this point.
Forum: Plugins
In reply to: [WP Super Cache] Bug on Garbage Collection timer radio buttonI’ve found the error inside the plugin in file wp-cache.php:
} elseif ( $valid_nonce ) { // clock
That line should be:
} elseif ( $valid_nonce && $_POST[ 'cache_schedule_type' ] == 'time' ) { // clock
I can confirm that changing this line fixes the issue. I’m going to create a new thread for this.
Forum: Plugins
In reply to: [Yoast SEO] Add Facebook Admin Gives 403I had the same problem, and it was Block Bad Queries plugin causing it.
Forum: Plugins
In reply to: [Enable Media Replace] 2.8 not showing Replace option on pagesThis might be useful, the URL of that popup window is: