Topic: undefined variable: _SESSION

Whenever I post a payment against an invoice, I get the following error alert:

undefined variable: _SESSION in file: sales/customer_payments.php at line 266
Trying to get property of non-object in file: sales/customer_payments.php at line 266

This flashes by very quickly at the top of my screen (I had to do a video capture of the screen to read it) and does not seem to affect the payment.

Line 266 of customer_payments.php is:

meta_forward($_SERVER['PHP_SELF'], !$_SESSION['alloc']->trans_no ? "AddedID=$payment_no" : "UpdatedID=$payment_no");

What can I do to correct this?
Frontaccounting version 2.3.15

Re: undefined variable: _SESSION

Lines 261 & 262 of customer_payments.php are:

unset($_POST);
unset($_SESSION);

   

...so I guess that's why $_SESSION is undefined.

Re: undefined variable: _SESSION

You are right, this is smaller bug. Will be fixed in next minor release.
Janusz

Re: undefined variable: _SESSION

Thanks Janusz - Bug Fixed in HG 3206.