• So the plugin isn’t work on multi-language WP project. I have HTTP ERROR 500 and this error log:

    /public_html/wp-content/plugins/makecommerce/makecommerce.php(106): woocommerce_makecommerce->init_form_fields()\n#5 /public_html/wp-content/plugins/makecommerce/makecommerce.php(1237): woocommerce_makecommerce-> in /public_html/wp-content/plugins/polylang/frontend/frontend-links.php on line 44

    • This topic was modified 7 years, 5 months ago by mbogrov.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey mbogrov,

    I’m not the author of the plugin but I’ve faced the same problem and can verify that the Makecommerce gateway is not currently compatible with Polylang. After some investigating I’ve found that the culprit is the “init_form_fields()” function in the primary plugin file, which defines a $languages array in a way that breaks Polylang; here’s one possible solution that worked for me: changing line 196 in “/makecommerce.php” from

    $languages = apply_filters('wpml_active_languages', NULL, 'skip_missing=0');

    to

    if ( function_exists('icl_object_id') && ! defined( 'POLYLANG_VERSION' ) ) {
    	$languages = apply_filters('wpml_active_languages', NULL, 'skip_missing=0');
    } else if ( defined( 'POLYLANG_VERSION' ) ) {
    	$languages = pll_languages_list();
    }

    Cheers,
    Andrii

    • This reply was modified 7 years, 5 months ago by satoristudio.
    Plugin Author MakeCommerce.net

    (@makecommerce)

    Thanks @satoristudio and @mbogrov

    The fix will be added to the next release, coming out this week.
    We can not yet say that we are Polylang compatible, we haven’t tested in full extent.

    P.S.
    The upcoming release refactors out Shipment Methods implementation, it will now rely on WooCommerce Shipping Zones
    https://docs.woocommerce.com/document/setting-up-shipping-zones/
    Soon we will add DPD integration, and Omniva Courier service.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conflict with a famous Polylang plugin HTTP ERROR 500’ is closed to new replies.