I can’t find any plugin clashes etc. It’s like the widget registration code stopped working.
WordPress 4.3
WooCommerce 2.4.4
Storefront 1.4.6 (theme)
It worked fine in WP 4.2.4, prior to updating to 4.3 earlier this evening.
Hello
Yes, right, I found the reason:
There is hot fix here:
- – open index.php of the plugin
- – find:
add_action('widgets_init', array($this, 'widgets_init'));
- – cut it
- – got to
public function __construct()
- – paste it on the same bottom of the function __construct(
- – save the file and upload it to your server
Hi RealMag777 ,
I tried to update the changes in code but still its not working . I am not able to see the price filter widget option.
I did the changes on this function.
public function __construct()
{
if (session_id() == '')
{
try
{
@session_start();
} catch (Exception $e)
{
//***
}
}
//+++
if (!defined('DOING_AJAX'))
{
global $wp_query;
if (isset($wp_query->query_vars['taxonomy']) AND in_array($wp_query->query_vars['taxonomy'], get_object_taxonomies('product')))
{
//unset($_SESSION['woof_really_current_term']);
$this->set_really_current_term();
}
}
//+++
$this->init_settings();
global $wpdb;
$attribute_taxonomies = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "woocommerce_attribute_taxonomies");
set_transient('wc_attribute_taxonomies', $attribute_taxonomies);
if (!empty($attribute_taxonomies) AND is_array($attribute_taxonomies))
{
foreach ($attribute_taxonomies as $att)
{
//fixing for woo >= 2.3.2
add_filter("woocommerce_taxonomy_args_pa_{$att->attribute_name}", array($this, 'change_woo_att_data'));
}
}
//add_filter("woocommerce_taxonomy_args_pa_color", array($this, 'change_woo_att_data'));
//add_action('init', array($this, 'price_filter_init'));
add_action('widgets_init', array($this, 'widgets_init'));
}
It was working well before update the database .
Same problem here, hope for an update!
@dvpnawn
Try please fix above
I edited the index.php as you said but nothing changed, i still don’t see the widget
same problem here – tried the fix above but it didn’t work.
Just a suggestion (as the hotfix supplied worked for me) – after making the change to index.php, deactivate and then reactivate WOOF, see if that fixes the display issue.
@purbeckpixels
I tried, i tried also to deactivate it, logout, login and activate it… nothing seems to change :'(. Thank you anyway!
@realmag777 – Is there a reason why you haven’t released an update to WOOF to address this issue? Or is an update in the pipeline?
Done! v.1.1.1.1 is just hot fix update for compatibility with WordPress 4.3
@purbeckpixels
Deal in that I wanted release 1.1.2 with new features this week, BUT such troubles as widget issue met me. So I decided to finish WOOF 1.1.2 today. But after testing decided just only make hot fix update for 1.1.1 as 1.1.1.1, because 1.1.2 is a little buggy and not tested well …