Topic: textcart - Purchasing error

I am using FA 2.3.18. After activate textcart 2.3.9-5, error occur when try to post PO entry:

Fatal error: Call-time pass-by-reference has been removed in /webroot/t/a/table009/erp/www/modules/textcart/purchasing/po_entry_items.php on line 532

Re: textcart - Purchasing error

Could you try remote the & in specified line :

Change

    $textcart_mgr->tab_display('', &$_SESSION['PO'], "display_order_in_tab");

to

    $textcart_mgr->tab_display('', $_SESSION['PO'], "display_order_in_tab");


/Elax

Re: textcart - Purchasing error

It works fine now. Thanks.

4 (edited by apmuthu 11/07/2013 11:55:19 am)

Re: textcart - Purchasing error

The textcart extension uses the "&$_SESSION" term in quite a few places - do they all have to be changed?

Line 412 in modules/textcart/purchasing/po_entry_items.php (also present in corresponding core file modules/purchasing/po_entry_items.php):
    $cart = &$_SESSION['PO'];

Line 87 in modules/textcart/inventory/adjustments.php
    $adj = &$_SESSION['adj_items'];

Line 83 in modules/textcart/inventory/transfers.php
    $tr = &$_SESSION['transfer_items'];

In modules/textcart/sales/sales_order_entry.php
Line 295:
    $cart = &$_SESSION['Items'];
Line 244:
    $cart = &$_SESSION['Items'];

Re: textcart - Purchasing error

Fixed in my Git Repo commit