Home Forums Academy Fatal error: woocommerce order placement and email notification.

Fatal error: woocommerce order placement and email notification.

  • CRAFTR

    I have the problem with sending email notification to me when the client completes the order.
    So I tested the order and the confirmation page is very ugly (looks like no html) and below I see the following:
    Fatal error: Can’t use method return value in write context in /var/www/…/…/…/my.site/wp-content/themes/academy/woocommerce/order/order-details.php on line 114

    The line 114 looks like:
    <?php if(!empty($order->get_billing_email())) { ?>

    How can I repair it?

    ihor Staff

    Please sign in or register to view replies from the support staff.

    CRAFTR

    I’ve sent the information via mail.
    Do you need any assistance?

    CRAFTR

    I found that some WC reqiurements were not filled. I added memory for PHP to 64Mb and looks like the problem with mails is solved.
    But fatal error in line 114 and html page are still there.
    PHP is older then reqired, I asked the hoster about that problem.

    CRAFTR

    PHP has been upgraded to 7.0.
    Mail is OK. Html confirmation page is OK. Thanks.

    ihor Staff

    Please sign in or register to view replies from the support staff.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.