WordPress Troubleshooting

[Troubleshooting] PHP Warning: Cannot modify header information – headers already sent

Sometimes we experience such error message, which shows up on header area of WordPress site, or generates blank screen.

PHP Warning:  Cannot modify header information - headers already sent by (output started at /public_html/.../wp-content/themes/.../functions.php:1) in /.../wp-includes/option.php on line 563

Continue reading…

WordPress Troubleshooting

[Troubleshooting] WordPress “Add Media” Button Not Working

Since WordPress 3.7, more and more WP sites are experiencing this problem: “Add Media” Button Not Working

After clicking “Insert into Post button”, nothing happens !

Many topics on WordPress.org, but one of them actually tell the real cause and solutions.

Continue reading…

Remove WooCommerce Generator Tag in Version 2.1.0 +

Remove WooCommerce Generator Tag

WooCommerce Generator Tag

Before Woocommerce 2.1.0 , we put the following code in functions.php file under active theme folder to remove generator meta tag:

//Remove WooCommerce Generator Tag
function remove_woo_commerce_generator_tag()
    remove_action('wp_head',array($GLOBALS['woocommerce'], 'generator'));

With the release of Woocommerce 2.1.0, things have changed.
Continue reading…

[AWD Weight Shipping for WooCommerce] not Working with Woocommerce 2.1.0

I’ve submitted a new plugin to WordPress.org, you can download it here [Woocommerce Weight & Country Based Shipping Plugin]

↑ ↑ ↑ ↑ ↑ ↑ Stop here, use the plugin above↑ ↑ ↑ ↑ ↑ ↑

[AWD Weight/Country Shipping for WooCommerce Plugin] Not Compatible with Woocommerce since V 2.1.0

This quick fix works for Woocommerce V 2.1.0 ~ 2.1.6

Weight Base Shipping option not shows up on cart, and error_log file generated on root directory of site.

The error_log says:

[11-Feb-2014 09:26:13 UTC] PHP Warning:  in_array() expects parameter 2 to be array, null given in /wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php on line 189
 [11-Feb-2014 09:26:37 UTC] PHP Warning:  array_intersect() [<a href='function.array-intersect'>function.array-intersect</a>]: Argument #1 is not an array in /wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php on line 179

The cause is that Woocommerce changed many code in this new release.
Continue reading…