Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Where to store often used datas?
Post: RE: Where to store often used datas?

[quote pid="423478" dateline="1735200111"] I would like to reduce the database call for this simple data, especially because it normally doesn't change or rarely changes. https://github.com/tm...
882 Views
3 Replies
02-28-2025, 01:51 AM
alex777
    Thread: session_write_close() AND MySQL server has gone away ERROR
Post: RE: session_write_close() AND MySQL server has gon...

kenjis Wrote: (06-21-2024, 12:23 AM) -- Codeigniter session library uses the default DB connection, or the DB group you specified in https://github.com/codeigniter4/CodeIgniter4/blob/53bfdef9f2b0370...
4,523 Views
25 Replies
06-21-2024, 12:27 AM
alex777
    Thread: session_write_close() AND MySQL server has gone away ERROR
Post: RE: session_write_close() AND MySQL server has gon...

kenjis Wrote: (06-20-2024, 06:32 PM) -- I say, you need to call $db->reconnect() before the timeout. In other words, try to call it in every 59.9999 seconds. -- hmmm.. I have simple script fun...
4,523 Views
25 Replies
06-21-2024, 12:17 AM
alex777
    Thread: session_write_close() AND MySQL server has gone away ERROR
Post: RE: session_write_close() AND MySQL server has gon...

kenjis Wrote: (06-19-2024, 06:04 PM) -- Okay, then PHP cannot catch the exception? If so, try to reconnect before the timeout. -- Database exeption runs before  my catch! I wrote about this in ...
4,523 Views
25 Replies
06-20-2024, 09:03 AM
alex777
    Thread: session_write_close() AND MySQL server has gone away ERROR
Post: RE: session_write_close() AND MySQL server has gon...

kenjis Wrote: (06-18-2024, 09:01 PM) -- It seems the code echo ($e->getMessage()) in the catch block shows "MySQL server has gone away". If so, I have no idea why you don't see the final message. --...
4,523 Views
25 Replies
06-19-2024, 02:26 PM
alex777
    Thread: session_write_close() AND MySQL server has gone away ERROR
Post: RE: session_write_close() AND MySQL server has gon...

kenjis Wrote: (06-17-2024, 03:50 PM) -- What do you mean? Don't you see `============ end of method ===============` in the ouput? Yes! I don't see final message. Because session()->close()  caus...
4,523 Views
25 Replies
06-17-2024, 11:22 PM
alex777
    Thread: session_write_close() AND MySQL server has gone away ERROR
Post: RE: session_write_close() AND MySQL server has gon...

kenjis Wrote: (06-17-2024, 02:36 AM) -- No. I mean, in your app, close session https://codeigniter.com/user_guide/libraries/sessions.html#close and if the exception is thrown, catch it and call rec...
4,523 Views
25 Replies
06-17-2024, 10:51 AM
alex777
    Thread: session_write_close() AND MySQL server has gone away ERROR
Post: RE: session_write_close() AND MySQL server has gon...

kenjis Wrote: (06-17-2024, 02:03 AM) -- Because there is no code to reconnect in the case. Why don't you catch the Exception and reconnect by yourself? -- I have to modify codeigniter system cod...
4,523 Views
25 Replies
06-17-2024, 02:22 AM
alex777
    Thread: session_write_close() AND MySQL server has gone away ERROR
Post: RE: session_write_close() AND MySQL server has gon...

InsiteFX Wrote: (06-17-2024, 12:41 AM) -- Ask your hosting provider if then can change it for you, mine will do almost anything I ask them to do for me. -- I can move to VDS but the question was W...
4,523 Views
25 Replies
06-17-2024, 01:58 AM
alex777
    Thread: session_write_close() AND MySQL server has gone away ERROR
Post: RE: session_write_close() AND MySQL server has gon...

InsiteFX Wrote: (06-15-2024, 09:09 PM) -- This shows some fixes for it try these out. stackoverflow - MySQL error 2006: mysql server has gone away (https://stackoverflow.com/questions/7942154/mysq...
4,523 Views
25 Replies
06-16-2024, 12:34 AM
alex777
    Thread: session_write_close() AND MySQL server has gone away ERROR
Post: RE: session_write_close() AND MySQL server has gon...

InsiteFX Wrote: (06-13-2024, 07:30 PM) -- Did you try reconnecting? PHP Code: -- $db->reconnect(); -- -- I have wrote this in initial post $db->reconnect() in the script do not solve the probl...
4,523 Views
25 Replies
06-15-2024, 10:52 AM
alex777
    Thread: session_write_close() AND MySQL server has gone away ERROR
Post: RE: session_write_close() AND MySQL server has gon...

InsiteFX Wrote: (06-13-2024, 12:33 PM) -- B.3.2.7 MySQL server has gone away (https://dev.mysql.com/doc/refman/8.4/en/gone-away.html) -- I know why mysql server is going away. I dont understand wh...
4,523 Views
25 Replies
06-13-2024, 01:47 PM
alex777
    Thread: session_write_close() AND MySQL server has gone away ERROR
Post: RE: session_write_close() AND MySQL server has gon...

Bosborne Wrote: (06-13-2024, 03:32 AM) -- Why not use the default file-based sessions? That would avoid the database timeout. Because I d like to control user's sessions.  With file-based it is no...
4,523 Views
25 Replies
06-13-2024, 03:37 AM
alex777
    Thread: session_write_close() AND MySQL server has gone away ERROR
Post: session_write_close() AND MySQL server has gone aw...

My project is on the shared hosting. And provider set limit for mysql server timeout for 60 sec. (parameter [mysqld] wait_timeout=60) And I use database to store session data If my script runs more ...
4,523 Views
25 Replies
06-13-2024, 01:31 AM
alex777
    Thread: How to make email notifications for errors and exceptions?
Post: RE: How to make email notifications for errors and...

[quote pid="407427" dateline="1677829695"] but how monlog can send all errors and exeptions generated by codeigniter??? Where I have to put this? // create a new logger instance $log = new Logger('...
7,714 Views
12 Replies
03-03-2023, 02:10 AM
alex777
    Thread: Can't get data from sessions CI4
Post: RE: Can't get data from sessions CI4

krotovroman Wrote: (01-09-2023, 03:19 AM) -- no error table is correctly after every request session id is new! may be is reason this problem. I do not know how fix it( -- new sess id every ti...
2,839 Views
4 Replies
02-17-2023, 07:04 AM
alex777
    Thread: How to make email notifications for errors and exceptions?
Post: RE: How to make email notifications for errors and...

I monitor /writable/logs folder for files every 15 min. If there is error file - script send me motification via telegram or email.
7,714 Views
12 Replies
02-17-2023, 06:37 AM
alex777

Theme © iAndrew 2016 - Forum software by © MyBB