The Problem While trying to troubleshoot a client’s website I kept seeing this message when trying to access the Page Menu / Edit a page. This page isn't working ____ didn't send any data. ERR_EMPTY_RESPONSE Turns out the issue was triggered by the Visual Composer plugin. The Fix In apache/.htaccess I increased the SubstituteMaxLineLength level to 10M, the default setting is 1M. <IfModule mod_substitute.c> SubstituteMaxLineLength 10M </IfModule> The website was hosted on GoDaddy. …
Category: WordPress
BigPurpleDot is a powerful real estate management software for lenders & realtors. You can use their API to send leads from WordPress Contact 7 Form to their CRM platform. The Code Edit the variables below ($formId, $apiUser & $apiSecret) and place the code in your current themes functions.php. $formId – is your Contact Form Id. $apiUser – can be found in your BPD settings. $apiSecret– can be found in your BPD settings. The code below assumes you’re using the fields …
I have this issue with selectWoo and WooCommerce where if you change the country the states select field doesn’t hide. I didn’t have time to debug it or find a solution so I just removed it completely by de-registering the selectWoo scripts and styles. The quick fix (place this in your themes functions.php): add_action( 'wp_enqueue_scripts', function () { if ( class_exists( 'woocommerce' ) ) { wp_dequeue_style( 'selectWoo' ); wp_deregister_style( 'selectWoo' ); wp_dequeue_script( 'selectWoo' ); wp_deregister_script( 'selectWoo' ); } } ); …
This probably isn’t useful for anyone but I’m currently using WooCommerce with WordPress and I needed a solution where a product item would automatically be added to cart on page load. The code below is what I came up with, this code will also force the user to have only 1 quantity of the item. To use, fill in the $product_id variable with your product id and paste the code in your child themes functions.php file. add_action( 'wp_loaded', function() { …
WIth access to WordPress files you can force login using wp_set_current_user and wp_set_auth_cookie without knowing the password. …
If you tried to move away from WP Engine and noticed some of your images are broken its because WP Engine uses a custom URL to display these files in WordPress. …