Category: <span>Subscriptions</span>

How to fix WooCommerce Subscriptions crashing site – get_editable_roles error

Having trouble activating WooCommerce Subscriptions on your site because activation of the extension crashes your site completely? Look at your error message (if you have none, activate WordPress debug mode) If your error messages includes a failed call for get_editable_roles
then we got you covered.
Download this patched file (fixed by Gabor Javorszky, thanks!), courtesy of Prospress and replace your includes/admin/class-wc-subscriptions-admin.php.
This should solve the issue.
Download WC Subscriptions patched file

WooCommerce Subscriptions translating the price string

Translating the WooCommerce Subscriptions price string is a frequently asked question we get in support.

EDIT: I made this into a mini plugin.

In order to achieve this you need to use a custom code snippet such as this.

function change_signup_string( $string, $product, $include ) {
// customize $string here based on $product
return $string;
}
add_filter( ‘woocommerce_subscriptions_product_price_string’, ‘change_signup_string’, 10, 3 );

So for example

function change_signup_string( $string, $product, $include ) {
$string = str_replace( ‘and a’, ‘maybe and’, $string );
$string = str_replace( ‘sign-up fee’, ‘or for free’, $string );
return $string;
}
add_filter( ‘woocommerce_subscriptions_product_price_string’, ‘change_signup_string’, 10, 3 );

Alternatively you can edit language file with http://poedit.net/ –

WooCommerce Subscriptions blank settings after upgrade

If you have a blank WooCommerce Subscriptions or WooCommerce Checkout settings page after upgrading to WordPress 4.4 while running WooCommerce Subscriptions, then you might have run into an error caused by a modification in a core file that was released with WordPress version 4.4. This issue also prevents anyone from adding subscription products to the cart.

Turning on WP-DEBUG  will get you this kind of error:
Fatal error: Uncaught exception ‘Exception’ with message ‘SSL certificate problem: unable to get local issuer certificate’
The error has been fixed already and will be released in WordPress version 4.4.1.