This topic is locked

Error pops up while page is open for a while

5/19/2024 8:49:30 AM
PHPRunner General questions
P
PK author

I am currently developing a web app using Runner 10.9.
When I leave a web page open for a while (maybe 2 or 3 mins) I get this error:

Fatal error: Uncaught Error: Call to undefined function getabspath() in C:\Users\Percy\Documents\PHPRunner\Projects\MyPortal10.9\output\include\locale.php:3 Stack trace: #0 C:\Users\Percy\Documents\PHPRunner\Projects\MyPortal10.9\output\include\dbcommon.php(87): include() #1 C:\Users\Percy\Documents\PHPRunner\Projects\MyPortal10.9\output\notifications.php(7): require_once('C:\\Users\\Percy\\...') #2 {main} thrown in C:\Users\Percy\Documents\PHPRunner\Projects\MyPortal10.9\output\include\locale.php on line 3

And when I refresh the page, the error goes away. I dont think it happens this happens on all pages (for example I have not seen it happen when I leave the login page and other pages open for short or long time).
Is it something in these particular pages I have to fix?

When I open "C:\Users\Percy\Documents\PHPRunner\Projects\MyPortal10.9\output\include\locale.php" line 3 I have:

require_once(getabspath("include/LocaleFunctions.php"));

Thanks for your kind assistance
Percy

fhumanes 5/20/2024

Hello,

I think your problem is produced by a new phprunner functionality to control the expiration of the connection.

img alt

Check this option and put the corresponding value or brand you never expire.

Greetings,
fernando

P
PK author 5/21/2024

Hello Fernando,
Thank you for your response.

While I am developing and testing the application I dont want the session to expire so I have this:
img alt
Later, before I deploy I will put the expiry.
So I dont understand what it is happening..As I said, it is happening when some pages are left open, not all pages.
So maybe there is something I need to check in those pages?

Thanks
Percy