It's not too critical, we can live with it for now, but in the long run I'll have to find some way to deal with it.
mChat and archives work well overall. But we have one room on our mchat installation that is especially big. Yeah it's kind of large.
So big in fact that the archive page crashes with a white screen of death critical PHP error when trying to open the archive page for that particular room, every time:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/*****/public_html/*****/forum/phpbb/db/driver/mysqli.php on line 257
With phpBB 3.3.0 and mChat 2.1.3
Is there some way to limit the amount of pages mchat archive loads at once? Or at all? let's say you want to put a limit so that the archive view stops loading pages after 1000 of the latest ones.
Otherwise we will probably have to raise the memory limit in PHP for the server. But I want to avoid doing that on a forum wide scale, as that could lead to all sorts of problems.
For now putting a ini_set("memory_limit","[X]M"); line in the
Code: Select all
- This code is only accessible to donors -