Support » Plugin: Hyyan WooCommerce Polylang Integration » Use order language for order emails settings causes An error of type E_ERROR

  • when i enable this option then i get this message
    There has been a critical error on this website

    An error of type E_ERROR was caused in line 645 of the file /var/www/vhosts/mysite.com/httpdocs/wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Utilities.php. Error message: Uncaught Error: Attempt to assign property “locale” on bool in /var/www/vhosts/mysite.com.gr/httpdocs/wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Utilities.php:645
    Stack trace:

Viewing 1 replies (of 1 total)
  • Plugin Contributor jonathanmoorebcsorg

    (@jonathanmoorebcsorg)

    Hi, that line of code looks like it is historic and should never be called in recent plugin versions, specifically to get to that line of code means that Polylang does not have the language requested..
    You could try commenting out the related line:

    //20190630: old code used in previous versions of this plugin
    $polylang->curlang->locale = $languageLocale;

    or raise the issue with more detail on https://github.com/hyyan/woo-poly-integration/issues
    as there is no support on this forum

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.