Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved - Logout - F5 Refresh give and undefined function error??
12-28-2012, 10:40 PM, (This post was last modified: 12-31-2012, 06:12 PM by LongQ.)
#1
Solved - Logout - F5 Refresh give and undefined function error??
PHP Fatal error: Call to undefined function DB_query() in C:\Inetpub\weberp\includes\GetConfig.php on line 10

I press Logout and press F5 and I get this error below

PHP Fatal error: Call to undefined function DB_query() in C:\Inetpub\weberp\includes\GetConfig.php on line 10

Line 10 in GetConfig.php
$ConfigResult = DB_query($sql,$db,$ErrMsg);

Is this normal behavior?
Reply
12-29-2012, 06:25 AM,
#2
RE: Logout - F5 Refresh give and undefined function error??
Yes.
Once you've hit the logout button, the db session is destroyed' so a refresh will be unable to find the DB.
Phil Daintree
webERP Admin
Logic Works Ltd
http://www.logicworks.co.nz
Reply
12-30-2012, 04:17 AM, (This post was last modified: 12-30-2012, 04:24 AM by LongQ.)
#3
RE: Logout - F5 Refresh give and undefined function error??
Would it be simple too write a script that count down 5 sec and den forward you to the login page.
then we woundnt have the error
Reply
12-30-2012, 06:44 AM,
#4
RE: Logout - F5 Refresh give and undefined function error??
i have done almost exactly this - it doesn't wait though just clears the session and forwards to the login page.
Phil Daintree
webERP Admin
Logic Works Ltd
http://www.logicworks.co.nz
Reply
12-31-2012, 06:12 PM,
#5
RE: Logout - F5 Refresh give and undefined function error??
(12-30-2012, 06:44 AM)phil Wrote: i have done almost exactly this - it doesn't wait though just clears the session and forwards to the login page.

my bad Big Grin press the button to get to the login page works as well Big Grin
Reply
12-31-2012, 06:17 PM,
#6
RE: Solved - Logout - F5 Refresh give and undefined function error??
I meant that subsequent to your first note I reworked the logout logic and have made a change so the Logout dialog doesn't now display at allit just goes right back to the login dialog. This work has been committed to the svn code repository already.
Phil Daintree
webERP Admin
Logic Works Ltd
http://www.logicworks.co.nz
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)