This topic is locked
[SOLVED]

 Database connection timeout?

9/5/2016 5:40:50 AM
PHPRunner General questions
G
GregJ author

PHPR 9. I'm using a dashboard displaying one master table and three detail tables keyed to that master. This app has no login. If I add a new master record then immediately add detail records everything works perfectly. If I add the master record then come back in a few hours to add the details, the detail records get added with a blank primary key and, of course, never get associated with the master, so they just disappear. If I reload the dashboard before adding the details all works fine again. This is very annoying for users who enter all of the details then discover that none of it has saved. I believe this is a database connection timeout. What's the solution?

G
GregJ author 10/20/2016

After much searching / trial and error I found a fix. I added this line to php.ini and restarted Apache:
register_long_arrays=On