• Resolved kavacs

    (@kavacs)


    Hi,

    I have a problem with wpMandrill, when I try to use it with WooCommerce.

    When I make an order on the site it only arrives if wpMandrill is deactivated.

    I set the API key and everything in wpMandrill and when I send an e-mail with its tester it arrives, but cannot get through with an order. I see no related error in the log.

    Has anyone met with such thing?

    Thank you for your help in advance! 🙂

Viewing 1 replies (of 1 total)
  • Thread Starter kavacs

    (@kavacs)

    I’ve managed to fix this issue.

    It turned out not to be with Woocommerce, but when it sends out mails it attaches a PDF to the e-mails and wpMandrill uses a function called set_magic_quotes_runtime that is removed from PHP 7.

    So, to fix this you need to remove or comment out the following lines from /wp-content/plugins/wpmandrill/lib/mandrill.class.php:

    if ( !function_exists(‘set_magic_quotes’) ) {
    function set_magic_quotes($value) { return true;}
    }

    if (strnatcmp(phpversion(),’6′) >= 0) {
    $magic_quotes = get_magic_quotes_runtime();
    set_magic_quotes_runtime(0);
    }

    if (strnatcmp(phpversion(),’6′) >= 0) set_magic_quotes_runtime($magic_quotes);

Viewing 1 replies (of 1 total)
  • The topic ‘wpmandrill with woocommerce’ is closed to new replies.